Skip to content

Google Text-to-Speech support for The V Programming Language

License

Notifications You must be signed in to change notification settings

rc4000/gtts-vlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

gtts-vlang

Google Text-to-Speech support for The V Programming Language

How to install:

Install gtts using:

v install rc4000.gtts

How to use:

import rc4000.gtts // i wish it was just gtts to import

fn main(){
	gtts.save_to_file("Hello world",  "en",  "hello.mp3")!
  //                      ↑ text          ↑ language   ↑ path
}

Languages

For the language you need to use the ISO-639 code, here is a small list:
see the full list at: https://cloud.google.com/translate/docs/languages

Lenguaje ISO-639 code
English en
Spanish es
Portuguese pt
German de
French fr

About

Google Text-to-Speech support for The V Programming Language

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages