Skip to main content

tts-corpus-creator

collection of different source of tts api for generating corpus. feature:

  • large scale tts
  • support both free and charge source

Source

Charge

Google Cloud TTS

  1. install pip install google-cloud-texttospeech
import os

os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "xxx.json"

from ttscorpus.source import GoogleCloud

gc = GoogleCloud()
gc("hi,there", 'output')

Free

Mac

  1. install ffmpeg brew install ffmpeg
from ttscorpus.source import MAC

mac = MAC()
mac('hello, there, I am mac', 'output')

Google TTS

  1. install pip install gtts
from ttscorpus.source import GoogleTTS

mac = GoogleTTS()
mac('sixty six year old badly. independence of mutual fund boards represents discrete defeat.', 'test')

Android TTS

  1. build android tts server app from: https://github.com/voidful/android-tts-server
from ttscorpus.source import AndroidTTS

atts = AndroidTTS('http://xxxx:port')
atts(
    "CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO …",
    'test')

Metadata

Release files for ttscorpus 0.0.2

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

Source distribution (sdist)

Source distribution for ttscorpus 0.0.2
File Size Uploaded
ttscorpus-0.0.2.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ttscorpus 0.0.2
File Interpreter ABI Platform
ttscorpus-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / ttscorpus-0.0.2.tar.gz

Download URL ttscorpus-0.0.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0b036928c3da3236866c384bfe9b3a0959b50c81f18647fbc2110cf373012151
BLAKE2b-256 checksum
How to use checksums
7f1f0e74c32d25b2efb5d168ec838c5ed6aa0a9909b6fefeb4bb791e978381c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

Release files / ttscorpus-0.0.2-py3-none-any.whl

Download URL ttscorpus-0.0.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b4cce9942befb842c7a560b8cbcdfbcc27b80e45b2d333443f98bf101b0c02b
BLAKE2b-256 checksum
How to use checksums
f88ed703c36b7f1c50b998d08beccd4551947f073271617c76bc3117c3272866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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