groq-stt

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Groq STT Skill

Groq STT 技能

This skill uploads an audio file to the Groq Speech-to-Text API and saves the transcription.
该技能可将音频文件上传至Groq语音转文本API并保存转录结果。

Usage

使用方法

bash
undefined
bash
undefined

set your API key (or use .env in the repo root)

set your API key (or use .env in the repo root)

export GROQ_API_KEY=your_api_key_here
export GROQ_API_KEY=your_api_key_here

run the script with a path to an audio file

run the script with a path to an audio file

node scripts/transcribe.mjs /path/to/audio.mp4
undefined
node scripts/transcribe.mjs /path/to/audio.mp4
undefined

Output

输出

  • Writes a
    {filename}_transcript.txt
    next to the input file.
  • 在输入文件的同级目录下生成名为
    {filename}_transcript.txt
    的文件。

Notes

注意事项

  • Uses the
    whisper-large-v3-turbo
    model by default.
  • Supported file types: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm
  • 默认使用
    whisper-large-v3-turbo
    模型。
  • 支持的文件类型:flac、mp3、mp4、mpeg、mpga、m4a、ogg、wav、webm