Skip to content

ssyz/speech2text

Repository files navigation

Google Cloud AI: TEXT-TO-SPEECH

Artificial Intelligence (AI) and machine learning are some of the biggest buzz words in 21st century computing. Google's Cloud AI provides modern machine learning services, with pre-trained models and a service to generate your own tailored models. In this project, I integrate CLOUD TEXT-TO-SPEECH and present a trivial sample project. The idea is for you to utilize the abstracted code and make something cool! Definitely let me know if there is any additional functionality you would find useful.

It may be important to note that any meaningful project based on Cloud AI probably requires prior experience with Python or another coding language.

See all DIY Resources here.

Prerequisites

Setup in 3 Steps

  1. Enable the Cloud Text-to-Speech API on your console, making sure that billing is enabled
  2. Set up authentication
  3. Intall and initialize the Cloud SDK

Making the project work

One of the hardest parts of programming applications is getting various services to work together. In general, it is best practice to refer to the provided documentation. Below are a few critical components and examples. I will continue to add to this section as questions come up.

Remember to set application credentials!

Verification and security is required by most API calls. For this project, before you run your code, you must set the environment variables in the terminal.

> set GOOGLE_APPLICATION_CREDENTIALS=C:\Users\Jay\Documents\Emory\Fall Semester 2018\Appcology\GCP\GCP-1-02d8b5cb2fcd.json

Call the API!

I've modified the original file to allow for easy calling of the API, this means you can ignore the behind the scenes code.

import speech2text as st
text = "Welcome to Appcology! I can't wait to see what you all create."
fileName = "hi.mp3"
st.outputSpeech(text, fileName)

Deployment

To submit your completed project for a grade, please upload all code and output files as a ZIP onto Canvas.

Authors

  • Jay Syz - Initial work - ssyz
  • Quickstart Guide - Reference - Google

About

initial push

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages