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

GPT-SoVITS #113

Merged
merged 5 commits into from
Mar 29, 2024
Merged

GPT-SoVITS #113

merged 5 commits into from
Mar 29, 2024

Conversation

Sobsz
Copy link
Contributor

@Sobsz Sobsz commented Mar 28, 2024

Description

  • Added styletts2 and gptsovits as new TTS provider options in TTSConfig.
  • Set gptsovits as the default TTS provider and updated the default voice ID.
  • Integrated GPT-SoVITS TTS functionality in the response_agent.py and implemented the corresponding aio_gptsovits_tts function in third_party_tts.py.
  • Included necessary audio processing libraries and implemented audio chunking for the TTS output.
  • Updated docker-compose.yml to include the GPT-SoVITS service with the necessary configuration.

Changes walkthrough

Relevant files
Enhancement
tts_config.py
Add GPT-SoVITS to TTS Providers                                                               

openduck-py/openduck_py/configs/tts_config.py

  • Added new TTS provider literals: styletts2 and gptsovits.
  • Changed default TTS provider to gptsovits.
  • Set default voice ID to a specific styletts2 model file.
  • +2/-2     
    response_agent.py
    Integrate GPT-SoVITS in Response Agent                                                 

    openduck-py/openduck_py/response_agent.py

  • Added support for the styletts2 TTS provider.
  • Included aio_gptsovits_tts function call for the new TTS provider.
  • Removed an empty condition block that was likely a placeholder.
  • +15/-2   
    third_party_tts.py
    Implement GPT-SoVITS TTS Function                                                           

    openduck-py/openduck_py/utils/third_party_tts.py

  • Imported io, librosa, and numpy modules for audio processing.
  • Implemented aio_gptsovits_tts function to generate speech from text
    using GPT-SoVITS.
  • +24/-0   
    Configuration changes
    docker-compose.yml
    Add GPT-SoVITS Service to Docker Compose                                             

    docker-compose.yml

  • Added a new service for GPT-SoVITS with a custom image and command.
  • Mounted the current directory to the GPT-SoVITS container.
  • +5/-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 28, 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 29, 2024 5:46pm

    @Sobsz Sobsz marked this pull request as draft March 28, 2024 22:41
    @codeant-ai codeant-ai bot added the enhancement New feature or request label Mar 28, 2024
    Copy link
    Contributor

    @zachwe zachwe left a comment

    Choose a reason for hiding this comment

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

    🚢

    @zachwe zachwe merged commit 8ee2c6e into main Mar 29, 2024
    9 checks passed
    @zachwe zachwe deleted the hecko-gpt-sovits branch March 29, 2024 17:53
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    enhancement New feature or request
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    2 participants