CoAiAPy is a Python package that provides functionality for audio transcription, synthesis, and tagging of MP3 files using Boto3 and the Mutagen library. This package is designed to facilitate the processing of audio files for various applications.
- Audio Transcription: Convert audio files to text using AWS services.
- Audio Synthesis: Generate audio files from text input.
- MP3 Tagging: Add metadata tags to MP3 files for better organization and identification.
- Redis Stashing: Stash key-value pairs to a Redis service.
To install the package, you can use pip:
pip install coaiapy
CoAiAPy provides a CLI tool for audio transcription, summarization, and stashing to Redis.
To see the available commands and options, use the --help
flag:
coaia --help
Set these environment variables to use the AWS transcription service:
OPENAI_API_KEY
AWS_KEY_ID
AWS_SECRET_KEY
AWS_REGION
REDIS_HOST
REDIS_PORT
REDIS_PASSWORD
REDIS_SSL
To transcribe an audio file to text:
coaia transcribe <file_path>
Example:
coaia transcribe path/to/audio/file.mp3
To summarize a text:
coaia summarize <text>
Example:
coaia summarize "This is a long text that needs to be summarized."
To summarize text from a file:
coaia summarize --f <file_path>
Example:
coaia summarize --f path/to/text/file.txt
To stash a key-value pair to Redis:
coaia tash <key> <value>
Example:
coaia tash my_key "This is the value to stash."
To stash a key-value pair from a file:
coaia tash <key> --f <file_path>
Example:
coaia tash my_key --f path/to/value/file.txt
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.