sveinbjornt / hear

Command line speech recognition and transcription for macOS
https://sveinbjorn.org/hear
BSD 3-Clause "New" or "Revised" License
390 stars 24 forks source link

Only outputs about 500 bytes of text ? #1

Closed cleesmith closed 2 years ago

cleesmith commented 2 years ago

hear -i some.mp3 > text.txt or hear -i some.mp3 ... only outputs the same first 500 bytes of text macOS Monterey version 12.4 Thoughts? chris

sveinbjornt commented 2 years ago

Unless you pass the -d flag, which specifies on-device speech recognition only, the audio will be sent for processing to Apple's servers. They seem to have a hard limit on how much they're willing to process in one session.

Try adding the -d flag and everything should work. If not, let me know! This could be better documented, thank you for pointing it out.

cleesmith commented 2 years ago

No worries, and the -d flag worked perfect ... thank you for this!

glangford commented 2 years ago

I have the same issue with with non-English audio. For completeness of the thread I will record it here. OS X 12.4, Intel using

hear -l pt-PT -d -i ...

I get the clear error message (which was kind of expected) On-device recognition is not supported for pt-PT.

Has anyone tried longer clips with non-English languages on Apple Silicon?

alibee commented 2 years ago

You might want to add this info to the man page -- I had the same issue and needed to see the call-out to the flag here to figure it out.