move utils.audio to audio.utils and add resample_audio()

This commit is contained in:
Aleix Conchillo Flaqué
2024-10-17 10:12:42 -07:00
parent c6d28bb0db
commit d3f4ac61b6
10 changed files with 34 additions and 45 deletions

View File

@@ -9,17 +9,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added a websocket service for PlayHT, called `PlayHTTTSService`.
- Added input parameter options for `PlayHTTTSService` and
`PlayHTHttpTTSService`.
### Changed
- Module `utils.audio` is now `audio.utils`. A new `resample_audio` function has
been added.
- `PlayHTTTSService` now uses PlayHT websockets instead of HTTP requests.
- The previous `PlayHTTTSService` HTTP implementation is now
`PlayHTHttpTTSService`.
- `PlayHTTTSService` and `PlayHTHttpTTSService` now use a `voice_engine` of
`PlayHT3.0-mini`, which allows for multi-lingual support.
- Changed the name of the HTTP PlayHT service from `PlayHTTTSService` to
`PlayHTHttpTTSService` since there's now a websocket service, which is the
default.
- Renamed `OpenAILLMServiceRealtimeBeta` to `OpenAIRealtimeBetaLLMService` to
match other services.