Skip to content

Cannot change voicenames to foreign types #4

@Wholebitmedia

Description

@Wholebitmedia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions