Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗣️ feat: Azure OpenAI speech #2985

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

🗣️ feat: Azure OpenAI speech #2985

wants to merge 2 commits into from

Conversation

berry-13
Copy link
Collaborator

@berry-13 berry-13 commented Jun 6, 2024

Summary

fixed Azure OpenAI STT and added Azure OpenAI TTS

Change Type

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • A pull request for updating the documentation has been submitted.

@danny-avila
Copy link
Owner

slated for v0.7.4

@berry-13 berry-13 linked an issue Jun 17, 2024 that may be closed by this pull request
1 task
Copy link
Owner

@danny-avila danny-avila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, can you raise updated docs for librechat.ai with this change?

@@ -228,6 +282,9 @@ async function ttsRequest(provider, ttsSchema, { input, voice, stream = true } =
case 'openai':
[url, data, headers] = openAIProvider(ttsSchema, input, voice);
break;
case 'azureOpenAI':
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use enums for this?

@@ -28,6 +28,9 @@ async function getVoices(req, res) {
case 'openai':
voices = ttsSchema.openai?.voices;
break;
case 'azureOpenAI':
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enums

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Azure OpenAI STT/TTS
2 participants