A Flask-based web application that transcribes audio into code. Users can upload audio files, which are then transcribed into text, and use that text to generate functional code snippets via an AI-powered API.
- Audio Transcription: Upload audio files and receive transcriptions.
- Code Generation: Generate functional code snippets based on text prompts.
- 3D Website Integration: Incorporates 3D elements in the web interface (details not provided in this script).
-
Clone the repository:
git clone https://github.com/alihassanml/Speek-to-Code-AI.git cd Speek-to-Code-AI
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.env
file in the root directory and add your API key:API_KEY=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
-
Run the application:
python app.py
- Record Audio: Send a POST request to
/record
with a file upload. The response will contain the transcription of the audio. - Generate Code: Send a POST request to
/generate_code
with a JSON body containing theprompt
for code generation. The response will include the generated code.
POST /record
: Uploads audio and returns transcription.POST /generate_code
: Accepts a prompt and returns generated code.
- Flask
- groq
This project is licensed under the MIT License.