You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Download NLTK's punkt tokenizer data if not already downloaded
13
11
global_nltk_initialized
14
-
try:
15
-
_nltk_initialized
16
-
exceptNameError:
17
-
_nltk_initialized=False
12
+
_nltk_initialized=False
18
13
19
14
# Function to split text into chunks using sentence tokenization
20
15
defnltk_chunk_text(text):
@@ -25,15 +20,32 @@ def nltk_chunk_text(text):
25
20
returnsent_tokenize(text)
26
21
27
22
_tts_speaker_prompts= [
28
-
"A female speaker delivers an expressive and animated speech with a very high-pitch voice. The recording is slightly noisy but of good quality, as her voice comes across as very close-sounding.",
29
-
"A female speaker delivers her speech with a slightly expressive and animated tone, her voice ringing clearly and undistorted in the recording. The pitch of her voice is very high, adding a sense of urgency and excitement.",
30
-
"A female speaks with a slightly expressive and animated tone in a recording that sounds quite clear and close up. There is only a mild amount of background noise present, and her voice has a moderate pitch. Her speech pace is steady, neither slow nor particularly fast.",
31
-
"A female speaker delivers her speech in a recording that sounds clear and close up. Her voice is slightly expressive and animated, with a moderate pitch. The recording has a mild amount of background noise, but her voice is still easily understood.",
32
-
"In a somewhat confined space, a female speaker delivers a talk that is slightly expressive and animated, despite some background noise. Her voice has a low-pitch tone.",
33
-
"A male voice speaks in a monotone tone with a slightly low-pitch, delivering his words at a moderate speed. The recording offers almost no noise, resulting in a very clear and high-quality listen. The close-up microphone captures every detail of his speech.",
34
-
"A man speaks with a monotone tone and a slightly low-pitch, delivering his words at a moderate speed. The recording captures his speech very clearly and distinctly, with little to no background noise. The listener feels as if they're almost sharing the same space with the speaker.",
35
-
"A male speaker delivers his words with a very monotone and slightly faster than average pace. His voice is very clear, making every word distinct, while it also has a slightly low-pitch tone. The recording quality is excellent, with no apparent reverberation or background noise.",
36
-
"A male speaker delivers his words in a very monotone and slightly low-pitched voice, maintaining a moderate speed. The recording is of very high quality, with minimum noise and a very close-sounding reverberation that suggests a quiet and enclosed environment.",
23
+
"A female speaker delivers an expressive and animated speech with a very high-pitch voice. "
24
+
"The recording is slightly noisy but of good quality, as her voice comes across as very close-sounding.",
25
+
"A female speaker delivers her speech with a slightly expressive and animated tone, "
26
+
"her voice ringing clearly and undistorted in the recording. "
27
+
"The pitch of her voice is very high, adding a sense of urgency and excitement.",
28
+
"A female speaks with a slightly expressive and animated tone in a recording that sounds quite clear and close up. "
29
+
"There is only a mild amount of background noise present, and her voice has a moderate pitch. "
30
+
"Her speech pace is steady, neither slow nor particularly fast.",
31
+
"A female speaker delivers her speech in a recording that sounds clear and close up. "
32
+
"Her voice is slightly expressive and animated, with a moderate pitch. "
33
+
"The recording has a mild amount of background noise, but her voice is still easily understood.",
34
+
"In a somewhat confined space, a female speaker delivers a talk that is slightly expressive and animated, "
35
+
"despite some background noise. "
36
+
"Her voice has a low-pitch tone.",
37
+
"A male voice speaks in a monotone tone with a slightly low-pitch, delivering his words at a moderate speed. "
38
+
"The recording offers almost no noise, resulting in a very clear and high-quality listen. "
39
+
"The close-up microphone captures every detail of his speech.",
40
+
"A man speaks with a monotone tone and a slightly low-pitch, delivering his words at a moderate speed. "
41
+
"The recording captures his speech very clearly and distinctly, with little to no background noise. "
42
+
"The listener feels as if they're almost sharing the same space with the speaker.",
43
+
"A male speaker delivers his words with a very monotone and slightly faster than average pace. "
44
+
"His voice is very clear, making every word distinct, while it also has a slightly low-pitch tone. "
45
+
"The recording quality is excellent, with no apparent reverberation or background noise.",
46
+
"A male speaker delivers his words in a very monotone and slightly low-pitched voice, "
47
+
"maintaining a moderate speed. The recording is of very high quality, with minimum noise "
48
+
"and a very close-sounding reverberation that suggests a quiet and enclosed environment.",
0 commit comments