sandrohanea / whisper.net

Whisper.net. Speech to text made simple using Whisper Models
MIT License
534 stars 82 forks source link

Do you have any synchronous examples? #45

Closed jiandam55 closed 1 year ago

jiandam55 commented 1 year ago

Hello, the code examples are all asynchronous. Do you have any synchronous examples?

sandrohanea commented 1 year ago

Hello @jiandam55 , Synchronous example was added. Summarized, you just need to call Process Instead of ProcessAsync on the processor, and add the segment handler so you handle the results.