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-Enhanced Voice Configuration Support in Character Cards #694

Closed
augchan42 opened this issue Nov 30, 2024 · 0 comments · Fixed by #698
Closed

feat-Enhanced Voice Configuration Support in Character Cards #694

augchan42 opened this issue Nov 30, 2024 · 0 comments · Fixed by #698
Labels
enhancement New feature or request

Comments

@augchan42
Copy link
Contributor

augchan42 commented Nov 30, 2024

Title: Enhanced Voice Configuration Support in Character Cards

Description
Previously, voice settings from character configuration were not being properly respected when ElevenLabs was not in use. This enhancement adds comprehensive voice configuration support in character cards for both VITS and ElevenLabs, with proper fallbacks.

Changes Made

  • Voice settings from character configuration are now properly used for both VITS and ElevenLabs
  • Automatic fallback to VITS when ElevenLabs API key is not present
  • Made ElevenLabs configuration fields optional in schema
  • Added better logging for voice selection process
  • Added support for full ElevenLabs configuration in character cards

Example Character Configuration

{
    "settings": {
        "voice": {
            "model": "en_GB-alan-medium",  // For VITS
            "elevenlabs": {   // Optional ElevenLabs configuration
                "voiceId": "your-voice-id",
                "model": "eleven_monolingual_v1",
                "stability": "0.5",
                "similarityBoost": "0.75",
                "style": "0",
                "useSpeakerBoost": "true"
            }
        }
    }
}

Configuration Priority

  1. Character card settings
  2. Environment variables
  3. Default values

Benefits

  • Consistent voice configuration behavior
  • Better character customization support
  • Clearer logging of voice selection
  • Simplified configuration requirements
  • Backward compatibility maintained
  • No breaking changes for existing setups

Technical Details

  • Updated voice selection to check both VITS and ElevenLabs settings in character cards
  • Added comprehensive ElevenLabs configuration support in character cards
  • Made all ElevenLabs schema fields optional with sensible defaults
  • Maintained backward compatibility with existing environment variables
  • Added debug logging to track voice selection process

Labels

  • enhancement
  • text-to-speech
  • configuration
@augchan42 augchan42 added the enhancement New feature or request label Nov 30, 2024
@augchan42 augchan42 changed the title Voice settings now properly respect character configuration regardless of TTS provider feat - Voice settings to respect character configuration regardless of TTS provider Nov 30, 2024
@augchan42 augchan42 changed the title feat - Voice settings to respect character configuration regardless of TTS provider feat-Enhanced Voice Configuration Support in Character Cards Nov 30, 2024
augchan42 added a commit to augchan42/eliza that referenced this issue Nov 30, 2024
- Add comprehensive ElevenLabs configuration in character cards
- Make ElevenLabs settings optional with sensible defaults
- Implement configuration priority (character card > env vars > defaults)
- Update schema validation to support optional fields
- Add debug logging for voice selection process
- Maintain backward compatibility with existing setups

Example character card config:
```json
{
    "settings": {
        "voice": {
            "model": "en_GB-alan-medium",
            "elevenlabs": {
                "voiceId": "your-voice-id",
                "model": "eleven_monolingual_v1",
                "stability": "0.5"
            }
        }
    }
}
```

Closes elizaOS#694
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 a pull request may close this issue.

1 participant