ObjC – Tesla speech for OSX

Today, a simple osx tool to use Google Translate speech on your mac!

How it works?

It’s a cocoa application, that support as minimum osx version, 10.6.

The app call google translate url, this one:

http://www.translate.google.com/translate_tts?tl=XXX&q=XXX

passing in tl parameter, language, as:

it
en
fr
de
es
etc…

and in q parameter, the text that you want to speech.

After calling google, i save a local temporary file, play it, and next remove it.
That’s all.

App in launched in “Agent Mode”, without menu bar, icons, etc.
Perfect for a tray application.

Screenshot 2014-02-18 17.05.11

I’m using OSx version of iOS library, this one, objectivec speech text/ to make the game!

You can download code, to improve, make money, etc…, on github: https://github.com/elpsk/Tesla-Speech
As usual, it’s a starting point, take it as-is or better, improve it!

have fun.

 

Alberto Pasca

Software engineer @ Pirelli & C. S.p.A. with a strong passion for mobile  development, security, and connected things.