DS-TRANSCRIBER
Need an Offline Speech To Text converter?
Records your mic, and returns a String
containing what was said.
Features
- Begins transcription after a long enough pause has been detected
- Change the length of the pause required to begin transcription
- Shows you the audio levels of what is being recorded so that you can...
- Change the audio level of what you seem as silence in your environment
Ds-Transcriber is backed by the awesome cpal for streaming and nnnoiseless for audio cleanup.
Setting Up
You need to obtain the deepspeech-model
(tested with 0.9.x
) and the native-client
for your system and add that folder to your LD_LIBRARY_PATH
and LIBRARY_PATH
environment variables. See the quick start guide over at deepspeech-rs.
Usage
Add the crate to your Cargo.toml
[]
= "0.13.3"
Create a configuration wherever you want to use it
// the path where your model and native-client lie
let model_path = args.nth.expect;
let config = StreamSettings ;
After getting config ready, all you need to do is pass it to the function.:
let i_said = transcribe;
println!;
Contributions
Heck yeah! Pull requests are the greatest thing since sliced bread.
License
MIT
Free Software, Gotta love it!