dtmf

Getting DTMF signals when receiving a call on Android

社会主义新天地 提交于 2019-12-12 19:15:36
问题 Is there any way to receive and identify DTMF signals when you get a phonecall? I found these two functions (extractNetworkPortion & extractPostDialPortion), but I can't seem to get DTMF signal send by phonecalls. Also, what is the shortest delay you can have for sending DTMF signals when calling someone? 回答1: Unfortunately this is not possible in standard Android platform (as of the latest version, 3.1) 回答2: It is not in SDK but you can make it. Look at this project : http://code.google.com

Asterisk AMI: DTMF not received on SIP channel

此生再无相见时 提交于 2019-12-12 01:37:07
问题 I'm sending DTMF to Asterisk using python and pyst. The code is: def playDTMF(self, channel, digit): print "DTMF: Sending %s to %s" % (digit, channel) response = self.manager.send_action({ "Action" : "PlayDTMF", "Channel" : channel, "Digit" : digit }) print "DTMF: %s - %s" % (response['Response'], response['Message']) Output of the script is good: DTMF: Sending 1 to SIP/S3bc9c3c-00000081 DTMF: Success - DTMF successfully queued But Asterisk reacts to it like that: [Jul 2 17:48:53] DEBUG[6967]

DTMF detection using Goertzel Algorithm

。_饼干妹妹 提交于 2019-12-11 19:47:57
问题 How can I use Goertzel Algorithm if the wave format are the following: - 2 Channels - 32 bit - 48 kHz I already searched about Goertzel algorithm but all I can see all over the internet is detection of DTMF with wave format of 2 Channels, 16 bit, and 8 kHz. I don't know what part of code should I modify to meet my requirements. Private Function Goertzel(ByVal sample As Byte(), ByVal N As Long, _ ByVal freq As Double, ByVal sampr As Long) As Double Dim Skn As Double = 0 Dim Skn1 As Double = 0

Read dtmf using asterisk-java

倖福魔咒の 提交于 2019-12-11 13:02:26
问题 I am writing a java application to dial a number and get user's pin by DTMF. I am using asterisk-java connect to an asterisk VOIP server and dial the number but I don't know how to stream a file and read user's input as DTMF. Here's my code: OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("SIP/1001"); originateAction.setContext("default"); originateAction.setCallerId("Server"); originateAction.setPriority(1); // connect to Asterisk and log in

tfidf vectorizer process shows error

白昼怎懂夜的黑 提交于 2019-12-11 06:15:00
问题 I am working on non-Engish corpus analysis but facing several problems. One of those problems is tfidf_vectorizer. After importing concerned liberaries, I processed following code to get results contents = [open("D:\test.txt", encoding='utf8').read()] #define vectorizer parameters tfidf_vectorizer = TfidfVectorizer(max_df=0.8, max_features=200000, min_df=0.2, stop_words=stopwords, use_idf=True, tokenizer=tokenize_and_stem, ngram_range=(3,3)) %time tfidf_matrix = tfidf_vectorizer.fit_transform

identifying the DTMF tones in android

风流意气都作罢 提交于 2019-12-10 21:43:07
问题 I m planning to create a centrex system app in android. In which there is a voice mail will set in the receiver side. By the instructions in the voice mail, caller has to press the number in the dial pad, receiver side should identify the number and do the corresponding actions. Does anyone have any idea about how to detect the number pressed by the caller in receiver side?, What is the technology behind it?, Is it possible in android? Any help will be appreciable.. 回答1: Decoding DTMF is

Is it possible to detect DTMF tones using C#

烈酒焚心 提交于 2019-12-10 17:13:58
问题 I am trying to detect caller id information from telephone line. The caller-id information received is in DTMF tones (not FSK). How can I detect this DTMF tones ? Is Phone and Fax Modem capable of it ? The Phone and Fax Modem is capable of detecting FSK information, but not DTMF information. Notes: I am using C# language and .NET as developing platform. 回答1: Yes, modems are capable of picking up DTMF. This Code Project article should have some clues on how to do it with TAPI: http://www

Getting java.lang.ClassCastException while sending DTMF tones over an active call in android

橙三吉。 提交于 2019-12-10 11:46:15
问题 I am developing an app that sends DTMF tones over an active call in android. I searched a lot to implement this feature in my app and i found this : com.android.internal.telecom.IInCallAdapter interface that extends android.os.IInterface . There is a method playDtmfTone(String s,Char c) inside IInCallAdapter that we can use to send DTMF tones over an active call. I have an activity HelloPage.java that do so, but getting java.lang.ClassCastException error while initializing an object of

Windows Phone Phonecall with dtmf

房东的猫 提交于 2019-12-09 22:14:11
问题 I know using phonecalltask we can make a call programmetically by filling the phonenumber field . A sample code may be PhoneCallTask phn = new PhoneCallTask(); phn.PhoneNumber = "9807689,657"; phn.show (); But my question is,is it possible to send dtmf right at the point when we are initiating calls ? like in android and iphone we can send dtmf by dividing the number with ",". EX: 9876543,123 Is it also possible in windows phone? if possible is windows phone uses the same format to separate

Decoding DTMF from a WAV file

China☆狼群 提交于 2019-12-09 11:24:53
问题 Following on from my earlier question, my goal is to detect DTMF tones in a WAV file from C#. However, I'm really struggling to understand how this can be done. I understand the DTMF uses a combination of frequencies, and a Goertzel algorithm can be used ... somehow. I've grabbed a Goertzel code snippet and I've tried shoving a .WAV file into it (using NAudio to read the file, which is a 8KHz mono 16-bit PCM WAV): using (WaveFileReader reader = new WaveFileReader(@"dtmftest_w.wav")) { byte[]