Speech To Text | Google Speech Recognition API

  Рет қаралды 14,290

Code Vedanam

Code Vedanam

2 жыл бұрын

In this tutorial we will see how to use speech to text api in android studio.
Note - Code is in the comments.
Blog URL
codevedanam.blogspot.com
Music: Early Hours
Musician: @iksonmusic

Пікірлер: 20
@CodeVedanam
@CodeVedanam 2 жыл бұрын
**************************************************************** Layout XML **************************************************************** **************************************************************** Java Code **************************************************************** package com.example.demo; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.speech.RecognizerIntent; import android.speech.SpeechRecognizer; import android.view.MenuItem; import android.view.View; import android.widget.TextView; import com.google.android.material.bottomnavigation.BottomNavigationView; import com.google.android.material.navigation.NavigationBarView; public class MainActivity extends AppCompatActivity { TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView = findViewById(R.id.textView); } public void speak(View view) { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Start Speaking"); startActivityForResult(intent, 100); } @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if(requestCode == 100 && resultCode == RESULT_OK){ textView.setText(data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS).get(0)); } } } ****************************************************************
@akashshrivastava8422
@akashshrivastava8422 2 жыл бұрын
Very helpful and informative 👍👌👏
@CodeVedanam
@CodeVedanam 2 жыл бұрын
Glad it was helpful!
@FathurRoziq12
@FathurRoziq12 2 жыл бұрын
please make a voice input validation tutorial using google speech
@willyjardon9698
@willyjardon9698 Жыл бұрын
Highly request please , can you make a video for Text to speech in 1 button. When click the start button for speak , then the button will change , and when the speak is complete the button will come back on the start. I find every where but didn't find the OnUttrachCompleteListener method any where. Thanks in advance
@azamjonostonakulov2407
@azamjonostonakulov2407 2 жыл бұрын
thank youu. you helped me. like for it
@CodeVedanam
@CodeVedanam 2 жыл бұрын
Thank you
@CountryHouseIncubators
@CountryHouseIncubators 11 ай бұрын
Is there an option to get it to represent numbers as words. For eg 600 as "six hundred" and 5-7-7 as "five seven seven"?
@CountryHouseIncubators
@CountryHouseIncubators 11 ай бұрын
Is there a way to change how it handles numbers. If i say "six hundred" or wether i say "six zero zero", It gives the same output as 600
@VISHAL-rr9wn
@VISHAL-rr9wn 11 ай бұрын
What you press to open select method to override or implement at 5:00
@rupalimandlik2924
@rupalimandlik2924 Жыл бұрын
How to give input voice in laptop or pc
@acefuzzball7969
@acefuzzball7969 7 ай бұрын
Is possible to use speech to text without the internet?
@user-ce9lb9et7w
@user-ce9lb9et7w Жыл бұрын
do it uses google cloud api ?
@pandalyrics383
@pandalyrics383 9 ай бұрын
How to get the voice to text in Android studio
@SanzReyes1305
@SanzReyes1305 Жыл бұрын
Someone know how to do this but on kotlin language? pd: nice video
@jeremyaltares5599
@jeremyaltares5599 2 жыл бұрын
Update for android 11
@aftabsaleem2670
@aftabsaleem2670 Жыл бұрын
how you open select methods to override dialogue
@user-fv5mz5wk3g
@user-fv5mz5wk3g 11 ай бұрын
to override open = Ctrl+O
@youtubecomedy366
@youtubecomedy366 2 жыл бұрын
Sir application not a working phone plz help
@CodeVedanam
@CodeVedanam 2 жыл бұрын
It will not work in avd. But it will run in physical device
Speech To Text in Android | Java  | Android Studio Tutorial - Quick + Easy
15:59
Google Cloud Speech-To-Text API With Python For Beginners
19:37
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 63 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 113 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
How to use Google Cloud Speech API in ANDROID STUDIO
6:19
Chinmay Anand
Рет қаралды 11 М.
Best Free Speech-To-Text APIs and Open Source Libraries
7:33
AssemblyAI
Рет қаралды 184 М.
Convert Speech to Text In Java (Basic Tutorial)
6:00
AssemblyAI
Рет қаралды 4,4 М.
All Languages Translator | Google ML | Android Studio | Java
34:22
Text to Speech in Java Tutorial
9:58
Zack C Coding
Рет қаралды 6 М.
How to Send Notification in Android
14:15
Codes Easy
Рет қаралды 37 М.
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 63 МЛН