All Projects โ†’ hiteshsahu โ†’ Android-TTS-STT

hiteshsahu / Android-TTS-STT

Licence: other
One line solution for Android Text to speech(TTS) & Speech to Text(STT) translation problem

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Android-TTS-STT

iOSProjects
It's project that contains different applications developed with Swift 5.7 ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘ฉ๐Ÿผโ€๐Ÿ’ป๐Ÿง‘๐Ÿฟโ€๐Ÿ’ป
Stars: โœญ 122 (+58.44%)
Mutual labels:  speech-recognition
simple-obs-stt
Speech-to-text and keyboard input captions for OBS.
Stars: โœญ 89 (+15.58%)
Mutual labels:  speech-recognition
web-speech-cognitive-services
Polyfill Web Speech API with Cognitive Services Bing Speech for both speech-to-text and text-to-speech service.
Stars: โœญ 35 (-54.55%)
Mutual labels:  speech-recognition
octopus
On-device speech-to-index engine powered by deep learning.
Stars: โœญ 30 (-61.04%)
Mutual labels:  speech-recognition
awesome-keyword-spotting
This repository is a curated list of awesome Speech Keyword Spotting (Wake-Up Word Detection).
Stars: โœญ 150 (+94.81%)
Mutual labels:  speech-recognition
speech-recognition-evaluation
Evaluate results from ASR/Speech-to-Text quickly
Stars: โœญ 25 (-67.53%)
Mutual labels:  speech-recognition
opensource-voice-tools
A repo listing known open source voice tools, ordered by where they sit in the voice stack
Stars: โœญ 21 (-72.73%)
Mutual labels:  speech-recognition
telltime
iOS application to tell the time in the British way ๐Ÿ‡ฌ๐Ÿ‡งโฐ
Stars: โœญ 49 (-36.36%)
Mutual labels:  speech-recognition
KodiSharp
Use Kodi python APIs in C#, and write rich addons using the .NET framework/Mono
Stars: โœญ 22 (-71.43%)
Mutual labels:  speech-recognition
ctc-asr
End-to-end trained speech recognition system, based on RNNs and the connectionist temporal classification (CTC) cost function.
Stars: โœญ 112 (+45.45%)
Mutual labels:  speech-recognition
React.ai
It recognize your speech and trained AI Bot will respond(i.e Customer Service, Personal Assistant) using Machine Learning API (DialogFlow, apiai), Speech Recognition, GraphQL, Next.js, React, redux
Stars: โœญ 38 (-50.65%)
Mutual labels:  speech-recognition
praise
Do stuff with your voice in the browser.
Stars: โœญ 13 (-83.12%)
Mutual labels:  speech-recognition
speechmatics-python
Python library and CLI for Speechmatics
Stars: โœญ 24 (-68.83%)
Mutual labels:  speech-recognition
awesome-end2end-speech-recognition
๐Ÿ’ฌ A list of End-to-End speech recognition, including papers, codes and other materials
Stars: โœญ 49 (-36.36%)
Mutual labels:  speech-recognition
Khronos
The open source intelligent personal assistant
Stars: โœญ 25 (-67.53%)
Mutual labels:  speech-recognition
picovoice
The end-to-end platform for building voice products at scale
Stars: โœญ 316 (+310.39%)
Mutual labels:  speech-recognition
titanium-speech
Use the iOS 10 SFSpeechRecognizer API in JavaScript with Appcelerator Hyperloop.
Stars: โœญ 21 (-72.73%)
Mutual labels:  speech-recognition
houndify-sdk-go
The official Houndify SDK for Go
Stars: โœญ 23 (-70.13%)
Mutual labels:  speech-recognition
hf-experiments
Experiments with Hugging Face ๐Ÿ”ฌ ๐Ÿค—
Stars: โœญ 37 (-51.95%)
Mutual labels:  speech-recognition
kospeech
Open-Source Toolkit for End-to-End Korean Automatic Speech Recognition leveraging PyTorch and Hydra.
Stars: โœญ 456 (+492.21%)
Mutual labels:  speech-recognition

Android Easy Text to Speech & Speech to Text without annoying dialog(TTS & STT)

Android TTS and STT is one line solution to convert text to speech(TTS) & speech to text(STT) in your Android App.

  • Convert Speech to text without annoying dialog.
  • Convert Text to Speech with error handling and callbacks
  • Written in Kotlin and compiled for upto Android 28.
  • TranslatorFactory class uses Factory pattern to create translators instances and use callbacks return success and error.

Usage

   //SPEECH TO TEXT DEMO
    speechToText.setOnClickListener({ view ->

        Snackbar.make(view, "Speak now, App is listening", Snackbar.LENGTH_LONG)
                .setAction("Action", null).show()

        TranslatorFactory
                .instance
                .with(TranslatorFactory.TRANSLATORS.SPEECH_TO_TEXT,
                        object : ConversionCallback {
                            override fun onSuccess(result: String) {
                                sttOutput.text = result
                            }

                            override fun onCompletion() {
                            }

                            override fun onErrorOccurred(errorMessage: String) {
                                erroConsole.text = "Speech2Text Error: $errorMessage"
                            }

                        }).initialize("Speak Now !!", this@HomeActivity)

    })


    //TEXT TO SPEECH DEMO
    textToSpeech.setOnClickListener({ view ->

        val stringToSpeak :String = ttsInput.text.toString()

        if (null!=stringToSpeak &&  stringToSpeak.isNotEmpty()) {

            TranslatorFactory
                    .instance
                    .with(TranslatorFactory.TRANSLATORS.TEXT_TO_SPEECH,
                            object : ConversionCallback {
                                override fun onSuccess(result: String) {
                                }

                                override fun onCompletion() {
                                }

                                override fun onErrorOccurred(errorMessage: String) {
                                    erroConsole.text = "Text2Speech Error: $errorMessage"
                                }

                            })
                    .initialize(stringToSpeak, this)

        } else {
            ttsInput.setText("Invalid input")
            Snackbar.make(view, "Please enter some text to speak", Snackbar.LENGTH_LONG).show()
        }

    })

Screenshots of Demo screen

Use in your project

Simply drop translation_engine package in your project and start using wherever you like. Dont forget to add RECORD_AUDIO permission in Maninfest. For Marshmallow and above you will need to request permission (refer abstract class BasePermissionActivity in the demo).

  <uses-permission android:name="android.permission.RECORD_AUDIO" />

Reference: https://stackoverflow.com/questions/6316937/how-can-i-use-speech-recognition-without-the-annoying-dialog-in-android-phones

Licence

   Copyright 2019 Hitesh Kumar Sahu

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].