-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Is it possible to get the timing of phonemes, instead of full words? #687
Comments
We do not support phones yet. There is a pull request though
Some time ago Stackoverflow denied me to answer Vosk questions there. So I left it altogether. |
Cool, thanks @nshmyrev ! I'm definitely looking forward to that PR getting in. For getting more into the nitty-gritty of speech, and trying to create training sets for speech decoding models (as opposed to what I'm guessing are the more mainstream use cases of subtitling videos and stuff like that), output by phone is key. Re StackOverflow, that's too bad. Good to know. |
What are "speech decoding models" exactly? Could you please clarify? |
Ah. For decoding intended speech from neural activity. Here's an example of research toward restoring the communication ability of people with severe paralysis: http://changlab.ucsf.edu/s/anumanchipalli_chartier_2019.pdf |
Shouldn't it be possible to use make a model that recognizes all phones. Like this for example https://github.com/xinjli/allosaurus ? |
For anyone looking for a Java lip-sync software based on vosk, i have a small staand alone example for you! https://github.com/madhephaestus/TextToSpeechASDRTest.git I was able to use the partial results with the word timing to calculate the timing of the phonemems (after looking up the phonemes in a phoneme dictionary). I then down-mapped the phonemes to viseme and stored the visemes in a list with timestamps. THe timestamped visemes process in a static 200ms, and then the audio can begin playing with the mouth movemets synchronized precisly with the phoneme start times precomputed ahead of time. This is compaired to Rubarb which takes as long to run as the audio file is long. |
I searched for docs, or docstrings in source code, but couldn't find a nice summary of what the options for output were, so figured I'd ask here and it might be a super quick answer.
(Apologies if this is not the right place for questions. I posted on StackOverflow as well, but the
vosk
tag doesn't have that many total questions so I wasn't sure what y'all prefer.)The text was updated successfully, but these errors were encountered: