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:
[code lang=”bash” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]http://www.translate.google.com/translate_tts?tl=XXX&q=XXX[/code]
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.
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.
- Unity3D – Snap object in editor grid - 3 January 2021
- Swift – UIView gradient extension - 7 December 2020
- iOS – Data Leakage: App background cache - 16 November 2020