Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.57k stars 4.82k forks source link

Documentation question #38287

Closed nitinthewiz closed 1 year ago

nitinthewiz commented 1 year ago

Is Riff16Khz16BitMonoPcm the default SpeechSynthesisOutputFormat?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

github-actions[bot] commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

navba-MSFT commented 1 year ago

@nitinthewiz Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

navba-MSFT commented 1 year ago

@nitinthewiz The default output format is Riff16Khz16BitMonoPcm. You can change the output format by calling this method and passing in one of the SpeechSynthesisOutputFormat enumeration values.

            // Creates an instance of a speech config with specified subscription key and service region.
            speechConfig = SpeechConfig.FromSubscription(SubscriptionKey, Region);

            // The default format is RIFF, which has a riff header.
            // We can set the format to raw (24KHz for better quality).
            speechConfig.SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Raw24Khz16BitMonoPcm);

Refer the available audio formats here. Sample code here.

github-actions[bot] commented 1 year ago

Hi @nitinthewiz. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

github-actions[bot] commented 1 year ago

Hi @nitinthewiz, since you haven’t asked that we /unresolve the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve to reopen the issue.