Skip to main content

sinthesis speech with pauses

Project description

silence inputer

description

This extension of voicekit_client_python allows you to manage pauses in synthesis text.

#(integer) in synthesis string determines time section of pause between part of texts. One quantitative value of silence time section equals 100ms like comma in synthesis text with VoiceKit.

Syntesis audio has wav format.

examples

from speech_semaphore import ClientTTS

API_KEY = "api_key"
SECRET_KEY = "secret_key"

client = ClientTTS(API_KEY, SECRET_KEY)

text_with_pause = "Поторопись! #(3) у нас щас котлетки #(6) с макарошками? #(6) Нет #(4) с пюрэшкой"
without_pause = "Поторопись! у нас щас котлетки с макарошками? Нет с пюрэшкой"

client.synthesize_with_pause(text_with_pause, "with_pause.wav")
client.synthesize_with_pause(without_pause, "without_pause.wav")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

speech_semaphore-0.1.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

speech_semaphore-0.1.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page