Convert audio to text accurately in real-time using our advanced AI speech recognition technology.
AudioTextPro is a Python module designed to interact with the AssemblyAI API to transcribe audio files. It provides a simple and efficient way to convert speech into text using AssemblyAI's powerful transcription services.
- Uploads audio files to AssemblyAI.
- Requests transcripts of uploaded audio files.
- Processes and stores the resulting transcripts.
- Simple API interaction through Python functions.
- Extensible for future additions, such as more complex processing of transcripts.
- Python 3.9 or higher
- The
requests
, andpython-dotenv
packages - An AssemblyAI API key (get one here)
- Install the required packages:
pip install requests python-dotenv
- Clone the audiotextpro repository:
git clone https://github.com/sebastienrousseau/audiotextpro.git
- Add your OpenAI API key to a
.env
file in the project directory:
# API_TOKEN is used to authenticate with the AssemblyAI API.
# Replace with your actual API token from AssemblyAI.
API_TOKEN = ''
# FILENAME should be the path to the audio file you wish to transcribe.
# Replace with the path to your actual file.
FILENAME = ''
# TIMEOUT is the number of seconds to wait for the transcription to complete.
# Replace with the number of seconds you wish to wait.
TIMEOUT=""
To use AudioTextPro, navigate to the project directory in your terminal and run the following command:
python3 -m audiotextpro
Ensure your audio file is accessible from the project and that the API key is valid to avoid any request issues.
.
βββ LICENSE-APACHE
βββ LICENSE-MIT
βββ MANIFEST.in
βββ Makefile
βββ README.md
βββ audiotextpro
βΒ Β βββ __init__.py
βΒ Β βββ __main__.py
βΒ Β βββ api.py
βΒ Β βββ file.py
βΒ Β βββ transcript.json
βΒ Β βββ transcript.txt
βΒ Β βββ transcript_processor.py
βΒ Β βββ utils.py
βββ pyproject.toml
βββ requirements.txt
βββ samples
βΒ Β βββ call_from_a_customer.mp3
βββ setup.cfg
βββ setup.py
βββ transcript.json
3 directories, 19 files
The project is licensed under the terms of both the MIT license and the Apache License (Version 2.0).