-
Notifications
You must be signed in to change notification settings - Fork 339
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
How to develop speech to text with Python in termux #95
Comments
You can do this using the Something like the following:
|
Termux has a pkg called termux-api which includes termux-speech-to-text command that can be run from termux to record audio and directly convert it to text. Install it using:
To test, run:
There will be a beep after which you can speak and it gives output in text. This can be used along with subprocess module within python to get the output and store it to a string.
It uses Androids inbuit speech recognition feature with o ly downside that if you dont speak after the beep it will terminate with None as output. Also, termux-tts-speak command can be utilised same way to turn the string into voice.
Assuming that os module is imported. (Sorry for so many edits 😅) |
Talking about speech_recognition, termux doesnt have portaudio in its core repository (though you can add Its-pointless's repo to achive it). Even if you get portaudio and pyaudio installed it doesnt support microphone input as of now due to some limitations. |
Hello! Is there any way to configure that to recognize spanish? |
I want to make speech to text with Python in termux so I used SpeechRecognition library of Python it installed correctly but it's can't get the record audio so is there any way or any changes I have to do to #access the microphones of phone using termux python
The text was updated successfully, but these errors were encountered: