voice

Android audioManager解决MediaPlayer AudioTrack 调节音量问

旧街凉风 提交于 2019-11-28 10:19:24
在听筒模式下 am.setSpeakerphoneOn(false); setVolumeControlStream(AudioManager.STREAM_VOICE_CALL); am.setMode(AudioManager.MODE_IN_CALL); 我用Mediaplayer AudioTrack调节音量总是失败 at.setStereoVolume(vol, vol); player.setVolume(vol,vol); 后来 决定用AudioManager来调节音量 AudioManager可以修改系统Android系统的音量 下面介绍几个AudioManager的几个音量调整方面的方法. 首先是得到AudioManager实例: AudioManager am=(AudioManager)getSystemService(Context.AUDIO_SERVICE); 调整音量方法有两种,一种是渐进式,即像手动按音量键一样,一步一步增加或减少,另一种是直接设置音量值. 1、渐进式 public void adjustStreamVolume (int streamType, int direction, int flags) am.adjustStreamVolume (AudioManager.STREAM_MUSIC, AudioManager.ADJUST

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

冷暖自知 提交于 2019-11-28 06:02:33
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 single field in the file, but I'm not sure I am doing it right. Suggestions, please? This is the way I read

Voice Recognition Software For Developers [closed]

风流意气都作罢 提交于 2019-11-28 03:33:35
Well the docs finally said it, I need to take it easy on my wrist for a few months. Being that I'm a .NET Developer this could end my livelihood for a little while, something I'm not anxious to do. That said, are there any good handsfree options for developers? Anyone had success using any of the speech recognition software out there? POSTSCRIPT: I've recovered my arm again to the point where two-handed programming isn't a problem. Dragon Naturally speaking worked well enough, but was slower, not like the keyboard where I was programming faster than I thought. It's out there, and it works...

Changing the voice with PYTTSX module in python

允我心安 提交于 2019-11-28 02:20:26
问题 When using the Pyttsx module within python, how do you change the voice ID that is used when playing out text? The documentation provided illustrates how to cycle through all the available voices, but does not make clear how to choose a specific one. 回答1: Uh, you should use engine.setProperty('voice', voice_id) (with voice_id being an ID of the voice in your system; you can grab the list of available voices from engine.getProperty('voices') ) as proposed in that example: engine = pyttsx.init(

Continues Speech Recognition beep sound after Google Search update

对着背影说爱祢 提交于 2019-11-28 00:47:38
问题 I have an app that keeps on listening to voice and converting it to commands using Google Voice API. I have been using setStreamMute(AudioManager.STREAM_SYSTEM, true) to mute the beep and it worked until a couple of days ago before "Google Search" new update. Is there any workaround fix for it? I know I can use setRingerMode(AudioManager.RINGER_MODE_SILENT) , but maybe there is another method? 回答1: In the update they switched the output of the 'beep' to the media stream. So you'll need to

English Voice of <<Demons>>

折月煮酒 提交于 2019-11-27 20:35:42
《Demons》是美国摇滚乐队Imagine Dragons(梦龙乐队)演唱的歌曲,由丹·雷诺斯、本·麦基、丹尼尔·韦恩·瑟蒙、亚历克斯·达·基德、乔希·莫瑟填词谱曲,收录在乐队首张录音室专辑《Night Visions》中,于2013年1月28日通过新视镜唱片发布。该首歌曲是电影《九层妖塔》的主题曲 。 When the days are cold 当暗无天日 And the cards all fold 当希望落空 And the saints we see 我们看见的圣人们啊 Are all made of gold 熠熠闪光,遥不可及 When your dreams all fail 当梦想沦落 And the ones we hail 当深陷逆境 Are the worst of all 这是最黑暗的日子吧 And the blood’s run stale 连血液都跟着腐朽 I want to hide the truth 我想隐藏这真相 I want to shelter you 帮你构筑虚拟的天堂 But with the beast inside 但我内心的野兽 There’s nowhere we can hide 蠢蠢欲动,呼之欲出 No matter what we breed 不管我们以何为食 We still are made of greed

Voice matching in Android [closed]

╄→гoц情女王★ 提交于 2019-11-27 18:56:57
问题 Is there any way we can do voice matching in Android? Take the below scenario. User "A" speak something in the app and record it in phone via the app. User "B" speak something in the app and record it in phone via the app. User "C" speak something in the app and record it in phone via the app. After all of these recordings, user "A" come and speak to the app. Since his voice is already recorded, app identifies this is user "A". Or else something like this.. User "A" speak the word "House" in

Streaming voice between Android Phones over WiFi

时光总嘲笑我的痴心妄想 提交于 2019-11-27 17:01:47
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 target; private TextView streamingLabel; private Button startButton,stopButton; public byte[] buffer;

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

杀马特。学长 韩版系。学妹 提交于 2019-11-27 11:27:17
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 should really consider the voted answer and ignore older ones, unless you're a software archeologist]

Voice Recognition Software For Developers [closed]

痞子三分冷 提交于 2019-11-27 05:10:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Well the docs finally said it, I need to take it easy on my wrist for a few months. Being that I'm a .NET Developer this could end my livelihood for a little while, something I'm not anxious to do. That said, are there any good handsfree options for developers? Anyone had success using any of the speech