Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshp19 committed Dec 24, 2024
1 parent b216d22 commit 8962d73
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 8962d73

Please sign in to comment.