danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.24k stars 3.21k forks source link

Enhancement: Use FLAC for OpenAI / Azure OpenAI TTS #4274

Open Manouchehri opened 1 month ago

Manouchehri commented 1 month ago

What features would you like to see added?

Right now, LibreChat assumes audio/mpeg. It would be nice if we could use FLAC instead.

https://github.com/danny-avila/LibreChat/blob/f33e75e2ee6170751c8b5a4841def5d79ae06f33/api/server/services/Files/Audio/TTSService.js#L355

More details

It's lossless for the same price, and is supported by all major browsers.

Which components are impacted by your request?

General, Endpoints

Pictures

No response

Code of Conduct

berry-13 commented 1 month ago

FLAC? Isn't it too big for simple speech (especially for this type of implementation where we want to make it as fast as possible)?