Hi I am a developer of video games and apps for Android and windows, hopefully soon for mac as well, I've been making video games for fun for about 14 years, and in February 2015 decided to get serious and started Roadhammer Gaming, a company aimed at producing video games and software for a fair amount of platforms. Future plans are to open a unique 3d immersed gaming facility, set up kind of like laser tag or paintball crossed with startrek's Holodeck to be open for business based on a set fee for a set amount of game play time. I am currently the owner and sole employee of my company. In my spare time I like hiking, motorsports, the beach, horror movies, sci fi movies and rpg style video games.

Report RSS Make your games speak! TTSBasic- an extension for gamemaker: studio for Android

Posted by on

Hello from Roadhammer Gaming! I have released a Text to Speech Extension on the Gamemaker Marketplace, This extension allows an Android device to speak text input that you or your players give it in your games!

Updated to version 2.0, Now compatible with GMS 2!
What's new
-Bug fixes in example project
-Updated Readme text in included files
-Added GMS 2 example project in the included files, Thanks to @Justice of the gamemaker community for the example project!

Requirements:

You must have gamemaker studio 1.4x or early access 1.99x and the Android module to use this extension.

YYG Marketplace Download link: TTSBasic Text to Speech Extension

Here is a link to a completed TTSBasic APK so you can test it out

icon200

TTS Android Basic is a text to speech extension for Android, This extension is intended for use on gamemaker 1.4 and early access 1.99 and you must have the android module to use it. This extension will let you input text and have the computer speak the text. Example project is included and a readme file is also included in the included files of the example project. Below is a list of the available functions and return type names from the extension:

Functions-
1. endTTS()- shuts down TTS. make sure to call this before ending game!
2. speakIT()- ciri speaks whatever text you input.
3. SstInit()- call once to start text to speech, only call again if you've called endTTS() and want to restart text to speech.
4. canSpeak()- check weather text to speech is initialized. Returns integer 0 for not initialized or 1 for is initialized.
5. countryC(String)- change the default language, string can be "usa", "canada", "germany", "italy", "japan" or "china".
6-7. Next 2 functions are for getting app permissions in android m, must be called in create event of first run object in first room of game.
8. adjPitch(double)- adjust the pitch of the voice, must be greater than 0.0, the lower the number the deeper the voice 1.0 is normal.
9. adjSpeed(double)- adjust the speed of talking, must be greater than 0.0, the lower the number the slower the speech, 1.0 is normal.

The best part about the adjPitch function is you can simulate male/female voices by adjusting the pitch!

Social async types returned to gms:
NOTE all values are returned as strings
1. initted- Query weather TTS is running.
2. whostalking- Returns "2" when computer starts speaking.
3. compsays- Converts Computer's spoken words to text.

IMPORTANT NOTE: The end user of your game must have a tts engine on their android device, most android devices come with the engine but most do not have the language plugins, but the extension will prompt the user to install them if they are missing.
ALSO the chinese and japanese languages require a 3rd party tts engine and language plugins to work and they may have to be installed manually by the user, but that shouldn't be a problem if you live in those countries.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: