• Stars
    star
    141
  • Rank 259,971 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 11 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A python script for using Google's undocumented TTS api to save text to an MP3 file.

Google-Translate-TTS

A python script for using Google's undocumented TTS api to save text to an MP3 file.

For more background, check out this blog post.

Usage

Either 1/ on the command line, or 2/ as a function

1/ Command line

GoogleTTS.py [-h] [-o [OUTPUT]] [-l [LANGUAGE]]
                    (-f FILE | -s STRING [STRING ...])

Google TTS Downloader.

optional arguments:
  -h, --help            show this help message and exit
  -o [OUTPUT], --output [OUTPUT]
                        Filename to output audio to
  -l [LANGUAGE], --language [LANGUAGE]
                        Language to output text to.
  -f FILE, --file FILE  File to read text from.
  -s STRING [STRING ...], --string STRING [STRING ...]
                        A string of text to convert to speech.

Examples

To convert text from a file:

GoogleTTS.py -f text.txt

To convert text from the commandline to a named file:

GoogleTTS.py -l ja -o konnichiwa_bitches.mp3 -s ใ“ใ‚“ใซใกใฏ

2/ Function

or we can call

audio_extract(input_text='tunnel snakes rule apparently', args = {'language':'en','output':'outputto.mp3'})

Remember

Don't be evil.

More Repositories

1

TouchFart

A fart app for the new Macbook Pro's Touch Bar
Swift
415
star
2

LinkedIn-Password-Checker

Check to see if your password is in the list of leaked LinkedIn Passwords
Python
45
star
3

DeadRinger

A proof of concept iPhone X lock screen spoof
Swift
22
star
4

Zswift

POC Zwift clone.
Swift
16
star
5

FacefARt

The world's most advanced fart app. Ever.
Swift
14
star
6

WatchFart

The world's (maybe) first ever fart app for Apple Watch
Objective-C
6
star
7

Runscope-iOS

A subclass of NSMutableURLRequest that automagically changes your API requests to Runscope requests.
Objective-C
6
star
8

GlassFart

The first ever fart app for Google Glass?
Shell
6
star
9

chef-duo-unix

A chef recipe for installing Duo Unix two-factor authentication.
Ruby
4
star
10

ObjTweet

An iOS helper class for opening an external Twitter client.
Objective-C
4
star
11

Audubon

An automatic screenshot creator for Twitter powered by PhantomJS
HTML
3
star
12

weddingnsnap

A Twilio MMS app that lets wedding guests share their photos with you.
Python
2
star
13

BarkMode

Bark Detection + Dark Mode for iOS 13
Swift
2
star
14

Wordle-Bot

A wordle solving bot written in Swift for MacOS, which plays the game for you (and optionally runs a command to make a robot play it IRL)
Swift
2
star
15

Weathergram

A quick project that ended up winning a Twilio contest!
PHP
1
star
16

pinbin

PinBin is a self-hosted service that makes it easier to debug and visualize location-based data gathered from mobile devices.
Python
1
star
17

android-reddit

A really bad Reddit client for Android
Java
1
star
18

hungtruong

Yo it's my profile
1
star