feat: add audio transcription feature with OpenAI and Groq support

- Updated .env.example to include transcription configuration options.
- Enhanced main.go to support audio transcription, including new endpoints and logic for handling transcription requests.
- Added functionality to transcribe audio using OpenAI and Groq APIs.
- Updated README.md with detailed instructions on enabling and using the transcription feature.
This commit is contained in:
Davidson Gomes
2024-12-02 19:49:41 -03:00
parent 2773e4749d
commit 30a4990e53
3 changed files with 324 additions and 27 deletions

View File

@@ -1,3 +1,8 @@
PORT=4040
CORS_ALLOW_ORIGINS=*
API_KEY=429683C4C977415CAAFCCE10F7D57E11
API_KEY=429683C4C977415CAAFCCE10F7D57E11
ENABLE_TRANSCRIPTION=true
TRANSCRIPTION_PROVIDER=openai # ou groq
OPENAI_API_KEY=sua_chave_openai_aqui
GROK_API_KEY=sua_chave_groq_aqui
TRANSCRIPTION_LANGUAGE=pt