# Firebase.AI.SpeechConfig

A struct used to configure speech generation settings.

## Summary

Note: Multi-speaker configurations are not supported by the Live API (e.g., [LiveGenerationConfig](https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/live-generation-config#struct_firebase_1_1_a_i_1_1_live_generation_config)).

Warning: This API is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.

| ### Public static functions ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-config#struct_firebase_1_1_a_i_1_1_speech_config_1a4f6a259a7d09ac4b57a5babe0897c0d4(https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/multi-speaker-voice-config#struct_firebase_1_1_a_i_1_1_multi_speaker_voice_config multiSpeakerVoiceConfig, string languageCode)` | `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-config#struct_firebase_1_1_a_i_1_1_speech_config` Configure speech synthesis with multiple speakers. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-config#struct_firebase_1_1_a_i_1_1_speech_config_1a14788f9a78971631d4a0f7e0f17b4c4e(string voice, string languageCode)` | `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-config#struct_firebase_1_1_a_i_1_1_speech_config` See <https://cloud.google.com/text-to-speech/docs/chirp3-hd> for the list of available voices. |

## Public static functions

### UseMultiSpeakerVoice

```c#
SpeechConfig Firebase::AI::SpeechConfig::UseMultiSpeakerVoice(
  MultiSpeakerVoiceConfig multiSpeakerVoiceConfig,
  string languageCode
)
```
Configure speech synthesis with multiple speakers.

Note: Multi-speaker configurations are not supported by the Live API (e.g., [LiveGenerationConfig](https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/live-generation-config#struct_firebase_1_1_a_i_1_1_live_generation_config)).

<br />

Details Parameters `multiSpeakerVoiceConfig` `languageCode` **Returns**

### UsePrebuiltVoice

```c#
SpeechConfig Firebase::AI::SpeechConfig::UsePrebuiltVoice(
  string voice,
  string languageCode
)
```
See <https://cloud.google.com/text-to-speech/docs/chirp3-hd> for the list of available voices.

<br />

Details Parameters `voice` `languageCode` **Returns**