voice

android mediaRecorder.setAudioSource failed

萝らか妹 提交于 2019-11-27 04:27:17
I have android G1 firmware 1.6, I am trying to record voice from the app with the follow code. MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setOutputFile(PATH_NAME); recorder.prepare(); recorder.start(); my manifest.xml has: <uses-permission android:name="android.permission.RECORD_AUDIO" /> I got: 09-23 14:41:05.531: ERROR/AndroidRuntime(1718): Uncaught handler: thread main exiting due to uncaught

Reading and processing WAV file data in C/C++

旧时模样 提交于 2019-11-27 01:10:36
问题 I'm currently doing a very very important school project. I need to extract the information of a WAVE file in C/C++ and use the information to obtain the LPC of a voice signal. But, in order to do that, I need to do some pre-processing to the signal, like doing Zero crossing and energy analysis, among other things. Which means that I need the sign and a real value. The problem is that I don't know how to obtain useful information and the correct format for that. I have already read every

Streaming voice between Android Phones over WiFi

房东的猫 提交于 2019-11-26 18:49:39
问题 I'm trying to stream audio from the mic from 1 Android to another over WiFi. After looking at some examples I made 2 applications with a single activity in each, 1 to capture and send audio and the other to receive. I've used the Audiorecord and Audiotrack classes to capture and play. However, i just hear some crackling sound (which has now stopped after i made some changes though i reverted back) The activity to send voice. public class VoiceSenderActivity extends Activity { private EditText

English Voice of <<The show >>

白昼怎懂夜的黑 提交于 2019-11-26 15:49:55
作曲 : Lenka/Jason Reeves作词 : Lenka/Jason Reeves I’m just a little bit caught in the middle 我有点儿左右为难 Life is a maze, and love is a riddle 生活是座迷宫 爱是一个谜题 I don’t know where to go 我不知道该去哪儿 Can’t do it alone 我一个人做不到 I’ve tried, but i don’t know why 我尝试了 我不知道为什么… Slow it down, make it stop 放慢了速度 停了下来 Or else my heart is going to pop 否则我的心都要跳出来了 Cause its to much, yea its alot 因为这有点儿过份了 是的太过份了 To be something I’m not 要我成为一个不一样的(不真实的)我 I’m a fool, out of love 我是个失恋的大笨蛋 Cause I just can’t get enough 因为我无法满足 I’m just a little bit caught in the middle 我有点儿左右为难 Life is a maze, and love is a riddle 生活是座迷宫

How to programmatically use iOS voice synthesizers? (text to speech)

删除回忆录丶 提交于 2019-11-26 15:35:26
问题 iOS devices have embedded voice synthesizers for Accessibility's VoiceOver feature. Is there a way you can use these synthesizers programmatically to generate text-based sounds? My problem is: I'm working on a simple app for kids to learn colors and rather than recording the names of the colors in each language i want to support and storing them as audio files, i'd rather generate the sounds at runtime with some text-to-speech feature. Thanks [EDIT: this question was asked pre-iOS7 so you

Voice recognition on android with recorded sound clip?

拜拜、爱过 提交于 2019-11-26 12:13:33
I've used the voice recognition feature on Android and I love it. It's one of my customers' most praised features. However, the format is somewhat restrictive. You have to call the recognizer intent, have it send the recording for transcription to google, and wait for the text back. Some of my ideas would require recording the audio within my app and then sending the clip to google for transcription. Is there any way I can send an audio clip to be processed with speech to text? I got a solution that is working well to have speech recognizing and audio recording. Here is the link to a simple

Getting the list of voices in speechSynthesis (Web Speech API)

本小妞迷上赌 提交于 2019-11-26 04:26:06
问题 Following HTML shows empty array in console on first click: <!DOCTYPE html> <html> <head> <script> function test(){ console.log(window.speechSynthesis.getVoices()) } </script> </head> <body> <a href=\"#\" onclick=\"test()\">Test</a> </body> </html> In second click you will get the expected list. If you add onload event to call this function ( <body onload=\"test()\"> ), then you can get correct result on first click. Note that the first call on onload still doesn\'t work properly. It returns