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

azure tts #108

Merged
merged 3 commits into from
Mar 28, 2024
Merged

azure tts #108

merged 3 commits into from
Mar 28, 2024

Conversation

zachwe
Copy link
Contributor

@zachwe zachwe commented Mar 27, 2024

User description

  • add openai TTS
  • Azure speech sdk

Description

  • Added Azure and OpenAI as new Text-to-Speech (TTS) providers.
  • Implemented asynchronous functions for Azure and OpenAI TTS integration.
  • Updated TTS configuration to include Azure as an option.
  • Added necessary environment variables and updated documentation for new TTS services.
  • Included Azure Cognitive Services Speech SDK in the project dependencies.

Changes walkthrough

Relevant files
Enhancement
tts_config.py
Add Azure to TTS Providers                                                                         

openduck-py/openduck_py/configs/tts_config.py

  • Added "azure" to the list of TTSProviders.
+1/-1     
response_agent.py
Integrate Azure and OpenAI TTS in Response Agent                             

openduck-py/openduck_py/response_agent.py

  • Added support for Azure and OpenAI TTS in the speak_response function.
  • Refactored the conditionals to include Azure and OpenAI TTS.
  • +12/-4   
    third_party_tts.py
    Implement Azure and OpenAI TTS Functions                                             

    openduck-py/openduck_py/utils/third_party_tts.py

  • Added module docstring explaining the purpose of the module.
  • Added imports and constants for Azure and OpenAI TTS.
  • Implemented aio_openai_tts and aio_azure_tts async functions.
  • +72/-2   
    Formatting
    slack.py
    Minor Formatting in Slack Logging                                                           

    openduck-py/openduck_py/logging/slack.py

    • Minor formatting change (added a blank line).
    +1/-0     
    Configuration changes
    voice.py
    Configure TTS for Azure in Voice Router                                               

    openduck-py/openduck_py/routers/voice.py

  • Commented out ElevenLabs TTSConfig instantiation.
  • Added TTSConfig instantiation for Azure.
  • +3/-1     
    .env.example
    Add Azure and GROQ API Keys to Environment Variables                     

    .env.example

    • Added environment variables for Azure Speech Key and GROQ API Key.
    +3/-0     
    Documentation
    podcast_host.md
    Update Podcast Host Prompt Guidance                                                       

    openduck-py/openduck_py/prompts/most-interesting-bot/podcast_host.md

    • Updated guidance on how to engage with podcast guests.
    +5/-1     
    Dependencies
    requirements.txt
    Add Azure Cognitive Services Speech SDK to Requirements               

    openduck-py/requirements.txt

    • Added azure-cognitiveservices-speech to the list of requirements.
    +1/-0     
    💡 Usage Guide

    Checking Your Pull Request

    Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

    Talking to CodeAnt AI

    Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

    @codeant-ai ask: Your question here
    

    This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

    Check Your Repository Health

    To analyze the health of your code repository, visit our dashboard at app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

    Copy link

    vercel bot commented Mar 27, 2024

    The latest updates on your projects. Learn more about Vercel for Git ↗︎

    Name Status Preview Comments Updated (UTC)
    openduck ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 27, 2024 10:52pm

    @zachwe zachwe changed the title zach make it fast tts azure tts Mar 27, 2024
    @codeant-ai codeant-ai bot added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 27, 2024
    @zachwe zachwe merged commit 2d5565c into main Mar 28, 2024
    9 checks passed
    @zachwe zachwe deleted the zach-make-it-fast--tts branch March 28, 2024 14:49
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    documentation Improvements or additions to documentation enhancement New feature or request
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    2 participants