-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Lipsync using blob instead of mp3 file #137
Comments
Hi, thanks for your interest in the library! To play an audio blob, you need to generate a URL form it. There are two ways I can think of:
After you have the URL, you can pass it to the |
Thanks a lot for your help. Not sure if I know how to convert the blob to a base64 string, but I will try to find how. Also, Is there a way to know when the audio ended and is not playing anymore? Something like: model.addEventListener("ended", () => { }); |
Yes, basically you can access the audio element right after starting a lip sync: const success = await model.speak(someUrl)
if (success) {
model.internalModel.lipSync.currentAudio.addEventListener("ended", () => {})
}
|
It also supports all url, blob and b64, so you can pick your choice and use here. |
Hi,
I can see that you are going to soon merge and add the option for Lipsync using audio file mp3.
Is there a way that we could add Lipsync using blob data instead of a file?
Thanks and great lib!
The text was updated successfully, but these errors were encountered: