Skip to content
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

Cannot change voicenames to foreign types #4

Open
Wholebitmedia opened this issue May 13, 2021 · 0 comments
Open

Cannot change voicenames to foreign types #4

Wholebitmedia opened this issue May 13, 2021 · 0 comments

Comments

@Wholebitmedia
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant