Giter Site home page Giter Site logo

google-tts-demo's Introduction

Google Cloud Text-to-Speech API iOS Demo

This demo app showcases how to use Google Cloud Text-to-Speech API on iOS. Google’s TTS API is very powerful and the available voices sound extremely fluent and natural. More details on the API can be found here. There's also a tutorial available here.

How to enable the TTS API

As with any Google Cloud API, the API has to be enabled on a project within the Google Cloud Console and all the API calls will be associated to that project. To setup a project in the Google Cloud Console, you can follow all the steps described here, except that this demo app requires an API key instead of a service account key.

Summarized steps:

  1. Create a project (or use an existing one) in the Cloud Console.
  2. Make sure that billing is enabled for your project.
  3. Enable the Text-to-Speech API.
  4. Create an API key.

Running the app

  1. Clone this repo
    $ git clone https://github.com/acotilla91/Google-TTS-Demo.git
    
  2. Open project in Xcode.
  3. Go to the SpeechService class and replace <YOUR_API_KEY> with the actual API key that was obtained from the steps above.
  4. Run the app. Should work on both, the device and simulator.

Know issues

  • The WaveNet voices work perfectly, but the standard voices tend to fail. Might be a temporal bug on Google's side, since this is still a beta API. Issue seems resolved.

License

This project is available under the MIT license. See the LICENSE file for more info.

google-tts-demo's People

Contributors

acotilla91 avatar alejandrofli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.