CN107508995A - One kind incoming call audio frequency playing method and device, computer-readable recording medium - Google Patents
One kind incoming call audio frequency playing method and device, computer-readable recording medium Download PDFInfo
- Publication number
- CN107508995A CN107508995A CN201710891034.8A CN201710891034A CN107508995A CN 107508995 A CN107508995 A CN 107508995A CN 201710891034 A CN201710891034 A CN 201710891034A CN 107508995 A CN107508995 A CN 107508995A
- Authority
- CN
- China
- Prior art keywords
- audio
- playing
- request signaling
- incoming call
- call request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000011664 signaling Effects 0.000 claims abstract description 99
- 238000004590 computer program Methods 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 12
- 230000004044 response Effects 0.000 description 11
- 238000007639 printing Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种来电音频播放方法,包括:接收主叫终端发送的呼叫请求信令;当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;将确定播放的第一音频或第二音频作为来电音频进行播放。本发明还同时公开了一种来电音频播放装置以及计算机可读存储介质。
The invention discloses an audio playback method for an incoming call, comprising: receiving a call request signaling sent by a calling terminal; In the second playing mode selected, it is determined to play the first audio corresponding to the audio data or the preset second audio according to preset rules; the first audio or the second audio determined to be played is played as the incoming call audio. The invention also discloses an incoming call audio playing device and a computer-readable storage medium.
Description
技术领域technical field
本发明涉及终端技术领域,尤其涉及一种来电音频播放方法及装置、计算机可读存储介质。The present invention relates to the technical field of terminals, and in particular to a method and device for playing incoming call audio, and a computer-readable storage medium.
背景技术Background technique
随着终端多媒体技术的发展和人们生活水平的不断提高,只有图片或文字的来电显示,已不能完全满足人们日益增长的高品质生活追求和精神文化需要。因此,能够为终端设置个性化来电显示的相关应用已越来越受到人们的追捧。With the development of terminal multimedia technology and the continuous improvement of people's living standards, only pictures or text caller IDs can no longer fully meet people's growing pursuit of high-quality life and spiritual and cultural needs. Therefore, related applications capable of setting personalized caller IDs for terminals have become more and more sought after by people.
该相关应用如彩印APP(Application)打破以往采用图片或文字作为来电显示的方式,可以为终端将来电显示设置成精彩的视频,从而提高人们对终端来电显示的体验。This related application, such as the color printing APP (Application), breaks the previous method of using pictures or text as the caller ID, and can set the caller ID of the terminal as a wonderful video, thereby improving people's experience of the terminal caller ID.
相应地,被叫终端接获主叫终端的呼叫时,若主叫终端的呼叫信令中包含有视频的屏幕显示(简称来电屏显视频),被叫终端的彩印APP就会自动播放该来电屏显视频。然而,由于一般的来电屏显视频都包含有音频,因此,在播放该来电屏显视频时,该来电屏显视频中音频与来电铃声音频会发生一定程度的冲突,造成两种音频的混乱。Correspondingly, when the called terminal receives a call from the calling terminal, if the call signaling of the calling terminal includes a video screen display (referred to as the video on the screen display of the caller), the color printing APP of the called terminal will automatically play the incoming call. On-screen video. However, since the general incoming caller screen display video contains audio, when the incoming caller screen display video is played, the audio in the incoming caller screen display video and the ringtone audio of the incoming call will conflict to a certain extent, resulting in confusion of the two audios.
发明内容Contents of the invention
为解决现有技术存在的问题,本发明实施例期望提供一种来电音频播放方法及装置、以及计算机可读存储介质,能够解决被叫终端的来电屏显视频中音频与被叫终端的来电铃声音频同时播放,从而产生两种音频混乱的问题。In order to solve the problems existing in the prior art, the embodiment of the present invention expects to provide a method and device for playing incoming call audio, as well as a computer-readable storage medium, which can solve the problem of audio in the incoming call screen display video of the called terminal and the incoming call ringtone of the called terminal. The audio is playing at the same time, creating a problem with the two audios getting mixed up.
本发明实施例的技术方案是这样实现的:The technical scheme of the embodiment of the present invention is realized like this:
本发明实施例提供了一种来电音频播放方法,所述方法包括:An embodiment of the present invention provides an incoming call audio playback method, the method comprising:
接收主叫终端发送的呼叫请求信令;receiving the call request signaling sent by the calling terminal;
当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;When it is determined that the call request signaling contains audio data, based on the preset first playback mode and the second playback mode selected based on the audio switching interface, determine to play the first audio corresponding to the audio data according to preset rules or Pre-set second audio;
将确定播放的第一音频或第二音频作为来电音频进行播放。The first audio or the second audio determined to be played is played as the incoming call audio.
上述方案中,所述确定呼叫请求信令中包含有音频数据,包括:In the above solution, the determination that the call request signaling contains audio data includes:
检测所述呼叫请求信令是否包含有流媒体数据;Detecting whether the call request signaling contains streaming media data;
当检测到所述呼叫请求信令包含有流媒体数据时,判断所述流媒体数据中是否包含有音频数据;When detecting that the call request signaling contains streaming media data, determine whether audio data is included in the streaming media data;
当所述流媒体数据中包含有音频数据时,确定呼叫请求信令中包含有音频数据。When the streaming media data includes audio data, it is determined that the call request signaling includes audio data.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
当确定呼叫请求信令中不包含有音频数据时,将所述第二音频作为来电音频进行播放。When it is determined that the call request signaling does not contain audio data, the second audio is played as incoming call audio.
上述方案中,在将确定播放的第一音频作为来电音频进行播放之后,所述方法还包括:In the above solution, after playing the first audio determined to be played as the incoming call audio, the method further includes:
判断是否接收到响应所述呼叫请求信令的操控指令;judging whether a manipulation instruction in response to the call request signaling is received;
若是,结束所述第一音频的播放;If so, end the playback of the first audio;
若否,当确定所述第一音频播放完毕后,将来电音频切换至所述第二音频进行播放。If not, after it is determined that the playing of the first audio is finished, the audio of the incoming call is switched to the second audio for playing.
上述方案中,所述基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频,包括:In the above solution, based on the preset first playback mode and the second playback mode selected based on the audio switching interface, it is determined to play the first audio corresponding to the audio data or the preset second audio according to preset rules, include:
当接收到基于音频切换界面所选择的第二播放方式时,根据所述第二播放方式,确定播放第一音频或第二音频;或者,When receiving the second playback mode selected based on the audio switching interface, determine to play the first audio or the second audio according to the second playback mode; or,
当未接收到基于音频切换界面所选择的第二播放方式时,根据所述第一播放方式,确定播放第一音频或第二音频。When the second playback mode selected based on the audio switching interface is not received, it is determined to play the first audio or the second audio according to the first playback mode.
本发明实施例还提供了一种来电音频播放装置,所述装置包括:处理器、以及用于存储能够在处理器上运行的计算机程序的存储器;其中,An embodiment of the present invention also provides an incoming call audio playback device, the device includes: a processor, and a memory for storing a computer program that can run on the processor; wherein,
所述处理器,用于运行所述计算机程序时,执行:The processor, when running the computer program, executes:
接收主叫终端发送的呼叫请求信令;receiving the call request signaling sent by the calling terminal;
当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;When it is determined that the call request signaling contains audio data, based on the preset first playback mode and the second playback mode selected based on the audio switching interface, determine to play the first audio corresponding to the audio data according to preset rules or Pre-set second audio;
将确定播放的第一音频或第二音频作为来电音频进行播放。The first audio or the second audio determined to be played is played as the incoming call audio.
上述方案中,所述处理器,用于运行所述计算机程序时,执行:In the above solution, when the processor is configured to run the computer program, execute:
检测所述呼叫请求信令是否包含有流媒体数据;Detecting whether the call request signaling contains streaming media data;
当检测到所述呼叫请求信令包含有流媒体数据时,判断所述流媒体数据中是否包含有音频数据;When detecting that the call request signaling contains streaming media data, determine whether audio data is included in the streaming media data;
当所述流媒体数据中包含有音频数据时,确定呼叫请求信令中包含有音频数据。When the streaming media data includes audio data, it is determined that the call request signaling includes audio data.
上述方案中,所述处理器,用于运行所述计算机程序时,执行:In the above solution, when the processor is configured to run the computer program, execute:
当确定呼叫请求信令中不包含有音频数据时,将所述第二音频作为来电音频进行播放。When it is determined that the call request signaling does not contain audio data, the second audio is played as incoming call audio.
上述方案中,所述处理器,用于运行所述计算机程序时,执行:In the above solution, when the processor is configured to run the computer program, execute:
在将确定播放的第一音频作为来电音频进行播放之后,判断是否接收到响应所述呼叫请求信令的操控指令;After playing the first audio that is determined to be played as the audio of the incoming call, it is judged whether a manipulation instruction in response to the call request signaling is received;
若是,结束所述第一音频的播放;If so, end the playback of the first audio;
若否,当确定所述第一音频播放完毕后,将来电音频切换至所述第二音频进行播放。If not, after it is determined that the playing of the first audio is finished, the audio of the incoming call is switched to the second audio for playing.
上述方案中,所述处理器,用于运行所述计算机程序时,执行:In the above solution, when the processor is configured to run the computer program, execute:
当接收到基于音频切换界面所选择的第二播放方式时,根据所述第二播放方式,确定播放第一音频或第二音频;或者,When receiving the second playback mode selected based on the audio switching interface, determine to play the first audio or the second audio according to the second playback mode; or,
当未接收到基于音频切换界面所选择的第二播放方式时,根据所述第一播放方式,确定播放第一音频或第二音频。When the second playback mode selected based on the audio switching interface is not received, it is determined to play the first audio or the second audio according to the first playback mode.
本发明实施例还提供了一种来电音频播放装置,所述装置包括:接收模块、确定模块和播放模块;其中,The embodiment of the present invention also provides an incoming call audio playback device, which includes: a receiving module, a determining module, and a playing module; wherein,
所述接收模块,用于接收主叫终端发送的呼叫请求信令;The receiving module is configured to receive the call request signaling sent by the calling terminal;
所述确定模块,用于当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;The determination module is configured to determine to play the audio according to preset rules based on the preset first playback mode and the second playback mode selected based on the audio switching interface when it is determined that the call request signaling contains audio data The first audio corresponding to the data or the preset second audio;
所述播放模块,用于将确定播放的第一音频或第二音频作为来电音频进行播放。The playing module is used to play the determined first audio or the second audio as the incoming call audio.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令的计算机程序被处理器执行时实现上述来电音频播放方法。The embodiment of the present invention also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer program of the computer-executable instructions is executed by a processor, the above-mentioned method for playing incoming call audio is realized .
本发明实施例提供的来电音频播放方法及装置,首先,被叫终端接收主叫终端发送的呼叫请求信令;然后,当确定呼叫请求信令中包含有音频数据时,根据预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;最后,将确定播放的第一音频或第二音频作为来电音频进行播放。In the incoming call audio playing method and device provided by the embodiments of the present invention, first, the called terminal receives the call request signaling sent by the calling terminal; then, when it is determined that the call request signaling contains audio data, according to the preset first The playback mode and the second playback mode selected based on the audio switching interface determine to play the first audio corresponding to the audio data or the preset second audio according to the preset rules; finally, the first audio or the second audio to be played will be determined Audio is played as incoming call audio.
可见,本发明实施例通过预先设置第一播放方式和基于音频切换界面选择第二播放方式,按照预设规则来确定来电音频是播放主叫终端所发送的呼叫请求信令中音频数据对应的第一音频还是播放预设的第二音频。从而当接收到主叫终端发送的包含有来电屏显视频的呼叫请求信令时,被叫终端通过对来电音频进行选择,并对所选择的来电音频进行播放,能够解决该来电屏显视频中音频与被叫终端预设的来电铃声音频同时播放的问题,进而解决这两种音频播放混乱的问题,最终达到提高来电屏显视频的播放效果,提升用户体验的目的。It can be seen that in the embodiment of the present invention, by setting the first playback mode in advance and selecting the second playback mode based on the audio switching interface, it is determined according to the preset rules that the audio of the incoming call is to play the first audio data corresponding to the audio data in the call request signaling sent by the calling terminal. The first audio is still playing the preset second audio. Therefore, when receiving the call request signaling containing the video on the screen display of the incoming call sent by the calling terminal, the called terminal can select the audio of the incoming call and play the selected audio of the incoming call to solve the problem of the video on the screen display of the incoming call. The problem of playing audio and the preset ringtone audio of the called terminal at the same time solves the problem of confusing playback of these two kinds of audio, and finally achieves the purpose of improving the video playback effect of the incoming call screen and improving user experience.
附图说明Description of drawings
图1为本发明来电音频播放方法实施例一的实现流程示意图;FIG. 1 is a schematic diagram of an implementation process of Embodiment 1 of an incoming call audio playback method according to the present invention;
图2为本发明实施例提供的实现来电音频选择的一个可选的音频切换界面示意图;Fig. 2 is a schematic diagram of an optional audio switching interface for realizing incoming call audio selection provided by an embodiment of the present invention;
图3为本发明实施例提供的实现来电音频选择的另一个可选的音频切换界面示意图;FIG. 3 is a schematic diagram of another optional audio switching interface for realizing incoming call audio selection provided by an embodiment of the present invention;
图4为本发明来电音频播放方法实施例二的实现流程示意图;FIG. 4 is a schematic diagram of the implementation process of Embodiment 2 of the audio playback method for incoming calls of the present invention;
图5为本发明实施例来电音频播放装置组成结构示意图;5 is a schematic diagram of the composition and structure of an incoming call audio playback device according to an embodiment of the present invention;
图6为本发明实施例来电音频播放装置硬件组成结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an incoming call audio playback device according to an embodiment of the present invention.
具体实施方式detailed description
通常,当被叫终端接收到主叫终端发送的包含有来自屏显视频的呼叫请求时,所述来电屏显视频中音频可能会受限于被叫终端预先设置的来电铃声音频,使得所述来电屏显视频中音频不能正常播放,从而影响了来电屏显视频的播放效果。Usually, when the called terminal receives a call request from the calling terminal that includes the on-screen display video, the audio in the incoming call on-screen display video may be limited to the ringtone audio set by the called terminal in advance, so that the The audio in the incoming call screen display video cannot be played normally, which affects the playback effect of the incoming call screen display video.
随着终端多媒体技术的发展,市场上出现了一款能够为终端设置个性化来电显示的相关应用,以彩印APP为例,该彩印APP能够为主叫终端设置推送的来电屏显视频的内容,以及能够为被叫终端播放主叫终端所推送的来电屏显视频。With the development of terminal multimedia technology, a related application that can set personalized caller ID for the terminal has appeared on the market. Taking the color printing APP as an example, the color printing APP can set the content of the video displayed on the incoming call screen for the calling terminal. And it can play the incoming call screen display video pushed by the calling terminal for the called terminal.
然而,若被叫终端安装了彩印APP,当被叫终端接收到主叫终端发送的包含有来电屏显视频的呼叫请求信令时,所述彩印APP仍然会强制播放该来电屏显视频中音频,使得该来电屏显视频中音频与来电铃声音频会存在同时播放的问题,从而造成两种音频的播放混乱。However, if the called terminal is installed with a color printing APP, when the called terminal receives the call request signaling sent by the calling terminal that contains the video on the incoming call screen, the color printing APP will still forcefully play the audio in the video on the incoming call screen. , so that the audio in the incoming call screen display video and the ringtone audio of the incoming call will have the problem of playing at the same time, thus causing the playback of the two audios to be confused.
基于此,本发明实施例提供的方案,通过预先设置第一播放方式和基于音频切换界面选择第二播放方式,按照预设规则来确定来电音频是播放主叫终端所发送的呼叫请求信令中音频数据对应的第一音频还是播放预设的第二音频。从而当接收到主叫终端发送的包含有来电屏显视频的呼叫请求信令时,被叫终端通过对来电音频进行选择,并对所选择的来电音频进行播放,能够解决该来电屏显视频中音频与被叫终端预设的来电铃声音频同时播放的问题,进而解决这两种音频播放混乱的问题。Based on this, in the solution provided by the embodiment of the present invention, by presetting the first playback mode and selecting the second playback mode based on the audio switching interface, it is determined according to the preset rules that the audio of the incoming call is played in the call request signaling sent by the calling terminal. The first audio corresponding to the audio data is still playing the preset second audio. Therefore, when receiving the call request signaling containing the video on the screen display of the incoming call sent by the calling terminal, the called terminal can select the audio of the incoming call and play the selected audio of the incoming call to solve the problem of the video on the screen display of the incoming call. The problem that the audio is played simultaneously with the preset ringtone audio of the called terminal, thereby solving the problem that the two kinds of audio are played confusingly.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
图1为本发明来电音频播放方法实施例一的实现流程示意图,参照图1所示,本实施例的来电音频播放方法包括以下步骤:Fig. 1 is a schematic diagram of the implementation process of the first embodiment of the audio playback method for incoming calls of the present invention. Referring to Fig. 1, the audio playback method for incoming calls in this embodiment includes the following steps:
步骤101,接收主叫终端发送的呼叫请求信令;Step 101, receiving the call request signaling sent by the calling terminal;
本实施例的来电音频播放方法,应用于终端,用于在接收到的主叫终端发送的流媒体数据中音频数据对应的第一音频和预先设置的第二音频中,对来电音频进行选择,并对所选择的来电音频进行播放。该终端上安装有能够播放主叫终端发送的流媒体数据的相关应用,该相关应用可以为彩印APP。该终端在接收到主叫终端发送的流媒体数据后,该彩印APP能够对所述流媒体数据进行播放。The method for playing incoming call audio in this embodiment is applied to a terminal, and is used to select the incoming call audio from the first audio corresponding to the audio data in the received streaming media data sent by the calling terminal and the preset second audio, And play the selected incoming call audio. A relevant application capable of playing streaming media data sent by the calling terminal is installed on the terminal, and the relevant application may be a color printing APP. After the terminal receives the streaming media data sent by the calling terminal, the color printing APP can play the streaming media data.
为实现本发明实施例的方案,需确保被叫终端能够正常接收主叫终端发送的呼叫请求信令,也就是说,被叫终端的客户识别模块正常运行,以及与呼叫连接相关的组件也能够正常运行。In order to realize the solution of the embodiment of the present invention, it is necessary to ensure that the called terminal can normally receive the call request signaling sent by the calling terminal, that is, the customer identification module of the called terminal operates normally, and the components related to the call connection can also normal operation.
这里,所述被叫终端可以包括信号处理模块,所述信号处理模块接收被叫终端的移动交换中心(MSC,Mobile Switching Center)发送的呼叫连接信令、以及接收主叫终端发送的呼叫请求信令;所述呼叫连接信令用于为主叫终端建立呼叫请求连接,所述呼叫请求信令中包含有主叫终端所推送的主叫信息。Here, the called terminal may include a signal processing module, and the signal processing module receives the call connection signaling sent by the Mobile Switching Center (MSC, Mobile Switching Center) of the called terminal, and receives the call request signal sent by the calling terminal. The call connection signaling is used to establish a call request connection for the calling terminal, and the call request signaling includes the calling information pushed by the calling terminal.
步骤102,当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;Step 102, when it is determined that the call request signaling contains audio data, based on the preset first playback mode and the second playback mode selected based on the audio switching interface, determine to play the first playback mode corresponding to the audio data according to preset rules. One audio or a pre-set second audio;
这里,所述预先设置的第二音频为用户预先设置的来电铃声音频,也就是说,所述预先设置的第二音频为被叫终端来电时的呼叫铃声。Here, the preset second audio is the ringtone audio preset by the user, that is to say, the preset second audio is the ringtone when the called terminal receives a call.
在一实施例中,所述被叫终端中还可以包括音频解码器、来电铃声播放模块以及解复用器,所述音频解码器和来电铃声播放模块用于实现对所选择的来电音频进行播放,所述解复用器用于实现音频数据的检测。In an embodiment, the called terminal may also include an audio decoder, an incoming call ringtone playing module, and a demultiplexer, and the audio decoder and the incoming call ringtone playing module are used to play the selected incoming call audio , the demultiplexer is used to realize the detection of audio data.
在基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频之前,还需要判断呼叫请求信令中是否包含有音频数据,当确定所述呼叫请求信令中包含有音频数据时,才会执行选择来电音频的步骤。否则,直接将预先设置的第二音频作为来电音频,然后,被叫终端中音频解码器对所述第二音频进行解码,解码后由启动的来电铃声播放模块播放所述第二音频。Before determining to play the first audio corresponding to the audio data or the preset second audio according to the preset rules based on the preset first playback mode and the second playback mode selected based on the audio switching interface, it is also necessary to determine the call Whether audio data is included in the request signaling, the step of selecting incoming call audio will be executed only when it is determined that audio data is included in the call request signaling. Otherwise, the preset second audio is directly used as the incoming call audio, and then the audio decoder in the called terminal decodes the second audio, and after decoding, the activated ringtone playing module plays the second audio.
在一实施例中,所述被叫终端可以检测所述呼叫请求信令是否包含有流媒体数据;当检测到所述呼叫请求信令包含有流媒体数据时,判断所述流媒体数据中是否包含有音频数据;当所述流媒体数据中包含有音频数据时,确定呼叫请求信令中包含有音频数据。In one embodiment, the called terminal may detect whether the call request signaling contains streaming media data; when detecting that the call request signaling contains streaming media data, determine whether the streaming media data contains contains audio data; when the streaming media data contains audio data, it is determined that the call request signaling contains audio data.
具体地,首先,被叫终端可以利用已有的或新的信号处理技术,来检测所述呼叫请求信令中是否包括有流媒体数据,若检测到呼叫请求信令中包含有流媒体数据,被动终端中信号处理模块接收流媒体数据的传输流TS(Transport Stream),并利用解复用器DEMUX(Demultiplexer)将传输流TS转换为数据基本流PES(Packetized Elementary Streams)。然后,被叫终端可以利用已有的或新的信号处理技术,判断所述数据基本流PES是否包含有音频数据基本流PES,当所述数据基本流PES中包含有音频数据基本流PES时,确定所述呼叫请求信令中包含有音频数据。Specifically, firstly, the called terminal may use an existing or new signal processing technology to detect whether streaming media data is included in the call request signaling, and if it is detected that streaming media data is included in the call request signaling, The signal processing module in the passive terminal receives the transport stream TS (Transport Stream) of streaming media data, and uses the demultiplexer DEMUX (Demultiplexer) to convert the transport stream TS into data elementary streams PES (Packetized Elementary Streams). Then, the called terminal can use the existing or new signal processing technology to judge whether the elementary data stream PES contains the elementary stream PES of audio data, when the elementary stream PES of audio data contains the elementary stream PES of audio data, It is determined that the call request signaling includes audio data.
当确定所述呼叫请求信令中包含有音频数据时,所述被叫终端可以有三种方式对来电音频进行选择。When it is determined that the call request signaling contains audio data, the called terminal may select the incoming call audio in three ways.
第一种方式为:基于预先设置的第一播放方式,确定播放所述音频数据对应的第一音频或预先设置的第二音频。用户可以对被叫终端的设置界面进行操作,来预先设置第一播放方式。举例来说,用户可以按照预设操作方式,对被叫终端的设置界面中某一按钮、或某一图标、或某一浮标、或某一文本框进行操作,来设置被叫终端来电时首先播放的来电音频。所述预设操作方式可以为点击操作方式,也可以为触摸操作方式,还可以为声控操作方式。The first manner is: based on a preset first playing manner, determine to play the first audio corresponding to the audio data or the preset second audio. The user can operate the setting interface of the called terminal to preset the first playing mode. For example, the user can operate a certain button, or a certain icon, or a certain buoy, or a certain text box in the setting interface of the called terminal according to the preset operation mode, to set the first time when the called terminal receives a call The incoming call audio is played. The preset operation mode may be a click operation mode, a touch operation mode, or a voice-activated operation mode.
具体地,若用户已在被叫终端的设置界面中设置播放的来电音频为第一音频,被叫终端在接收到主叫终端发送的呼叫请求信令、且呼叫请求信令中包含有音频数据基本流PES后,所述被叫终端利用音频解码器对音频数据基本流PES进行解码,解码后可以由启动的来电铃声播放模块进行播放。若用户已在被叫终端中设置界面设置播放的来电音频为第二音频,则不管呼叫请求信令中是否包含有音频数据基本流PES,所述被叫终端都会直接由音频解码器对所述第二音频进行解码,解码后由启动的来电铃声播放模块播放所述第二音频。Specifically, if the user has set the incoming call audio to be played in the setting interface of the called terminal as the first audio, the called terminal receives the call request signaling sent by the calling terminal, and the call request signaling contains audio data After the elementary stream PES, the called terminal uses an audio decoder to decode the elementary stream PES of audio data, and after decoding, it can be played by the activated ringtone playing module. If the user has set the incoming call audio set to be played in the called terminal as the second audio, then no matter whether the audio data elementary stream PES is included in the call request signaling, the called terminal will be directly processed by the audio decoder. The second audio is decoded, and the activated ringtone playing module plays the second audio after decoding.
第二种方式为:基于音频切换界面所选择的第二播放方式,确定播放所述音频数据对应的第一音频或预先设置的第二音频。具体地,所述被叫终端还可以包括输入/输出模块和显示模块,当被叫终端接收到主叫终端发送的呼叫请求信令、且呼叫请求信令中包含有音频数据基本流PES时,所述被叫终端可以由输入/输出模块发出界面显示指令给显示模块,所述显示模块会显示音频切换界面供用户选择第二播放方式。The second manner is: based on the second playing manner selected on the audio switching interface, determine to play the first audio corresponding to the audio data or the preset second audio. Specifically, the called terminal may also include an input/output module and a display module. When the called terminal receives the call request signaling sent by the calling terminal, and the call request signaling contains the audio data elementary stream PES, The called terminal can send an interface display instruction to the display module through the input/output module, and the display module will display an audio switching interface for the user to select the second playback mode.
举例来说,图2为本发明实施例提供的实现来电音频选择的一个可选的音频切换界面示意图,参照图2所示,所述音频切换界面可以包括两个选项,第一选项为“是”选项,第二选项为“否”选项,所述第一选项可以表征确定播放第一音频,也可以表征确定播放第二音频;相应地,所述第二选项可以表征确定播放第二音频,也可以表征确定播放第一音频。本实施例中,将以“是”选项表征确定播放第一音频、“否”选项表征播放第二音频为例进行详细说明书。具体地,当用户触摸所述“是”选项时,表明用户对主叫终端发送的呼叫请求信令中流媒体数据感兴趣,期望正常播放所述流媒体数据;此时,被叫终端会接收到针对“是”选项的操作指令,并基于音频切换界面所选择的确定播放第一音频的播放方式,利用音频解码器对音频数据基本流PES进行解码,解码后可以由启动的来电铃声播放模块进行播放。当用户触摸所述“否”选项时,表明用户对主叫终端发送的呼叫请求信令中流媒体数据不感兴趣,此时,被叫终端利用音频解码器对所述第二音频进行解码,解码后由启动的来电铃声播放模块播放所述第二音频。For example, FIG. 2 is a schematic diagram of an optional audio switching interface for implementing incoming call audio selection provided by an embodiment of the present invention. Referring to FIG. 2, the audio switching interface may include two options, the first option being "Yes " option, the second option is the "No" option, the first option may indicate that the first audio is determined to be played, and it may also indicate that the second audio is determined to be played; correspondingly, the second option may indicate that the second audio is determined to be played, It may also be characterized as determining to play the first audio. In this embodiment, a detailed description will be made by taking the "Yes" option to indicate that the first audio is to be played, and the "No" option to indicate that the second audio is to be played as an example. Specifically, when the user touches the "Yes" option, it indicates that the user is interested in the streaming media data in the call request signaling sent by the calling terminal, and expects to play the streaming media data normally; at this time, the called terminal will receive For the operation instruction of the "Yes" option, and based on the selection of the audio switching interface to determine the playback mode of the first audio, use the audio decoder to decode the audio data elementary stream PES, and the decoding can be performed by the activated ringtone playback module play. When the user touches the "No" option, it indicates that the user is not interested in the streaming media data in the call request signaling sent by the calling terminal. At this time, the called terminal uses an audio decoder to decode the second audio, and after decoding The second audio is played by the activated ringtone playing module.
图3为本发明实施例提供的实现来电音频选择的另一个可选的音频切换界面示意图,参照图3所示,所述音频切换界面也可以包括两个选项,第一选项为“第一音频”选项,第二选项为“第二音频”选项;所述第一选项表征确定播放第一音频,所述第二选项表征确定播放第二音频。Fig. 3 is a schematic diagram of another optional audio switching interface for realizing incoming call audio selection provided by an embodiment of the present invention. Referring to Fig. 3, the audio switching interface may also include two options, the first option being "first audio " option, the second option is the "second audio" option; the first option indicates that the first audio is determined to be played, and the second option indicates that the second audio is determined to be played.
当然,实现来电音频选择的音频切换界面的表现形式并不限于上述两种,只要能够实现来电音频选择的音频切换界面或选择框都在本发明的保护范围内。Certainly, the expression form of the audio switching interface for realizing the audio selection of the incoming call is not limited to the above two, as long as the audio switching interface or the selection box that can realize the audio selection of the incoming call are within the protection scope of the present invention.
第三种方式为:基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频。所述预设规则可以为所述第一播放方式的优先权高于所述第二播放方式,也可以为所述第二播放方式的优先权高于所述第一播放方式;本实施例中,所述预设规则将以所述第二播放方式的优先权高于所述第一播放方式为例进行详细说明。The third method is: based on the preset first playback method and the second playback method selected based on the audio switching interface, determine to play the first audio corresponding to the audio data or the preset second audio according to preset rules. The preset rule may be that the priority of the first playback mode is higher than that of the second playback mode, or that the priority of the second playback mode is higher than that of the first playback mode; in this embodiment , the preset rule will be described in detail by taking the priority of the second playback mode higher than that of the first playback mode as an example.
具体地,当接收到基于音频切换界面所选择的第二播放方式时,根据所述第二播放方式,确定播放第一音频或第二音频;当未接收到基于音频切换界面所选择的第二播放方式时,根据所述第一播放方式,确定播放第一音频或第二音频。Specifically, when the second playback mode selected based on the audio switching interface is received, it is determined to play the first audio or the second audio according to the second playback mode; In the playing mode, it is determined to play the first audio or the second audio according to the first playing mode.
例如,当被叫终端接收到主叫终端发送的呼叫请求信令、且呼叫请求信令中包含有音频数据基本流PES时,所述被叫终端可以由输入/输出模块发出界面显示指令给显示模块,所述显示模块会显示音频切换界面供用户选择来电音频。当用户并未触摸音频切换界面中相关选项时,被叫终端根据所述第一播放方式,确定播放第一音频或第二音频;而当用户触摸了音频切换界面中选择来电音频的相关选项时,所述被叫终端根据所述第二播放方式,确定播放第一音频或第二音频。For example, when the called terminal receives the call request signaling sent by the calling terminal, and the call request signaling contains audio data elementary stream PES, the called terminal can send an interface display instruction to the display through the input/output module. module, the display module will display an audio switching interface for the user to select the incoming call audio. When the user does not touch the relevant options in the audio switching interface, the called terminal determines to play the first audio or the second audio according to the first playback method; , the called terminal determines to play the first audio or the second audio according to the second playing manner.
举个例子来说,当用户并未触摸音频切换界面中相关选项、且预先设置的第一播放方式为第二音频时,所述被叫终端确定播放所述第二音频,所述被叫终端利用音频解码器对所述第二音频进行解码,解码后由启动的来电铃声播放模块播放所述第二音频。而当用户触摸了音频切换界面中相关选项、且选择的第二播放方式为第一音频时,所述被叫终端需要将来电音频从第二音频切换到第一音频;此时,所述被叫终端中来电铃声播放模块暂停播放第二音频,并利用音频解码器对音频数据基本流PES进行解码,解码后可以由来电铃声播放模块进行播放。For example, when the user does not touch the relevant option in the audio switching interface and the preset first playback mode is the second audio, the called terminal determines to play the second audio, and the called terminal An audio decoder is used to decode the second audio, and after decoding, the activated ringtone playing module plays the second audio. And when the user touches the relevant option in the audio switching interface and the selected second playback mode is the first audio, the called terminal needs to switch the audio of the incoming call from the second audio to the first audio; The incoming call ringtone playing module in the calling terminal pauses to play the second audio, and uses the audio decoder to decode the audio data elementary stream PES, after decoding, it can be played by the incoming call ringtone playing module.
步骤103,将确定播放的第一音频或第二音频作为来电音频进行播放。Step 103, play the determined first audio or the second audio as the incoming call audio.
这里,被叫终端会利用音频解码器对确定播放的音频进行解码,解码后由来电铃声播放模块作为来电音频进行播放。Here, the called terminal will use the audio decoder to decode the audio that is determined to be played, and after decoding, the incoming call ringtone playing module will play it as the incoming call audio.
另外,在播放第一音频的过程中,用户可能会随时选择建立该呼叫请求连接或选择关断该呼叫请求连接,以响应主叫终端的呼叫请求。相应地,被叫终端会判断是否接收到响应所述呼叫请求信令的操控指令,该操作指令可以为建立呼叫请求连接的操控指令,也可以为关断呼叫请求连接的操控指令。当接收到响应所述呼叫请求信令的操控指令时,被叫终端停止来电铃声播放模块对所述第一音频的播放;当未接收到响应所述呼叫请求信令的操控指令时,被叫终端会判断所述第一音频是否播放完毕。当确定所述第一音频播放完毕后,将来电音频切换至所述第二音频,并对所述第二音频进行播放,直到被叫终端未接收到响应所述呼叫请求信令的操控指令的时间达到预设值。此时,所述被叫终端可以自动关断该呼叫请求连接。In addition, during the process of playing the first audio, the user may choose to establish the call request connection or choose to close the call request connection at any time, so as to respond to the call request of the calling terminal. Correspondingly, the called terminal will judge whether to receive a manipulation instruction in response to the call request signaling, and the manipulation instruction may be a manipulation instruction to establish a call request connection, or may be a manipulation instruction to close a call request connection. When receiving the manipulation instruction in response to the call request signaling, the called terminal stops the playing of the first audio by the incoming ringtone playing module; when the manipulation instruction in response to the call request signaling is not received, the called terminal The terminal will judge whether the playing of the first audio is finished. After it is determined that the first audio has been played, switch the incoming call audio to the second audio, and play the second audio until the called terminal does not receive a control instruction in response to the call request signaling The time reaches the preset value. At this time, the called terminal may automatically disconnect the call request connection.
为了更加清楚的描述本发明实施例提供的方案,在本发明实施例二中,将详细介绍本发明来电音频播放方法的具体实现过程。In order to describe the solution provided by the embodiment of the present invention more clearly, in Embodiment 2 of the present invention, the specific implementation process of the method for playing audio of an incoming call of the present invention will be introduced in detail.
图4为本发明来电音频播放方法实施例二的实现流程示意图,参照图4所示,本实施例的来电音频播放方法具体包括以下步骤:FIG. 4 is a schematic diagram of the implementation process of Embodiment 2 of the call audio playback method of the present invention. Referring to FIG. 4 , the call audio playback method of this embodiment specifically includes the following steps:
步骤201,接收主叫终端发送的呼叫请求信令;Step 201, receiving the call request signaling sent by the calling terminal;
步骤202,检测所述呼叫请求信令是否包含有流媒体数据;若是,执行步骤203;若否,执行步骤205;Step 202, detecting whether the call request signaling contains streaming media data; if so, execute step 203; if not, execute step 205;
步骤203,判断所述流媒体数据中是否包含有音频数据;若是,执行步骤204;若否,执行步骤205;Step 203, judging whether audio data is included in the streaming media data; if so, execute step 204; if not, execute step 205;
步骤204,当未接收到基于音频切换界面所选择的第二播放方式时,根据预先设置的第一播放方式,该第一播放方式为第二音频,确定播放所述第二音频;Step 204, when the second playback mode selected based on the audio switching interface is not received, according to the preset first playback mode, the first playback mode is the second audio, and determine to play the second audio;
步骤205,启动来电铃声播放模块对所述第二音频进行播放;Step 205, start the incoming call ringtone playing module to play the second audio;
步骤206,在播放过程中,接收到基于音频切换界面所选择的第二播放方式,该第二播放方式为第一音频,确定播放所述第一音频;Step 206, during the playback process, receiving the second playback mode selected based on the audio switching interface, the second playback mode is the first audio, and determining to play the first audio;
步骤207,将来电音频切换至第一音频,来电铃声播放模块暂停对所述第二音频的播放,并开始对所述第一音频进行播放;Step 207, switch the audio of the incoming call to the first audio, the incoming ringtone playing module pauses playing the second audio, and starts playing the first audio;
步骤208,判断是否接收到响应所述呼叫请求信令的操控指令;若是,执行步骤211;若否,执行步骤209;Step 208, judging whether a manipulation instruction in response to the call request signaling has been received; if yes, execute step 211; if not, execute step 209;
步骤209,判断所述第一音频是否播放完毕;若是,执行步骤210;若否,返回执行步骤208;Step 209, judging whether the first audio has been played; if yes, execute step 210; if not, return to execute step 208;
步骤210,将来电音频切换至所述第二音频,来电铃声播放模块继续对所述第二音频进行播放;Step 210, switch the incoming call audio to the second audio, and the incoming ringtone playing module continues to play the second audio;
211,结束来电音频的播放。211. End the playing of the incoming call audio.
为实现本发明实施例的方法,本发明实施例还提供了一种来电音频播放装置,应用于终端,用于实现上述来电音频播放方法的具体细节,达到相同的效果。In order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides an incoming call audio playing device, which is applied to a terminal, and is used to realize the specific details of the above-mentioned incoming call audio playing method, and achieve the same effect.
图5为本发明实施例来电音频播放装置组成结构示意图,参照图5所示,本实施例中的来电音频播放装置包括:接收模块31、第一确定模块32和播放模块33;其中,FIG. 5 is a schematic diagram of the structure of an incoming call audio playback device according to an embodiment of the present invention. Referring to FIG. 5 , the incoming call audio playback device in this embodiment includes: a receiving module 31, a first determination module 32, and a playback module 33; wherein,
所述接收模块31,用于接收主叫终端发送的呼叫请求信令;The receiving module 31 is configured to receive the call request signaling sent by the calling terminal;
所述第一确定模块32,用于当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;The first determination module 32 is configured to determine the playback according to preset rules based on the preset first playback mode and the second playback mode selected based on the audio switching interface when it is determined that the call request signaling contains audio data. The first audio corresponding to the audio data or the preset second audio;
所述播放模块33,用于将确定播放的第一音频或第二音频作为来电音频进行播放。The playing module 33 is configured to play the determined first audio or the second audio as the incoming call audio.
可选地,本实施例的来电音频播放装置还包括:第二确定模块34,用于确定呼叫请求信令中包含有音频数据;Optionally, the audio playback device for incoming calls in this embodiment further includes: a second determination module 34, configured to determine that the call request signaling contains audio data;
可选地,所述第二确定模块34,具体用于检测所述呼叫请求信令是否包含有流媒体数据;当检测到所述呼叫请求信令包含有流媒体数据时,判断所述流媒体数据中是否包含有音频数据;当所述流媒体数据中包含有音频数据时,确定呼叫请求信令中包含有音频数据。Optionally, the second determining module 34 is specifically configured to detect whether the call request signaling contains streaming media data; when it is detected that the call request signaling contains streaming media data, determine whether the streaming media Whether the data contains audio data; when the streaming media data contains audio data, it is determined that the call request signaling contains audio data.
可选地,所述播放模块33,还用于当确定呼叫请求信令中不包含有音频数据时,将所述第二音频作为来电音频进行播放。Optionally, the playing module 33 is further configured to play the second audio as incoming call audio when it is determined that the call request signaling does not contain audio data.
可选地,本实施例的来电音频播放装置还包括:判断模块35、结束播放模块36和切换模块37;其中,Optionally, the audio playback device for incoming calls in this embodiment also includes: a judging module 35, an end playing module 36 and a switching module 37; wherein,
所述判断模块35,用于判断是否接收到响应所述呼叫请求信令的操控指令;The judging module 35 is configured to judge whether a manipulation instruction responding to the call request signaling is received;
所述结束播放模块36,用于当接收到响应所述呼叫请求信令的操控指令时,结束所述第一音频的播放;The end playing module 36 is configured to end the playing of the first audio when receiving a manipulation instruction in response to the call request signaling;
所述切换模块37,用于当未接收到响应所述呼叫请求信令的操控指令时,且当确定所述第一音频播放完毕后,将来电音频切换至所述第二音频进行播放。The switching module 37 is configured to switch the audio of the incoming call to the second audio for playing when no manipulation instruction in response to the call request signaling is received and after it is determined that the first audio has been played.
可选地,当接收到基于音频切换界面所选择的第二播放方式时,所述第一确定模块32,具体用于根据所述第二播放方式,确定播放第一音频或第二音频;Optionally, when receiving the second playback mode selected based on the audio switching interface, the first determination module 32 is specifically configured to determine to play the first audio or the second audio according to the second playback mode;
当未接收到基于音频切换界面所选择的第二播放方式时,所述第二确定模块32,具体用于根据所述第一播放方式,确定播放第一音频或第二音频。When the second playback mode selected based on the audio switching interface is not received, the second determination module 32 is specifically configured to determine to play the first audio or the second audio according to the first playback mode.
在实际应用中,所述接收模块31、第一确定模块32、播放模块33、第二确定模块34、判断模块35、结束播放模块36和切换模块37均可由位于来电音频播放装置中的处理器结合用户接口实现。In practical applications, the receiving module 31, the first determining module 32, the playing module 33, the second determining module 34, the judging module 35, the ending playing module 36 and the switching module 37 can all be arranged by the processor located in the incoming call audio playing device Combined with user interface implementation.
上述实施例提供的来电音频播放装置在进行来电音频播放时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的来电音频播放装置与来电音频播放方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。The incoming call audio playback device provided by the above embodiment only uses the division of the above-mentioned program modules as an example when performing incoming call audio playback. In practical applications, the above-mentioned processing allocation can be completed by different program modules according to needs. The internal structure is divided into different program modules to complete all or part of the processing described above. In addition, the incoming call audio playing device and the incoming call audio playing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
为实现本发明实施例的方法,本发明实施例还提供了一种来电音频播放装置,应用于终端,用于实现上述来电音频播放方法的具体细节,达到相同的效果。In order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides an incoming call audio playing device, which is applied to a terminal, and is used to realize the specific details of the above-mentioned incoming call audio playing method, and achieve the same effect.
图6为本发明实施例来电音频播放装置硬件组成结构示意图,参照图6所示,本实施例中的来电音频播放装置包括:处理器41、用于存储能够在处理器41上运行的计算机程序的存储器42、以及用户接口43;其中,FIG. 6 is a schematic diagram of the hardware structure of an incoming call audio playback device according to an embodiment of the present invention. Referring to FIG. memory 42, and user interface 43; wherein,
所述用户接口43,用于接收用户输入的指令;The user interface 43 is configured to receive an instruction input by a user;
所述处理器41,用于运行所述计算机程序时,执行:The processor 41, when running the computer program, executes:
接收主叫终端发送的呼叫请求信令;receiving the call request signaling sent by the calling terminal;
当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;When it is determined that the call request signaling contains audio data, based on the preset first playback mode and the second playback mode selected based on the audio switching interface, determine to play the first audio corresponding to the audio data according to preset rules or Pre-set second audio;
将确定播放的第一音频或第二音频作为来电音频进行播放。The first audio or the second audio determined to be played is played as the incoming call audio.
可选地,所述处理器41,还用于运行所述计算机程序时,执行:Optionally, the processor 41 is also configured to, when running the computer program, execute:
检测所述呼叫请求信令是否包含有流媒体数据;Detecting whether the call request signaling contains streaming media data;
当检测到所述呼叫请求信令包含有流媒体数据时,判断所述流媒体数据中是否包含有音频数据;When detecting that the call request signaling contains streaming media data, determine whether audio data is included in the streaming media data;
当所述流媒体数据中包含有音频数据时,确定呼叫请求信令中包含有音频数据。When the streaming media data includes audio data, it is determined that the call request signaling includes audio data.
可选地,所述处理器41,还用于运行所述计算机程序时,执行:Optionally, the processor 41 is also configured to, when running the computer program, execute:
当确定呼叫请求信令中不包含有音频数据时,将所述第二音频作为来电音频进行播放。When it is determined that the call request signaling does not contain audio data, the second audio is played as incoming call audio.
可选地,所述处理器41,还用于运行所述计算机程序时,执行:Optionally, the processor 41 is also configured to, when running the computer program, execute:
在将确定播放的第一音频作为来电音频进行播放之后,判断是否接收到响应所述呼叫请求信令的操控指令;After playing the first audio that is determined to be played as the audio of the incoming call, it is judged whether a manipulation instruction in response to the call request signaling is received;
若是,结束所述第一音频的播放;If so, end the playback of the first audio;
若否,当确定所述第一音频播放完毕后,将来电音频切换至所述第二音频进行播放。If not, after it is determined that the playing of the first audio is finished, the audio of the incoming call is switched to the second audio for playing.
可选地,所述处理器41,还用于运行所述计算机程序时,执行:Optionally, the processor 41 is also configured to, when running the computer program, execute:
当接收到基于音频切换界面所选择的第二播放方式时,根据所述第二播放方式,确定播放第一音频或第二音频;或者,When receiving the second playback mode selected based on the audio switching interface, determine to play the first audio or the second audio according to the second playback mode; or,
当未接收到基于音频切换界面所选择的第二播放方式时,根据所述第一播放方式,确定播放第一音频或第二音频。When the second playback mode selected based on the audio switching interface is not received, it is determined to play the first audio or the second audio according to the first playback mode.
当然,实际应用时,如图6所示,各个组件通过总线系统44耦合在一起。可理解,总线系统44用于实现这些组件之间的连接通信。总线系统44除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统44。Of course, in actual application, as shown in FIG. 6 , various components are coupled together through the bus system 44 . It can be understood that the bus system 44 is used to realize connection and communication between these components. In addition to the data bus, the bus system 44 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 44 in FIG. 6 .
本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有可执行程序,所述可执行程序被处理器41执行时实现以下步骤:The present invention also provides a computer-readable storage medium, the computer-readable storage medium stores an executable program, and when the executable program is executed by the processor 41, the following steps are implemented:
接收主叫终端发送的呼叫请求信令;receiving the call request signaling sent by the calling terminal;
当确定呼叫请求信令中包含有音频数据时,基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频;When it is determined that the call request signaling contains audio data, based on the preset first playback mode and the second playback mode selected based on the audio switching interface, determine to play the first audio corresponding to the audio data according to preset rules or Pre-set second audio;
将确定播放的第一音频或第二音频作为来电音频进行播放。The first audio or the second audio determined to be played is played as the incoming call audio.
可选地,所述可执行程序被处理器41执行时,以具体实现确定呼叫请求信令中包含有音频数据的步骤:Optionally, when the executable program is executed by the processor 41, to specifically realize the step of determining that the call request signaling contains audio data:
检测所述呼叫请求信令是否包含有流媒体数据;Detecting whether the call request signaling contains streaming media data;
当检测到所述呼叫请求信令包含有流媒体数据时,判断所述流媒体数据中是否包含有音频数据;When detecting that the call request signaling contains streaming media data, determine whether audio data is included in the streaming media data;
当所述流媒体数据中包含有音频数据时,确定呼叫请求信令中包含有音频数据。When the streaming media data includes audio data, it is determined that the call request signaling includes audio data.
可选地,所述可执行程序被处理器41执行时,以实现以下步骤:Optionally, when the executable program is executed by the processor 41, the following steps are implemented:
当确定呼叫请求信令中不包含有音频数据时,将所述第二音频作为来电音频进行播放。When it is determined that the call request signaling does not contain audio data, the second audio is played as incoming call audio.
可选地,所述可执行程序被处理器41执行时,以实现以下步骤:Optionally, when the executable program is executed by the processor 41, the following steps are implemented:
在将确定播放的第一音频作为来电音频进行播放之后,判断是否接收到响应所述呼叫请求信令的操控指令;After playing the first audio that is determined to be played as the audio of the incoming call, it is judged whether a manipulation instruction in response to the call request signaling is received;
若是,结束所述第一音频的播放;If so, end the playback of the first audio;
若否,当确定所述第一音频播放完毕后,将来电音频切换至所述第二音频进行播放。If not, after it is determined that the playing of the first audio is finished, the audio of the incoming call is switched to the second audio for playing.
可选地,所述可执行程序被处理器41执行时,以具体实现基于预先设置的第一播放方式和基于音频切换界面所选择的第二播放方式,按照预设规则确定播放所述音频数据对应的第一音频或预先设置的第二音频的步骤:Optionally, when the executable program is executed by the processor 41, the audio data is determined to be played according to preset rules in order to specifically realize the first playback mode based on the preset and the second playback mode selected based on the audio switching interface. Steps for the corresponding first audio or the preset second audio:
当接收到基于音频切换界面所选择的第二播放方式时,根据所述第二播放方式,确定播放第一音频或第二音频;或者,When receiving the second playback mode selected based on the audio switching interface, determine to play the first audio or the second audio according to the second playback mode; or,
当未接收到基于音频切换界面所选择的第二播放方式时,根据所述第一播放方式,确定播放第一音频或第二音频。When the second playback mode selected based on the audio switching interface is not received, it is determined to play the first audio or the second audio according to the first playback mode.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and scope of the present invention are included in the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710891034.8A CN107508995A (en) | 2017-09-27 | 2017-09-27 | One kind incoming call audio frequency playing method and device, computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710891034.8A CN107508995A (en) | 2017-09-27 | 2017-09-27 | One kind incoming call audio frequency playing method and device, computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107508995A true CN107508995A (en) | 2017-12-22 |
Family
ID=60699845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710891034.8A Pending CN107508995A (en) | 2017-09-27 | 2017-09-27 | One kind incoming call audio frequency playing method and device, computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107508995A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040959A (en) * | 2018-08-21 | 2018-12-18 | 中国联合网络通信集团有限公司 | A kind of method and system from speech message to driver that broadcasting |
CN110830656A (en) * | 2019-11-13 | 2020-02-21 | 广州酷狗计算机科技有限公司 | Method, device, equipment and storage medium for prompting incoming call |
US11710563B2 (en) | 2020-06-02 | 2023-07-25 | Apple Inc. | User interfaces for health applications |
US11842806B2 (en) | 2019-06-01 | 2023-12-12 | Apple Inc. | Health application user interfaces |
US11950916B2 (en) | 2018-03-12 | 2024-04-09 | Apple Inc. | User interfaces for health monitoring |
US12002588B2 (en) | 2019-07-17 | 2024-06-04 | Apple Inc. | Health event logging and coaching user interfaces |
US12008290B2 (en) | 2022-05-16 | 2024-06-11 | Apple Inc. | Methods and user interfaces for monitoring sound reduction |
US12127829B2 (en) | 2019-09-09 | 2024-10-29 | Apple Inc. | Research study user interfaces |
US12143784B2 (en) | 2019-06-01 | 2024-11-12 | Apple Inc. | User interfaces for managing audio exposure |
US12154450B2 (en) | 2020-06-02 | 2024-11-26 | Apple Inc. | User interfaces for tracking of physical activity events |
US12164748B2 (en) | 2020-08-31 | 2024-12-10 | Apple Inc. | User interfaces for logging user activities |
US12314632B2 (en) | 2022-05-16 | 2025-05-27 | Apple Inc. | Methods and user interfaces for monitoring sound reduction |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1878338A (en) * | 2005-06-06 | 2006-12-13 | 华为技术有限公司 | Method for realizing called playing and calling order ringing media |
CN101035164A (en) * | 2007-03-05 | 2007-09-12 | 李波 | System and method for realizing the video ring |
CN101267583A (en) * | 2007-03-15 | 2008-09-17 | 展讯通信(上海)有限公司 | A realization method for personalized multimedia ring service in mobile communication system |
CN101867663A (en) * | 2009-04-17 | 2010-10-20 | 中兴通讯股份有限公司 | System and method for filtering ring |
WO2010145139A1 (en) * | 2009-06-30 | 2010-12-23 | 中兴通讯股份有限公司 | Method and system for transmitting information of color ringback tone in package switch domain, and color ringback tone server and terminal therefor |
CN102082857A (en) * | 2009-11-27 | 2011-06-01 | 黄金富 | Caller identification (CID) method and system implemented through characters, sound and images, and the like send from calling phone |
CN106254693A (en) * | 2016-07-25 | 2016-12-21 | 姚杰 | A kind of intelligent mobile terminal short video interactive method of call and system |
-
2017
- 2017-09-27 CN CN201710891034.8A patent/CN107508995A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1878338A (en) * | 2005-06-06 | 2006-12-13 | 华为技术有限公司 | Method for realizing called playing and calling order ringing media |
CN101035164A (en) * | 2007-03-05 | 2007-09-12 | 李波 | System and method for realizing the video ring |
CN101267583A (en) * | 2007-03-15 | 2008-09-17 | 展讯通信(上海)有限公司 | A realization method for personalized multimedia ring service in mobile communication system |
CN101867663A (en) * | 2009-04-17 | 2010-10-20 | 中兴通讯股份有限公司 | System and method for filtering ring |
WO2010145139A1 (en) * | 2009-06-30 | 2010-12-23 | 中兴通讯股份有限公司 | Method and system for transmitting information of color ringback tone in package switch domain, and color ringback tone server and terminal therefor |
CN102082857A (en) * | 2009-11-27 | 2011-06-01 | 黄金富 | Caller identification (CID) method and system implemented through characters, sound and images, and the like send from calling phone |
CN106254693A (en) * | 2016-07-25 | 2016-12-21 | 姚杰 | A kind of intelligent mobile terminal short video interactive method of call and system |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11950916B2 (en) | 2018-03-12 | 2024-04-09 | Apple Inc. | User interfaces for health monitoring |
CN109040959A (en) * | 2018-08-21 | 2018-12-18 | 中国联合网络通信集团有限公司 | A kind of method and system from speech message to driver that broadcasting |
CN109040959B (en) * | 2018-08-21 | 2021-02-02 | 中国联合网络通信集团有限公司 | A method and system for broadcasting a voice message to a driver |
US12362056B2 (en) | 2019-06-01 | 2025-07-15 | Apple Inc. | Health application user interfaces |
US12143784B2 (en) | 2019-06-01 | 2024-11-12 | Apple Inc. | User interfaces for managing audio exposure |
US11842806B2 (en) | 2019-06-01 | 2023-12-12 | Apple Inc. | Health application user interfaces |
US12002588B2 (en) | 2019-07-17 | 2024-06-04 | Apple Inc. | Health event logging and coaching user interfaces |
US12127829B2 (en) | 2019-09-09 | 2024-10-29 | Apple Inc. | Research study user interfaces |
CN110830656A (en) * | 2019-11-13 | 2020-02-21 | 广州酷狗计算机科技有限公司 | Method, device, equipment and storage medium for prompting incoming call |
US11710563B2 (en) | 2020-06-02 | 2023-07-25 | Apple Inc. | User interfaces for health applications |
US12154450B2 (en) | 2020-06-02 | 2024-11-26 | Apple Inc. | User interfaces for tracking of physical activity events |
US12198804B2 (en) | 2020-06-02 | 2025-01-14 | Apple Inc. | User interfaces for health applications |
US12164748B2 (en) | 2020-08-31 | 2024-12-10 | Apple Inc. | User interfaces for logging user activities |
US12008290B2 (en) | 2022-05-16 | 2024-06-11 | Apple Inc. | Methods and user interfaces for monitoring sound reduction |
US12314632B2 (en) | 2022-05-16 | 2025-05-27 | Apple Inc. | Methods and user interfaces for monitoring sound reduction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107508995A (en) | One kind incoming call audio frequency playing method and device, computer-readable recording medium | |
US11336953B2 (en) | Video processing method, electronic device, and computer-readable medium | |
US12050638B2 (en) | Multimedia playing method and device | |
CN104915115A (en) | Application program switching method and device for terminal | |
TW201334518A (en) | Audio/video playing device, audio/video processing device, systems, and method thereof | |
US11205431B2 (en) | Method, apparatus and device for presenting state of voice interaction device, and storage medium | |
US9497434B2 (en) | Method and apparatus for multi-playing videos | |
US11956497B2 (en) | Audio processing method and electronic device | |
CN111510755A (en) | Audio and video switching method and device, computer equipment and readable storage medium | |
WO2017166685A1 (en) | Method and apparatus for switching to external loudspeaker | |
CN104536673A (en) | Method and system for reading in-vehicle infotainment WeChat received audio information | |
CN105872724A (en) | A video playback method and device | |
WO2018192183A1 (en) | Method and apparatus for processing video file during wireless screen delivery | |
US20150032517A1 (en) | Method for Playing Back Advertisement and Video Content and Electronic Apparatus Using the Method | |
CN105337822A (en) | Main playback device selection method and related device | |
US10509554B2 (en) | Method for outputting target content and terminal therefor | |
CN112102853A (en) | Audio and video player control method and device, storage medium and electronic equipment | |
JP2018509007A (en) | Audio reproduction method, apparatus, program, and recording medium | |
US20150077635A1 (en) | Method for outputting multiple multimedia tracks along multiple processing paths from a portable electronic device | |
CN115639934A (en) | Content sharing method, device, equipment, computer readable storage medium and product | |
CN104837020B (en) | The method and apparatus for playing video | |
CN102520897B (en) | Mobile terminal and method for increasing drawing speed of screen interface | |
CN103888809A (en) | Split-screen display method and device, and intelligent television | |
CN111782099A (en) | Method, device, terminal and storage medium for realizing preview of background picture | |
CN103974215B (en) | Control method of electronic device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171222 |
|
RJ01 | Rejection of invention patent application after publication |