Skip to main content

yandex-tts-free

Этот Python пакет позволяет генерировать речь из текста, используя бесплатное Yandex SpeachKit API. Доступен только Русский язык. Вы можете выбрать голос и настроение для синтезированной речи.

Установка

Для начала работы установите пакет через pip:

pip install yandex-tts-free

Требования

Для использования этого пакета необходимо иметь установленный ffmpeg в системе.

Доступные голоса

  • levitan
  • zahar
  • silaerkan
  • oksana
  • jane
  • omazh
  • kolya
  • kostya
  • nastya
  • sasha
  • nick
  • zhenya
  • tanya
  • ermilov
  • alyss
  • ermil with tunning
  • robot
  • dude
  • zombie
  • smoky

Доступные настроения

  • neutral
  • evil
  • good

Использование

from yandex_tts_free import YandexFreeTTS
import os

tts = YandexFreeTTS()
output_path = 'output'

# Создаем папку если её нет
if not os.path.exists(output_path):
    os.makedirs(output_path)

text = 'Это тестовый текст для проверки голосов.'

# Генерация речи с голосом levitan и нейтральным настроением
tts.generate_speech_ya(output_path, 'test.mp3', text, 'levitan')

# Генерация речи с голосом oksana и настроением good
tts.generate_speech_ya(output_path, 'test_good.mp3', text, 'oksana', 'good')

Отказ от ответственности

Этот пакет не является официальным продуктом Яндекса и использует их бесплатное TTS API. Используйте его на свой страх и риск. Разработчики не несут ответственности за любые проблемы, которые могут возникнуть в результате использования этого пакета.

Metadata

Release files for yandex-tts-free 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yandex-tts-free 0.0.5
File Size Uploaded Provenance Actions
yandex_tts_free-0.0.5.tar.gz 5.5 kB Without provenance Details for yandex_tts_free-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yandex-tts-free 0.0.5
File Interpreter ABI Platform Actions
yandex_tts_free-0.0.5-py3-none-any.whl Python 3 none any Details for yandex_tts_free-0.0.5-py3-none-any.whl

Total release size: 10.0 kB

Release files / yandex_tts_free-0.0.5.tar.gz

Download URL yandex_tts_free-0.0.5.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d5990acfc553469b393bffbc7d9a077af8b9f8edf443dceb8c8dca3365a12d18
BLAKE2b-256 checksum
How to use checksums
712e1fa2043959ca5c8b2c00be61d3c19a046fe0061afd1bced98b1556895300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / yandex_tts_free-0.0.5-py3-none-any.whl

Download URL yandex_tts_free-0.0.5-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1601215235e7e0fe390daded716b29f81789c3f05fa3256c4528d350c50525ad
BLAKE2b-256 checksum
How to use checksums
e25dabfaf254f57dbd314e8aafa10d23eac5f48a3824433a00a5c44d7d1e9fbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Security for yandex-tts-free 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page