- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recently starting toying with the RealSense's Speech Recognition and Speech Synthesis.
I've got the Speech Synthesis to work, but when I output the audio, the game freezes execution while the audio is dictated, and then continues running when the audio is complete. I'm using Unity, and I'm calling the VoiceSynthesis.Speak function given with the Unity framework of the SDK.
Is this a known issue? Has anyone come across this and found a way to get around it?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fixed it.
I just put all of the speech synthesis in its own separate thread. Works great now!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's cool. Thanks for sharing this Joel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Joel C.
hi
I m also working on speech synthesis module of realsense on unity..
I m extracting my code for unity from the sdk mannuals . I am also in trouble as where "to send audio to the audio device".. I am not able to implement my module..Can you assist me in providing any solution to this situation.. and Also DId you extracted the code for unity from the Csharp framework provided in the samples directory of the SDK.???
thanks,.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Akshay A. wrote:
I am also in trouble as where "to send audio to the audio device".. I am not able to implement my module..Can you assist me in providing any solution to this situation.. and Also DId you extracted the code for unity from the Csharp framework provided in the samples directory of the SDK.???
They provide two scripts in the Unity C# framework that will output the audio. I believe the scripts are called VoiceOut.cs and VoiceSynthesis.cs. Once they're in your project, you can call
voice_synthesis.cs.VoiceSynthesis.Speak("Voice Synthesis (Nuance* Vocalizer Expressive*)",0,<TEXT TO OUTPUT>,100,100,80);
to output it to audio.
I had to change my API compatibility level from ' .NET 2.0 subset' to '.Net 2.0' in the player settings to remove an error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Joel C.
Thanks for your advice.. But i am still having the issue that no soud is being played.. When i run my project it is not giving any output and also no error or warnings are reported..
Can you help me with it..
Thanks
Akshay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@joel C.
I fixed that.....
Thanks for all your help.. I was just having the error in passing the parameters in the speak function .
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page