Unity-Text-to-Speech icon indicating copy to clipboard operation
Unity-Text-to-Speech copied to clipboard

Cannot change voicenames to foreign types

Open Wholebitmedia opened this issue 4 years ago • 0 comments

I am using the documentation found on this page: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support

...To substitute the default "enUSJessaRUS" speech synethesis into one of the foreign "Standard Voices"(specifically "ja-JP-Ayumi") in the "Voicename voicename" variable field in the "Speech Recognition" 3 language translation scene inside the Unity C# "Speech Recognition" script.

To Reproduce

Steps to reproduce the behavior:

Load the Speech Recognition scene into Unity and enter the Azure cognitive service credentials. Voicename should be assigned in the Start() section. voiceName = VoiceName.enUSJessaRUS; to voiceName = VoiceName.VoiceName.ja-JP-Ayumi; Throws error for change of voice in the compiler. Eliminating hyphens does not fix this. Expected behavior-3 errors in console...

--Assets\Cogntive Services\speech\SpeechSDKSample\Scripts\SpeechRecognition.cs(132,34): error CS0103: The name 'JP' does not exist in the current context

--Assets\Cogntive Services\speech\SpeechSDKSample\Scripts\SpeechRecognition.cs(132,34): error CS0103: The name 'jp' does not exist in the current context

--Assets\Cogntive Services\speech\SpeechSDKSample\Scripts\SpeechRecognition.cs(132,34): error CS0103: The name 'Ayumi' does not exist in the current context

Version of the Cognitive Services Speech SDK Which version of the SDK are you using.

All latest versions of cogservices and this project

Windows 10u x64 C# Unity 2020.3.4f

Wholebitmedia avatar May 13 '21 23:05 Wholebitmedia