Welcome to the Audio Transcriber project! This tool allows you to select MP3 files and transcribe their audio content using the OpenAI API. The transcriptions are saved as text files named after the source audio files.
- 🎵 Select MP3 Files: Easily select MP3 files using a graphical file dialog.
- ✂️ Split Audio: Automatically split large audio files into smaller chunks.
- 📝 Transcribe Audio: Transcribe audio content using the OpenAI API.
- 💾 Save Transcriptions: Save transcriptions to text files named after the source audio files.
- Python 3.x
- Virtual environment (optional but recommended)
-
Clone the repository:
git clone https://github.com/Alby11/audioTranscriber.git cd audioTranscriber -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install the required libraries:
pip install openai pydub
-
Run the script:
python setup.py
-
Select an MP3 file:
- A file dialog will pop up. Select the MP3 file you want to transcribe.
-
Wait for the transcription:
- The script will split the audio file into chunks, transcribe each chunk, and save the transcription to a text file.
-
Find your transcription:
- The transcription will be saved in the same directory as the source audio file, with
_transcription.txtappended to the base name.
- The transcription will be saved in the same directory as the source audio file, with
- Chunk Length: You can adjust the chunk length (in milliseconds) by modifying the
chunk_length_msparameter in thesplit_audiofunction.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any questions or suggestions, feel free to reach out to me on GitHub.
Happy transcribing! 🎉