speech_to_text
Transcribe audio files into text with speaker diarization, supporting automatic language detection and flexible output options for saved files or direct text return.
Instructions
Transcribe speech from an audio file and either save the output text file to a given directory or return the text to the client directly.
⚠️ COST WARNING: This tool makes an API call to ElevenLabs which may incur costs. Only use when explicitly requested by the user.
Args:
file_path: Path to the audio file to transcribe
language_code: ISO 639-3 language code for transcription. If not provided, the language will be detected automatically.
diarize: Whether to diarize the audio file. If True, which speaker is currently speaking will be annotated in the transcription.
save_transcript_to_file: Whether to save the transcript to a file.
return_transcript_to_client_directly: Whether to return the transcript to the client directly.
output_directory: Directory where files should be saved.
Defaults to $HOME/Desktop if not provided.
Returns:
TextContent containing the transcription. If save_transcript_to_file is True, the transcription will be saved to a file in the output directory.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
diarize | No | ||
input_file_path | Yes | ||
language_code | No | ||
output_directory | No | ||
return_transcript_to_client_directly | No | ||
save_transcript_to_file | No |
Input Schema (JSON Schema)
{
"properties": {
"diarize": {
"default": false,
"title": "Diarize",
"type": "boolean"
},
"input_file_path": {
"title": "Input File Path",
"type": "string"
},
"language_code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Language Code"
},
"output_directory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Output Directory"
},
"return_transcript_to_client_directly": {
"default": false,
"title": "Return Transcript To Client Directly",
"type": "boolean"
},
"save_transcript_to_file": {
"default": true,
"title": "Save Transcript To File",
"type": "boolean"
}
},
"required": [
"input_file_path"
],
"type": "object"
}