Question: CIS 5 3 5 TOPIC: SPEECH RECOGNITION prepara ons: 1 . write an Android API for speech recogni on 2 . collect speech / acous
CIS TOPIC: SPEECH RECOGNITION
preparaons:
write an Android API for speech recognion
collect speechacousc signals
transformaon from speech to text using speech recognion library
display the translated text in the end Android device
output:
add all permissions in Android Manifest XML
design the UI of your app in main acvity xml
edit MainAcvityjava: begin your main class by inializing all variables and
fucons such as textviews, speechRecognizer object, media player and recorder
objects; connue to onCreate funcon where RecView layout is built, the
speechRecognizerIntent is created, and onclick listeners are created to call the
correct funcons; In speechRecognizerIntent, putExtra is created to store certain
data as key value pairs and add extra data into the intent object, startRecording is
created to begins voice recording and starts the acvity remember to request
proper permissions first OnAcvityResult is created to retrieve the data, and
send transcribed results to textview.
edit MediaPlayer object: To playback audio, a new mediaplayer object is
created and the file path of the audio recording is given; To pause playing, the
mediaplayer object is simply released.
challenges:
Having two mic inputs at the same me
Transcribing directly from audio file: Google Cloud API requires format
conversion, costs money; On audio replay, use speechrecognion to listen to the
replay.
this is the project overview and I want to get the transcription directly from the audio file so what changes should I make in the mainactivity.java code to get the transcription of the audio file in the text form and I have the mainactivity.java code too but I am unable to paste the entire code. can you provide all the necessary codes for the completion of this project and get the transcription output from a audio file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
