Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference {% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %} # SpeechMetadata interface > This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment. > Structured speech metadata associated with a [TextPart](./ai.textpart.md#textpart_interface). 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. Signature: ```typescript export interface SpeechMetadata ``` ## Properties | Property | Type | Description | | --- | --- | --- | | [speaker](./ai.speechmetadata.md#speechmetadataspeaker) | string | (Public Preview) Identifies which speaker is speaking this turn. When using a [MultiSpeakerVoiceConfig](./ai.multispeakervoiceconfig.md#multispeakervoiceconfig_interface), this should match the [SpeakerVoiceConfig.speaker](./ai.speakervoiceconfig.md#speakervoiceconfigspeaker) of one of the configured speakers. | | [style](./ai.speechmetadata.md#speechmetadatastyle) | string | (Public Preview) A natural language description of the vocal style (such as "cheerful"). | ## SpeechMetadata.speaker > This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment. > Identifies which speaker is speaking this turn. When using a [MultiSpeakerVoiceConfig](./ai.multispeakervoiceconfig.md#multispeakervoiceconfig_interface), this should match the [SpeakerVoiceConfig.speaker](./ai.speakervoiceconfig.md#speakervoiceconfigspeaker) of one of the configured speakers. Signature: ```typescript speaker?: string; ``` ## SpeechMetadata.style > This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment. > A natural language description of the vocal style (such as `"cheerful"`). Signature: ```typescript style?: string; ```