# Firebase.AI.SpeechMetadata

Structured speech metadata associated with a `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/model-content/text-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_text_part`.

## Summary

Used to guide speech generation for a specific piece of text, such as identifying which speaker says it and the vocal style they should use.

| ### Constructors and Destructors ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata_1a521f52390fb81c14694a9deb5a8b80f1(string speaker, string style)` Create a new `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata` object. ||

| ### Properties ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata_1ae944ee346e583aeaac17fc92fc286658` | `readonly string` Identifies which speaker is speaking this turn. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata_1a1df50ae9bec0ff6091a484eaf9116047` | `readonly string` A natural language description of the vocal style (such as "cheerful"). |

## Properties

### Speaker

```c#
readonly string Firebase::AI::SpeechMetadata::Speaker
```
Identifies which speaker is speaking this turn.

When using a `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`, this should match the `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speaker-voice-config#struct_firebase_1_1_a_i_1_1_speaker_voice_config_1ab2c55a8ba2632568592ebb9f9e45b778` of one of the configured speakers.

### Style

```c#
readonly string Firebase::AI::SpeechMetadata::Style
```
A natural language description of the vocal style (such as "cheerful").

## Public functions

### SpeechMetadata

```c#
 Firebase::AI::SpeechMetadata::SpeechMetadata(
  string speaker,
  string style
)
```
Create a new `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata` object.

<br />

Details Parameters `speaker` Identifies which speaker is speaking this turn. `style` A natural language description of the vocal style.