1.0.4 • Published 4 years ago

google-tts-languages v1.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Google TTS Languages

This repository is for keeping track of the current languages supported by the "secret" Google Translate TTS API. They are not documented anywhere, so I have to keep track of them manually, and sometimes they change.

I made this little repository because I use these language codes frequently in my website "Sound of Text" (soundoftext.com).

I thought that maybe someone else would find them useful, as well, and might be able to help me keep these languages up to date.

You can find a list of these languages at https://soundoftext.com/docs#voices.

Install

yarn add google-tts-languages

Usage

const languages = require('google-tts-languages');

console.log(languages);

/*
[ { code: 'af-ZA', name: 'Afrikaans' },
  { code: 'sq', name: 'Albanian' },
  { code: 'ar-AE', name: 'Arabic' },
  ...
  ]
 */

const name = languages.findByCode('es-MX').name;            // Spanish (Mexico)
const code = languages.findByName('Spanish (Mexico)').code; // es-MX

I highly recommend just looking at index.js. It is very easy to understand.

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago