-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathexample_script.py
10 lines (8 loc) · 953 Bytes
/
example_script.py
1
2
3
4
5
6
7
8
9
10
from tiktok_voice import tts, Voice
text = 'Tangerines are smaller and less rounded than the oranges. The taste is considered less sour, as well as sweeter and stronger, than that of an orange. A ripe tangerine is firm to slightly soft, and pebbly-skinned with no deep grooves, as well as orange in color. The peel is thin, with little bitter white mesocarp. All of these traits are shared by mandarins generally. Peak tangerine season lasts from autumn to spring. Tangerines are most commonly peeled and eaten by hand. The fresh fruit is also used in salads, desserts and main dishes. The peel is used fresh or dried as a spice or zest for baking and drinks. Fresh tangerine juice and frozen juice concentrate are commonly available in the United States.'
# arguments:
# - input text
# - voice which is used for the audio
# - output file name
# - play sound after generating the audio
tts(text, Voice.US_MALE_1, "output.mp3", play_sound=True)