Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speech input is not working for me even though Whisper is working #73

Open
LemonBreezes opened this issue Aug 4, 2023 · 3 comments
Open

Comments

@LemonBreezes
Copy link
Contributor

LemonBreezes commented Aug 4, 2023

Hi. So I've been trying to identify why org-ai-talk--record-and-transcribe-speech is not working for me. The function only works correctly if I type C-g on the prompt. Otherwise, the whisper--recording-process is never interrupted and so the callback never occurs and the function does nothing.

I'm using Emacs30.

@ArnaudValette
Copy link

ArnaudValette commented Aug 20, 2023

I have the same problem, emacs 29.1.
I'm currently reading the source, maybe I can do something here.
When I type ESC, the prompt is recorded and LLM answers, this is not the intended behaviour.

@rksm
Copy link
Owner

rksm commented Aug 20, 2023

Hi, yeah the whisper package makes it really hard to be used externally. The way I wait for the transcription process to stop in org-ai-talk--stop-recording does not seem to work anymore. I'll take a look, thanks for reporting!

@ArnaudValette
Copy link

Line 234 (whisper.el)
This is a horrible function, and in time due a rewrite. But for now I find this amusing and a little bit instructive as to how it became a mess.

Jokes aside, I'll see if I can propose a simple solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants