Back to Firebase Js Sdk

Transcription interface

docs-devsite/ai.transcription.md

12.12.11.3 KB
Original Source

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 %}

Transcription 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.

Transcription of audio. This can be returned from a LiveGenerativeModel if transcription is enabled with the inputAudioTranscription or outputAudioTranscription properties on the LiveGenerationConfig<!-- -->.

<b>Signature:</b>

typescript
export interface Transcription 

Properties

PropertyTypeDescription
textstring<b><i>(Public Preview)</i></b> The text transcription of the audio.

Transcription.text

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.

The text transcription of the audio.

<b>Signature:</b>

typescript
text?: string;