default
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def split_text_into_chunks(text, max_tokens):
|
|
61 |
|
62 |
return chunks
|
63 |
|
64 |
-
def textToSpeech(speaker="543", expression):
|
65 |
speaker_embeddings = torch.tensor(embeddings_dataset[int(speaker)]["xvector"]).unsqueeze(0).to(device)
|
66 |
max_token_limit = 600 # Set the token limit for your model
|
67 |
chunks = split_text_into_chunks(expression, max_token_limit)
|
|
|
61 |
|
62 |
return chunks
|
63 |
|
64 |
+
def textToSpeech(speaker="543", expression=""):
|
65 |
speaker_embeddings = torch.tensor(embeddings_dataset[int(speaker)]["xvector"]).unsqueeze(0).to(device)
|
66 |
max_token_limit = 600 # Set the token limit for your model
|
67 |
chunks = split_text_into_chunks(expression, max_token_limit)
|