Audio Format And Voices

 





Configure Audio Format and Voices

When generating speech, a SpeechConfig object can be utilized to tailor the audio provided by the Azure AI Speech service.

Audio Format

The Azure AI Speech service offers various output formats for the audio stream produced by speech synthesis. You can select a format that aligns with your specific requirements:

  1. Audio file type
  2. Sample-rate
  3. Bit-depth

The supported formats are indicated in the SDK using the SpeechSynthesisOutputFormat enumeration.

Voices

The Azure AI Speech service offers a variety of voices that can be utilized to customize your speech-enabled applications. There are two kinds of voice that you can use:

  • Standard voices - synthetic voices created from audio samples.

  • Neural voices - more natural sounding voices created using deep neural networks.

Voices are identified by names that indicate a locale and a person's name

Use Speech Synthesis Markup Language

While the Azure AI Speech SDK enables you to submit plain text to be synthesized into speech (for example, by using the SpeakTextAsync() method), the service also supports an XML-based syntax for describing characteristics of the speech you want to generate. This Speech Synthesis Markup Language (SSML) syntax offers greater control over how the spoken output sounds, enabling you to:

  • Specify a speaking style, such as "excited" or "cheerful" when using a neural voice.

  • Insert pauses or silence.

  • Specify phonemes (phonetic pronunciations), for example to pronounce the text "SQL" as "sequel".

  • Adjust the prosody of the voice (affecting the pitch, timbre, and speaking rate).

Use common "say-as" rules, for example to specify that a given string should be expressed as a date, time, telephone number, or other form.

Insert recorded speech or audio, for example to include a standard recorded message or simulate background noise.

Conclusion

We have successfully learnt about configuring audio format and voices.









Comments

Popular posts from this blog

Connect Data to Azure Sentinel Using Data Connectors

Azure AI Search plugin in Microsoft Security Copilot (Preview)

Information Protection Scanner: Resolve Issues with Information Protection Scanner Deployment