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

Voice prompts not working due to infinite recording (on Win10) #65

Open
ujikol opened this issue Jul 24, 2023 · 0 comments
Open

Voice prompts not working due to infinite recording (on Win10) #65

ujikol opened this issue Jul 24, 2023 · 0 comments

Comments

@ujikol
Copy link

ujikol commented Jul 24, 2023

(org-ai-talk--record-and-transcribe-speech) does not stop recording because (while-no-input) is not working as expected.

(message "while code: %s"
(while-no-input
(let ((key
(message "key pressed: %s" (read-key-sequence "Press any key to stop recording, cancel with C-g or ESC..."))
))
(message "in loop: %s" key))))
<<<

If I excute just the 4th line then the out put is:
"key pressed: a"
-->fine

But if I execute all then the output is:
"while code: t"
--> Would assume that (while-no-input) sees some input. BUT:
"Press any key to stop recording, cancel with C-g or ESC..." is displayed and processing is paused. After pressing a key the rest of the execution within the body is immediately skipped. So the pressed key is never processed.

This looks like a weired behavior. But that's the way it is on Win10 at least.

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

1 participant