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

[BUG] Voice switches accent #43448

Open
jokerboy opened this issue Apr 16, 2024 · 1 comment
Open

[BUG] Voice switches accent #43448

jokerboy opened this issue Apr 16, 2024 · 1 comment
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Speech customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@jokerboy
Copy link

Library name and version

Microsoft.CognitiveServices.Speech

Describe the bug

When I use one of the voices that has a multilingual counterpart, for example 'en-US-AndrewNeural' & ''en-US-AndrewMultiLingualNeural', certain text causes the voice to switch accent.

Expected behavior

Audio will maintain the same accent during it's entirety.

Actual behavior

Audio switches between English, French, or Spanish depending on the text.

Reproduction Steps

using this code snippet causes the issue. When reproducing this, the values are as follows:

toPlay=

<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
<voice name="en-US-AndrewNeural" xmlns="">
<prosody rate="0%" pitch="0Hz">Supreme Guest.
Deluxe Wash.</prosody>
</voice>
</speak>

voice.ShortName = 'en-US-AndrewNeural'
voice.Locale = 'en-US'

    var speechConfig = 
          SpeechConfig.FromSubscription(Settings.Local.AzureTTSSubscriptionKey,Settings.Local.AzureTTSServiceRegion);
    speechConfig.SpeechSynthesisVoiceName = voice.ShortName;
    speechConfig.SpeechSynthesisLanguage = voice.Locale;
    var speechSynthesizer = new SpeechSynthesizer(speechConfig);
    var toPlay = doc.ToString();
    var speechSynthesisResult = await speechSynthesizer.SpeakSsmlAsync(toPlay);

The audio is played, but the 'Deluxe Wash' is pronounced with a French accent.
Andrew-Voice-Bug.zip

Environment

Windows 11, Visual Studio 2022, CSharp .net 8.

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. Cognitive - Speech customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. labels Apr 16, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @robch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Speech customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

1 participant