Giter Site home page Giter Site logo

realkotob / godot-speechtotext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from literaldumb/godot-speechtotext

0.0 1.0 0.0 13.36 MB

Speech-To-Text support for Godot Engine on Android using Google Speech API

License: MIT License

Java 71.36% Python 11.79% GDScript 16.86%

godot-speechtotext's Introduction

#Godot-SpeechToText

##How to use

  • Drop the speechtotext folder inside godot/modules

  • Move the speechtotext/GodotSpeech.java to godot/platform/android/java/src/org/godotengine/godot

  • Import the speechtest example project in Godot for a test run [ Not a great UI. Just functionality demonstration ]

Note: The speechtotext/android.jar is taken from android-sdk-linux/platforms/android-19. You may choose to use any other api version.

###Compile

  1. #> scons platform=android
  2. cd godot/platform/android/java
  3. #> ./gradlew build
  4. The resulting apk will be available at godot/platform/android/java/build/outputs/apk

###Configure Add the following in the engine.cfg file:

[android]

modules="org/godotengine/godot/GodotSpeech"

Use them in the script:

var singleton = Globals.get_singleton("GodotSpeech")

singleton.doListen() # opens up the mic ui

singleton.getWords() # gets the strings of words

###Build the game apk From the settings of the godot engine UI:

Export->Target->Android

Custom Package (Debug/Release):

Point to the newly built apk

Permission check: RecordAudio

####License MIT

###Special Mention Thanks TeamKrishna

Other plugins:

godot-speechtotext's People

Contributors

literaldumb avatar

Watchers

James Cloos 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.