=====================================
This is a Python script that uses the Groq API to transcribe audio files and save the transcription as a subtitle file.
- Python 3
- Groq API key (sign up for free at console.groq.com)
Clone this repository to your local machine.
Replace YOUR_API_KEY
in the script with your actual Groq API key.
Install the required Python libraries by running pip install groq
.
Run the script using python main.py
.
Enter the path to the audio file you want to transcribe when prompted.
The transcription will be saved to a file named output.str
in the same directory.
The script initializes the Groq client using your API key.
It reads the audio file and performs transcription using the Groq API.
The transcription results are written to a file in subtitle format.
The output file will contain the transcription in the following format:
1 00:00:00.000 --> 00:00:01.000 Hello world!
2 00:00:01.000 --> 00:00:02.000 This is a test.
Make sure you have replaced YOUR_API_KEY
with your actual Groq API key.
Ensure that the audio file path is correct and the file is in a format supported by the Groq API.
Check the Groq API documentation for any usage limits or restrictions.
This script is released under the MIT License. See LICENSE.txt for details.