From 8962d736325af87f9ce315d853fe92864c42720b Mon Sep 17 00:00:00 2001 From: jayesh Date: Wed, 25 Dec 2024 01:13:44 +0530 Subject: [PATCH] updates --- .../livekit-plugins-playai/livekit/plugins/playai/tts.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/livekit-plugins/livekit-plugins-playai/livekit/plugins/playai/tts.py b/livekit-plugins/livekit-plugins-playai/livekit/plugins/playai/tts.py index 2745777ed..464f3f418 100644 --- a/livekit-plugins/livekit-plugins-playai/livekit/plugins/playai/tts.py +++ b/livekit-plugins/livekit-plugins-playai/livekit/plugins/playai/tts.py @@ -18,7 +18,7 @@ from pyht.client import Format, Language, TTSOptions # type: ignore from .log import logger -from .models import FORMAT, TTSModel, format_mapping +from .models import TTSModel NUM_CHANNELS = 1 @@ -39,7 +39,6 @@ def __init__( voice: str = "s3://voice-cloning-zero-shot/d9ff78ba-d016-47f6-b0ef-dd630f59414e/female-cs/manifest.json", language: str = "english", sample_rate: int = 24000, - format: FORMAT = "mp3", model: TTSModel | str = "Play3.0-mini-ws", word_tokenizer: tokenize.WordTokenizer = tokenize.basic.WordTokenizer( ignore_punctuation=False @@ -53,7 +52,6 @@ def __init__( api_key (str): PlayAI API key. user_id (str): PlayAI user ID. voice (str): Voice manifest URL. - format (FORMAT): Audio format. Defaults to "mp3". model (TTSModel): TTS model, defaults to "Play3.0-mini-ws". language (str): language, defaults to "english". sample_rate (int): sample rate (Hz), A number greater than or equal to 8000, and must be less than or equal to 48000 @@ -79,7 +77,7 @@ def __init__( _validate_kwargs(kwargs) self._config = TTSOptions( voice=voice, - format=format_mapping.get(format, Format.FORMAT_MP3), + format=Format.FORMAT_MP3, # Default format for now sample_rate=sample_rate, language=Language(language), **kwargs,