Download VoiceProfile.py from K00B404/RAGoLLAMA: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/K00B404/RAGoLLAMA/resolve/main/VoiceProfile.py
- Command line
-
hf download hf://spaces/K00B404/RAGoLLAMA/VoiceProfile.py
-
curl -L -o VoiceProfile.py https://huggingface.co/spaces/K00B404/RAGoLLAMA/resolve/main/VoiceProfile.py
646 Bytes
| class VoiceProfile: | |
| def __init__(self, name, language, pitch, speaking_rate): | |
| self.name = name | |
| self.language = language | |
| self.pitch = pitch | |
| self.speaking_rate = speaking_rate | |
| def to_dict(self): | |
| return { | |
| 'name': self.name, | |
| 'language': self.language, | |
| 'pitch': self.pitch, | |
| 'speaking_rate': self.speaking_rate | |
| } | |
| def from_dict(cls, profile_dict): | |
| return cls( | |
| profile_dict['name'], | |
| profile_dict['language'], | |
| profile_dict['pitch'], | |
| profile_dict['speaking_rate'] | |
| ) |