-
Notifications
You must be signed in to change notification settings - Fork 23
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 translate realtime pcm data to text? #24
Comments
Your |
actually it was called by other function whenever the pcm data decoded by ffmpeg |
Can you paste a fully working example that I can run myself ? |
my code is working on a stream server with ffmpeg sdk, so it can't working stand alone, can you show us an example for live stream translate? |
I've never used the live stream portion of DeepSpeech so I'd need some time to work out an example. Before that, can you confirm that audio data you're feeding DeepSpeech is 16 bits / 16kHz PCM samples ? |
yeah, surely, just resample the audio to 16bits / 16kHz pcm data, here is the c lang code for aac to pcm: |
What do you get at Also, what happens if you save all samples to a .wav file and use this lib's cmd to translate it ? In other words, does the non-streaming translation work with your samples ? |
just get the response: "result: ". I did not try out the non-streaming translation with my samples, because I failed to save the pcm to wav file successfully, but I can play the raw pcm with audacity or ffplay whenever save them to PCM file. |
Thing is, we need to be sure your samples give correct results with the non-streaming part of this lib. To save your samples to a Once it's done, let me know what results you get from the non-streaming translation. |
ok, thanks, I will try it in someday, too busy on job things at present.~~ |
hi, I just wanna translate pcm data to text in realtime, the pcm data is decoded by ffmpeg from live stream, however I can't get the result successfully. can you fix it? here are the codes, feed the pcm data all the time, and translate to texts in 5 seconds:
The text was updated successfully, but these errors were encountered: