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

Text-To-Speech unable to override system's default voices #26853

Open
yeelut opened this issue Dec 29, 2024 · 4 comments
Open

Text-To-Speech unable to override system's default voices #26853

yeelut opened this issue Dec 29, 2024 · 4 comments
Labels
s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@yeelut
Copy link

yeelut commented Dec 29, 2024

Description

private async Task PlayText()
{
var locales = await TextToSpeech.Default.GetLocalesAsync();
var selectedLocale = locales.FirstOrDefault(locale => locale.Language == selectedLanguage && locale.Name == selectedVoice);
Debug.WriteLine(selectedLocale.Name + ":" + selectedLocale.Language);
SpeechOptions speechOptions = new SpeechOptions()
{
Pitch = 1f, // 0.0 - 2.0
Volume = 0.75f, // 0.0 - 1.0
Locale = selectedLocale

        };
        await TextToSpeech.Default.SpeakAsync("Hello! I am "+selectedVoice + ". This is a Test! Ceci est un test! ¡Esto es una prueba!, speechOptions);
    }

I have tried different Voices for varies languages across different platforms.
But it only uses the system's default Voice for each languages.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS, iOS, Android, Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@yeelut yeelut added the t/bug Something isn't working label Dec 29, 2024
@Zhanglirong-Winnie
Copy link

Could you provide us with a sample project so we can investigate it further?
Looking forward to your reply!

@yeelut
Copy link
Author

yeelut commented Dec 30, 2024

Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!

https://github.com/yeelut/MauiTTSSettings

@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Dec 31, 2024
@Zhanglirong-Winnie
Copy link

This issue has been verified Visual Studio 17.13 Preview2.1 (9.0.21 & 9.0.0). Can repro this issue on all platforms.

@yeelut
Copy link
Author

yeelut commented Jan 2, 2025

any timeline for fixing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants