speaker

Speaker output to mic input without cable on Android?

馋奶兔 提交于 2019-12-12 10:24:08
问题 I want to connect speaker output to mic input on Android phone without using any physical cable. Such routing should be transparent to all apps. With this function I can design a bunch of interesting apps, e.g., measuring round-trip delay of a voip call, automatically replying to an incoming call etc. Some similar questions can be found here: Background music for call Outputting audio stream into microphone It seems that there is no solution on Android right now, but the tool JACK running on

Assembly speaker and wait interrupt endless sleep

十年热恋 提交于 2019-12-12 01:54:57
问题 This question was migrated from Electrical Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 4 years ago . I am working on an assembly program (8086) that plays music on the PC speaker. Everything works fine but I've got one problem. Program falls in endless sleep (with speaker on) on 78th note, no matter what note it is. I am using 86h function of 15 interrupt . So why does that endless sleep occur, and how to fix that? Here's the code (with Mortal Kombat

Text voice reading

最后都变了- 提交于 2019-12-12 00:06:07
问题 I have app one of its activity will be like texts in arabic (textview) and below each text how its written in turkish language text (textview), beside it image button , when press this its speach the turkish text loudly in turkish language like that one of google translate application ( but i dont want EditText to write on it just textview with button , when press button it read the textview ), as below : صباح الخير Günaydın كيف حالك Nasılsınız and so on for around 100 , 200 words and also

How to manipulate audio channels volume with AudioTrack.setVolume after API 21

谁都会走 提交于 2019-12-10 15:29:50
问题 I'm trying to reproduce a mono wav file over just one of the stereo channels (speakers) that my smartphone has. I used to control this with AudioTrack.setStereoVolume (float leftGain, float rightGain) by setting one of these gains to zero. Reviewing an old code I got a deprecated method warning and after checking Android SDK documentation I've found it is now done by : public int setVolume (float gain) Added in API level 21. This API is preferred over setStereoVolume(float, float), as it more

C# how to record general audio from output device ( speaker ) with NAudio API

拟墨画扇 提交于 2019-12-10 11:46:55
问题 I'm trying to record the Speaker Output to detect volume and BPM from any playing music with C# and NAudio API. The problem is, i don't know how to do that :/ i have a sample code from http://opensebj.blogspot.de/2009/04/naudio-tutorial-5-recording-audio.html where they record simple input with less code... waveInStream = new WaveIn(44100,2); what does the "44100, 2" means ? does that targets the device to record from ??? how can i target speaker output ? does anyone can help me out ? or even

MATLAB code for a lot of Gaussian Mixture Model

允我心安 提交于 2019-12-09 22:19:47
问题 I have applied gaussmix function in voicebox MATLAB tools to calculate GMM. However, the code gives me error when I run it for 512 GMM components. No_of_Clusters = 512; No_of_Iterations = 10; [m_ubm1,v_ubm1,w_ubm1]=gaussmix(feature,[],No_of_Iterations,No_of_Clusters); Error using * Inner matrix dimensions must agree. Error in gaussmix (line 256) pk=px*wt; % pk(k,1) effective number of data points for each mixture (could be zero due to underflow) I need 1024 or 2048 Mixtures for Universal

AVAudioPlayer via Speakers

北城以北 提交于 2019-12-09 04:59:20
问题 I got the following code: - (id)init { if (self = [super init]) { UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory), &sessionCategory); UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute,sizeof (audioRouteOverride),&audioRouteOverride); [[AVAudioSession sharedInstance] setDelegate:self]; [[AVAudioSession

Find if speaker is in use?

a 夏天 提交于 2019-12-08 03:09:45
问题 In Android , is it possible at any given time to find if speaker is in use and if so which app is using it. Sorry i did not know how to phrase the question. What i want to do is find out if any app (Music Player) is playing a music file either using the loud speaker or the ear phones. Also if possible find which app is using it. Sorry Don't know how else to phrase this. 回答1: I needed this to find if music is currently playing on the device. I found the function isMusicActive() under

Sending audio to a bluetooth enabled speaker, IOS

﹥>﹥吖頭↗ 提交于 2019-12-07 20:48:30
问题 I want to add a function to my App, where the user can choose to play the audio on a bluetooth enabled speaker. I have a Parrot Easydrive in my car and this works for phonecalls and for example the Dictafoon App among others. I understand that I should use the Core Audio framework. WHen a bluetooth device is connected it is said that it is easy to stream the audio to that connection. I am now looking for Core Audio sample code (or a book) where connecting and streaming to a bluetooth device

AVAudioSession : microphone headphone as input and iphone speaker as output

两盒软妹~` 提交于 2019-12-07 09:59:15
问题 With iOS10 there are more possibilities to manage AUdioSession, but i couldn't manage to keep the headphone microphone as input while audio is going out through the iphone speaker. The 'overrideOutputAudioPort' method below also override the input audio port as the iphone microphone let session = AVAudioSession.sharedInstance() do { try session.setCategory(AVAudioSessionCategoryPlayAndRecord) try! session.overrideOutputAudioPort(.speaker) } catch { } Is there any solution to keep the