> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Speech To Text Node

> Generate text from an audio file

<img src="https://mintcdn.com/vectorshift/fUdgBpX7VNpDIEaX/images/platform/pipelines/multi-modal/speech-to-text.png?fit=max&auto=format&n=fUdgBpX7VNpDIEaX&q=85&s=249fd90cf39997463cd2437e9b98d8fb" alt="Speech To Text" width="576" height="374" data-path="images/platform/pipelines/multi-modal/speech-to-text.png" />

The speech to text node allows you to generate text from an audio file.

You have two options for providing an audio file.

1. If toggle is on “Variable”, reference audio files from other nodes
2. If toggle is on "Upload", upload an audio file directly on the node

## Node Inputs

1. Audio: The audio for conversion
   * Type: `Audio`

## Node Parameters

1. Provider: Provider of the AI model you want to use. The default provider is OpenAI.
2. Model: Model name you want to use.
3. Use Personal Api Key: This allows you to enter your API key.

## Node Outputs

1. Text: Audio as converted to text
   * Type: `Text`
   * Example usage: `{{ai_speech_to_text_0.text}}`

## Example

The below example shows a pipeline that takes audio input, converts it to text, processes it with an LLM, and converts the response back to audio.

1. Input Node: Contains the input audio
2. Speech to Text Node: Converts the audio to text
   * Audio: `{{input_0.audio}}`
3. LLM Node: Processes the text / Answers the Question
   * Input: `{{ai_speech_to_text_0.text}}`
4. Text to Speech Node: Converts the LLM response to audio
   * Text: `{{openai_0.response}}`
5. Output: The final audio response
   * Output: `{{ai_text_to_speech_0.audio}}`

<img src="https://mintcdn.com/vectorshift/fUdgBpX7VNpDIEaX/images/platform/pipelines/multi-modal/speech-to-text-example.png?fit=max&auto=format&n=fUdgBpX7VNpDIEaX&q=85&s=08cf8bc919a5a3932233ffd81d2209a7" alt="Speech to Text Example" width="1905" height="834" data-path="images/platform/pipelines/multi-modal/speech-to-text-example.png" />

## Pricing

| Provider | Model     | Input cost per minute |
| :------- | :-------- | :-------------------- |
| OpenAI   | whisper-1 | 0.006                 |
| Deepgram | nova-3    | 0.0043                |
| Deepgram | nova-2    | 0.0043                |
| Deepgram | nova      | 0.0043                |
| Deepgram | enhanced  | 0.0145                |
| Deepgram | base      | 0.0123                |
