WO2015154375A1 - 语音播放的方法及装置 - Google Patents

语音播放的方法及装置 Download PDF

Info

Publication number
WO2015154375A1
WO2015154375A1 PCT/CN2014/086161 CN2014086161W WO2015154375A1 WO 2015154375 A1 WO2015154375 A1 WO 2015154375A1 CN 2014086161 W CN2014086161 W CN 2014086161W WO 2015154375 A1 WO2015154375 A1 WO 2015154375A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice
playing
recording
formats
format
Prior art date
Application number
PCT/CN2014/086161
Other languages
English (en)
French (fr)
Inventor
靳梅
纪俊峰
邓方民
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015154375A1 publication Critical patent/WO2015154375A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/64Automatic arrangements for answering calls; Automatic arrangements for recording messages for absent subscribers; Arrangements for recording conversations

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for voice playback.
  • the audio format that is transmitted over the network is strictly limited. Not all audio formats can be transmitted over the network air interface.
  • the audio format is required by different formats.
  • the common speech coding formats for CDMA networks are EVRC and 4GV.
  • the voice coding format is switched from EVRC to 4GV, the tone of the EVRC format recorded by the terminal can be transmitted through the network in the EVRC coding format.
  • the voice file corresponding to the encoding format is generally recorded according to the selected one of the encoding formats, but when the network environment is switched to the CDMA voice encoding format of 4GV, the original recorded EVRC format sound file cannot pass at this time. When the network transmits and plays, the other party cannot hear the sound.
  • the present invention provides a method and apparatus for playing a voice to solve at least the above problems, in view of the related art, in which the voice recording method cannot provide a corresponding voice file for different call encoding formats, resulting in a failure of the voice file to be played. .
  • a method for voice playback comprising: determining at least two voice encoding formats for performing voice recording; recording voice according to the determined at least two voice encoding formats; The playing voice encoding format used for playing the voice is selected from the at least two voice encoding formats corresponding to the voice; and the selected voice corresponding to the playing voice encoding format is played.
  • the method further includes: using the manner of carrying the information in the voice coding format for the voice recorded according to the at least two voice coding formats Name it and store it.
  • a play voice encoding format for playing the voice is selected from the at least two voice encoding formats corresponding to the recorded voice: the call waiting time is greater than the preset Set the value; receive an instruction to reject the call.
  • the method includes: stopping playing the voice corresponding to the playing voice encoding format when receiving an instruction to answer the call during playing of the selected voice corresponding to the playing voice encoding format.
  • the method further includes: recording the message information of the calling party during the call; and playing the message information.
  • an apparatus for voice playback comprising: a determining module configured to determine at least two voice encoding formats for performing voice recording; and a first recording module configured to determine according to the determined The at least two voice encoding formats are used to record the voice; the selecting module is configured to select a playing voice encoding format for playing the voice from the at least two voice encoding formats corresponding to the recorded voice; the first playing module And setting to play the voice corresponding to the selected playing voice encoding format.
  • the device further includes: a storage module, configured to name and store the voice recorded according to the at least two voice coding formats by using the information carrying the voice coding format.
  • a storage module configured to name and store the voice recorded according to the at least two voice coding formats by using the information carrying the voice coding format.
  • the device further comprises one of the following modules: a detecting module configured to detect that the call waiting time is greater than a preset value; and a receiving module configured to receive an instruction to reject the call.
  • a detecting module configured to detect that the call waiting time is greater than a preset value
  • a receiving module configured to receive an instruction to reject the call.
  • the device includes: stopping the playing module, configured to stop playing the voice corresponding to the playing voice encoding format when receiving the command to answer the call during the playing of the voice corresponding to the selected playing voice encoding format.
  • the device further includes: a second recording module configured to record the message information of the calling party during the call; and a second playing module configured to play the message information.
  • At least two voice coding formats for voice recording are determined, and the voice is recorded according to the determined at least two voice coding formats, which solves the problem that the voice recording mode cannot be used for different call coding formats in the related art.
  • the corresponding voice file is provided, which causes the voice file to fail to play.
  • FIG. 1 is a flow chart of a method for voice playback according to an embodiment of the present invention
  • FIG. 2 is a flow chart 1 of a method for voice playback according to a preferred embodiment of the present invention
  • FIG. 3 is a second flowchart of a method for voice playback according to a preferred embodiment of the present invention.
  • FIG. 4 is a block diagram of a voice playback device in accordance with an embodiment of the present invention.
  • FIG. 5 is a block diagram 1 of a voice playback device in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a block diagram 2 of a voice playback device in accordance with a preferred embodiment of the present invention.
  • FIG. 7 is a block diagram 3 of a voice playback device in accordance with a preferred embodiment of the present invention.
  • Figure 8 is a block diagram 4 of a voice playback device in accordance with a preferred embodiment of the present invention.
  • FIG. 9 is a flow chart 1 of a method for playing recorded voice according to a preferred embodiment of the present invention.
  • FIG. 10 is a flow chart 2 of a method of playing a recorded voice in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for playing a voice according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • Step S102 determining at least two voice coding formats for performing voice recording
  • Step S104 Record the voice according to the determined at least two voice coding formats.
  • Step S106 Select a play voice encoding format for playing the voice from the at least two voice encoding formats corresponding to the recorded voice.
  • Step S108 Play the selected voice corresponding to the playback voice coding format.
  • the language encoding format that may be involved may be selected and determined according to the state of the terminal. For the language encoding format that the terminal does not involve at all, the selection may be omitted, so that the recording may not be avoided.
  • the voice file corresponding to the encoded format can also save storage space.
  • the language encoding format is used for voice recording.
  • the voice is recorded by using multiple threads according to the determined at least two voice encoding formats.
  • There are many methods for recording for example, a voice file of one encoding format can be recorded at one time, and voices of different face formats can be completed by multiple recordings. Recording of files; in order to achieve better results, as a better implementation, you can record recording files in multiple encoding formats.
  • the above two methods are just implementation methods, and other implementation methods that can achieve the same effect are also used.
  • the call encoding format provides a corresponding voice file, which causes a problem that the voice file fails to be played, so that a corresponding encoded format recording file can be provided for different voice encoding formats.
  • FIG. 2 is a first flowchart of a method for playing a voice according to a preferred embodiment of the present invention. As shown in FIG. 2, the method further includes:
  • Step S105 naming and storing the voice recorded according to the at least two voice coding formats by using the information carrying the voice coding format, and storing the information in the voice coding format is only one of the stored formats. It can be carried without being, not limited to this, the voice content played is the same.
  • the digital form XX-1-Y.AMR 1 defines a format of 1 code in the code, such as #define 1CDMAEVRC.
  • a voice file corresponding to the encoded format of the incoming call is selected from the stored language files of the multiple encoded formats, so that when the recorded file is played, the corresponding format can be played according to the encoded format of the voice call.
  • the recording file ensures the transmission and playback of the recorded file.
  • the voice for playing The voice encoding format is played, so that the played voice encoding format corresponds to the recorded voice encoding format, thereby ensuring the transmission and playback of the voice file.
  • the voice file corresponding to the playing voice encoding format being played is stopped.
  • FIG. 3 is a second flowchart of a method for playing a voice according to a preferred embodiment of the present invention. As shown in FIG. 3, the method further includes:
  • Step S110 recording the message information of the calling party during the call
  • step S112 the message information is played.
  • the message information of the calling party during the call can be recorded, and the recorded message information can be played, so that it is inconvenient to answer the call.
  • the purpose of the annotation call is to improve the user experience.
  • FIG. 4 is a block diagram of a voice playing device according to an embodiment of the present invention. As shown in FIG. 4, the device includes: a determining module 42, a first recording module 44, and a selecting module 46. The first playing module 48, each module will be described in detail below.
  • a determining module 42 configured to determine at least two voice encoding formats for voice recording
  • the first recording module 44 is configured to record the voice according to the determined at least two voice encoding formats
  • the selecting module 46 is configured to select a playing voice encoding format for playing the voice from at least two voice encoding formats corresponding to the recorded voice;
  • the first playing module 48 is configured to play the voice corresponding to the selected playing voice encoding format.
  • FIG. 5 is a block diagram of a voice playback device according to a preferred embodiment of the present invention. As shown in FIG. 5, the device further includes: a storage module 45 configured to carry a voice recorded according to the at least two voice coding formats. The manner of the information in the speech coding format is named and stored.
  • FIG. 6 is a block diagram 2 of a voice playback apparatus according to a preferred embodiment of the present invention. As shown in FIG. 6, the apparatus further includes one of the following modules: a detection module 62 configured to detect that a call waiting time is greater than a preset value; and a receiving module 64. Set to receive an instruction to reject the call.
  • a detection module 62 configured to detect that a call waiting time is greater than a preset value
  • a receiving module 64 Set to receive an instruction to reject the call.
  • FIG. 7 is a block diagram 3 of a voice playback apparatus according to a preferred embodiment of the present invention.
  • the apparatus includes: a stop playback module 410, configured to play during playback of a selected voice corresponding to the playback voice encoding format, When the instruction to answer the call is received, the playback of the voice corresponding to the voice coding format is stopped.
  • FIG. 8 is a block diagram 4 of a voice playback apparatus according to a preferred embodiment of the present invention. As shown in FIG. 8, the apparatus further includes:
  • the second recording module 412 is configured to record the message information of the calling party during the call
  • the second playing module 414 is configured to play the message information.
  • the recording recording method in the embodiment includes: determining a recording format by selecting, and starting multi-threading to separately record according to the selected recording format, simultaneously generating a recording file of multiple formats in one recording, and generating more after the recording ends. Recorded files in a format are stored.
  • the user receives an instruction to reject the voice according to actual needs, or after the time of waiting for the call exceeds a preset value, the voice coding format in the voice call signaling Service Connect is read, and the air interface is directly transmitted according to the coding format. Play the recording directly to the other party. Turn off the local mobile phone headset and mic, hang up the phone after playing, or record the other party's call, wait until the recording ends, and end the call.
  • a user When a user records a voice message, multiple recording files can be generated simultaneously in one recording. Dynamically select and play in different network environments, compatible with different voice encoding formats. From the user's point of view, it solves the actual problems encountered by the user during use, provides different choices to the user when receiving the call, plays different voices to the caller, and the user can answer the call while playing the voice, improving the user. Experience. By recording recording files of multiple network formats at one time, reducing the cumbersome operation of the user and the limitation of professional technical knowledge; dynamically selecting the played recording file according to the voice signaling negotiated by the network call, so that the format error cannot be transmitted through the network, and the other party cannot listen. To the sound problem.
  • the UI provides users with multiple choices to play different recording files over the network, avoiding a single prompt.
  • the CDMA network is taken as an example in this embodiment, as is GSM, WCDMA, and the like.
  • the voice coding formats of CDMA networks are as follows: EVRC (Enhanced Variable Rate Codec), QCELP (8k), QCELP (13k), EVRC-NB (EVRC-B) (4GV Narrowband voice), EVRC-WB and EVRC- NW three, the business choices are SO03, SO68, SO70, SO73.
  • the voice coding formats used in the current network are EVRC (EVRC 8k voice) and EVRC-NB (4GV), and other formats are tested in the laboratory.
  • GSM-AMR GSM-AMR
  • AMR WB AMR WB
  • MV_AMR_MODE_0475 MV_AMR_MODE_0515, MV_AMR_MODE_0590, MV_AMR_MODE_0670, MV_AMR_MODE_0740, MV_AMR_MODE_1220, MV_AMR_MODE_0660, MV_AMR_MODE_0885, MV_AMR_MODE_1265, MV_AMR_MODE_1425, MV_AMR_MODE_1585, MV_AMR_MODE_1825,
  • Recording voice message method taking CDMA system as an example, including: selecting voice message encoding format, the default is EVRC and EVRC-NB. Among them, the user can select a plurality of different encoding formats, and CDMA can adopt the default speech encoding formats EVRC and 4GV.
  • the format of the recording file name is CDMA-SOXX-YY.qcp, but is not limited thereto. For example, CDMA-SO64-record1.qcp XX represents the voice encoding format, and YY is the recording file name.
  • WCDMA is taken as an example, and the method of saving while recording includes: selecting a voice message encoding format, wherein the user can select multiple different encoding formats, and WCDMA can adopt a default voice.
  • the encoding format is MV_AMR_MODE_1220, MV_AMR_MODE_1585, but is not limited thereto.
  • the format of the recording file name is GSM-XX-YY.amr where XX is the recording encoding format and YY is the recording file name.
  • Start multi-threaded write file in which according to the selected encoding format, start multi-threading to record in different formats and save. End of recording
  • the message is not limited to this.
  • FIG. 9 is a first flowchart of a method for playing recorded voice according to a preferred embodiment of the present invention. As shown in FIG. 9 , when an automatic message rejection call rejection is set, playing the recorded voice includes the following steps:
  • Step S902 the incoming call, and the waiting time for the incoming call answering (for example, 20 seconds), wherein the user can set the maximum time of the missed call, and the default is 20 seconds if not set.
  • the recording file corresponding to the encoding format CDMA-SO03-record1.qcp and play the prompt tone to enter the voice message prompt to play. Simultaneously turn off the mic and headphones.
  • step S906 it is determined whether the recording has been completed. If the playback is completed, the process proceeds to step 910, otherwise, the process proceeds to step 908.
  • step S908 the user answers the call, stops playing the recording, automatically turns on the mic and the headset, and performs a normal call.
  • step S910 the call ends.
  • FIG. 10 is a second flowchart of a method for playing recorded voice according to a preferred embodiment of the present invention. As shown in FIG. 10, when a user manually selects a reject voice reject call, playing the recorded voice includes the following steps:
  • step S1002 when there is an incoming call, the user operates on the incoming call interface, selects the rejected voice file to be played to the other party, and reads the message name, marked as A.
  • Step S1004 reading the network side voice encoding format as XX, reading the recording file corresponding to the encoding format CDMA-SOXX-A.qcp, playing the prompt tone, automatically ending the call after the message is played, and automatically closing the mic and the earphone during the playing process. .
  • step S1006 it is determined whether the recording is completed or not. If the playback is completed, the process proceeds to step S1010, otherwise, the process proceeds to step S1008.
  • step S1008 the user answers the call within this time, automatically opens the mic and the headset, and performs a normal call.
  • step S1010 the call ends.
  • the encoding format of the playing voice is determined by determining the voice encoding format of the incoming call, from the stored voice files of multiple encoding formats.
  • the voice file corresponding to the played voice coding format is obtained, and the voice file is played. Since the stored voice file and the voice coding format of the call are the same, the transmission and playback of the voice file are ensured, thereby improving the user experience.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices.
  • they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from this
  • the steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above embodiments and the preferred embodiments not only solve the problem that the corresponding voice files cannot be provided for different call coding formats due to the voice recording mode, which causes the voice file to fail to play, and the multiple encoding formats are recorded.
  • the recording file enables the corresponding encoded format recording file to be provided for different speech encoding formats.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种语音播放的方法及装置,其中,该方法包括:确定用于进行语音录制的至少两个语音编码格式;根据确定的该至少两个语音编码格式对语音进行录制;从录制的语音对应的该至少两个语音编码格式中选择用于该语音进行播放的播放语音编码格式;对选择的该播放语音编码格式对应的语音进行播放。通过本发明,解决了相关技术中由于语音录制方式不能为不同通话编码格式提供对应的语音文件,导致语音文件播放失败的问题,通过录制多种编码格式的录音文件,使得能够为不同语音编码格式提供对应的编码格式录音文件。

Description

语音播放的方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种语音播放的方法及装置。
背景技术
通过网络传输播放的音频格式是有严格限制的。不是所有音频格式都能通过网络空口传输,音频格式是有不同格式制式要求的。当区域内存在多个运营商网络时,网络环境比较多变时,网络的支持的语音编码就会存在变化。比如CDMA网络常用的语音编码格式为EVRC与4GV。当小区切换网络环境变化,从一个小区切换到另一个小区,从一个国家到另一个国际。语音编码格式从EVRC,切换到4GV时,终端录制的EVRC格式的提示音在EVRC编码格式可以通过网络传输播放。
现有技术中,一般都是根据选择的一种编码格式录制对应该编码格式的语音文件,但当网络环境切换到CDMA的语音编码格式为4GV时原来录制的EVRC格式的声音文件此时无法通过网络传输与播放,对方也就无法听到声音。
针对相关技术中由于语音录制方式不能为不同通话编码格式提供对应的语音文件,导致语音文件播放失败的问题,目前尚未提出有效的解决方案。
发明内容
针对相关技术中针对相关技术中由于语音录制方式不能为不同通话编码格式提供对应的语音文件,导致语音文件播放失败的问题,本发明提供了一种语音播放的方法及装置,以至少解决上述问题。
根据本发明的一个方面,提供了一种语音播放的方法,包括:确定用于进行语音录制的至少两个语音编码格式;根据确定的所述至少两个语音编码格式对语音进行录制;从录制的语音对应的所述至少两个语音编码格式中选择用于所述语音进行播放的播放语音编码格式;对选择的所述播放语音编码格式对应的语音进行播放。
优选地,在根据确定的所述至少两个语音编码格式对语音进行录制之后,还包括:对根据所述至少两个语音编码格式进行录制的语音,采用携带所述语音编码格式的信息的方式进行命名并存储。
优选地,在满足以下条件至少之一的情况下,从录制的语音对应的所述至少两个语音编码格式中选择用于所述语音进行播放的播放语音编码格式:检测到呼叫等待时间大于预设值;接收到拒接通话的指令。
优选地,所述方法包括:在对选择的所述播放语音编码格式对应的语音进行播放期间,接收到接听通话的指令时停止播放所述播放语音编码格式对应的语音。
优选地,在对选择的所述播放语音编码格式对应的语音进行播放之后,还包括:对在通话过程中主叫的留言信息进行录制;播放所述留言信息。
根据本发明的另一方面,还提供了一种语音播放的装置,包括:确定模块,设置为确定用于进行语音录制的至少两个语音编码格式;第一录制模块,设置为根据确定的所述至少两个语音编码格式对语音进行录制;选择模块,设置为从录制的语音对应的所述至少两个语音编码格式中选择用于所述语音进行播放的播放语音编码格式;第一播放模块,设置为对选择的所述播放语音编码格式对应的语音进行播放。
优选地,所述装置还包括:储存模块,设置为对根据所述至少两个语音编码格式进行录制的语音,采用携带所述语音编码格式的信息的方式进行命名并存储。
优选地,所述装置还包括以下模块之一:检测模块,设置为检测到呼叫等待时间大于预设值;接收模块,设置为接收到拒接通话的指令。
优选地,所述装置包括:停止播放模块,设置为在对选择的所述播放语音编码格式对应的语音进行播放期间,接收到接听通话的指令时停止播放所述播放语音编码格式对应的语音。
优选地,所述装置还包括:第二录制模块,设置为对在通话过程中主叫的留言信息进行录制;第二播放模块,设置为播放所述留言信息。
通过本发明,采用确定用于进行语音录制的至少两个语音编码格式,根据确定的所述至少两个语音编码格式对语音进行录制,解决了相关技术中由于语音录制方式不能为不同通话编码格式提供对应的语音文件,导致语音文件播放失败的问题,通过录制多种编码格式的录音文件,使得能够为不同语音编码格式提供对应的编码格式录音文件。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的语音播放的方法流程图;
图2是根据本发明优选实施例的语音播放的方法流程图一;
图3是根据本发明优选实施例的语音播放的方法流程图二;
图4是根据本发明实施例的语音播放装置的框图;
图5是根据本发明优选实施例的语音播放装置的框图一;
图6是根据本发明优选实施例的语音播放装置的框图二;
图7是根据本发明优选实施例的语音播放装置的框图三;
图8是根据本发明优选实施例的语音播放装置的框图四;
图9是根据本发明优选实施例的播放录制语音的方法流程图一;
图10是根据本发明优选实施例的播放录制语音的方法流程图二。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
本发明实施例中的语音播放的方法,图1是根据本发明实施例的语音播放的方法流程图,如图1所示,该方法包括以下步骤:
步骤S102,确定用于进行语音录制的至少两个语音编码格式;
步骤S104,根据确定的该至少两个语音编码格式对语音进行录制。
步骤S106,从录制的语音对应的该至少两个语音编码格式中选择用于该语音进行播放的播放语音编码格式;
步骤S108,对选择的该播放语音编码格式对应的语音进行播放。
通过上述步骤,确定至少两个语音编码格式,可以根据终端的状态选择并确定可能涉及的语言编码格式,对于终端完全不会涉及到的语言编码格式,可以不进行选择,这样可以避免录制不会用到的编码格式对应的语音文件,也可以节约储存空间,该语言编码格式是用于进行语音录制的。
根据确定的至少两个语音编码格式通过多线程对语音进行录制,该录制的方法有很多种,例如:可以一次录制一种编码格式的语音文件,通过多次录制,完成不同便面格式的语音文件的录制;为了达到更好的效果,作为一种较优的实施方式,可以通过录制多种编码格式的录音文件,上述两种方式仅仅是实施方式而已,其他能达到相同效果的实施方式也在本发明的保护范围之中。从录制的语音对应的至少两个语音编码格式中选择用于语音进行播放的播放语音编码格式;对选择的播放语音编码格式对应的语音进行播放,解决了相关技术中由于语音录制方式不能为不同通话编码格式提供对应的语音文件,导致语音文件播放失败的问题,使得能够为不同语音编码格式提供对应的编码格式录音文件。
图2是根据本发明优选实施例的语音播放的方法流程图一,如图2所示,该方法还包括:
步骤S105,对根据该至少两个语音编码格式进行录制的语音,采用携带该语音编码格式的信息的方式进行命名并存储,采用携带语音编码格式的信息方式存储只是其中一种储存的格式,也可以不携带,不限于此,播放出来的语音内容是一样的。比如数字形式XX-1-Y.AMR 1在代码中定义了1代码某种格式,比如#define 1CDMAEVRC。当有需要拒接的来电时,从储存的多个编码格式的语言文件中选出对应于该来电通话的编码格式的语音文件,使得在播放录音文件时,能够根据语音通话的编码格式播放对应的录音文件,从而保证录音文件的传输与播放。
作为一种优选的方式,在检测到呼叫等待时间大于预设值,或接收到拒接通话的指令的情况下,从录制的语音对应的至少两个语音编码格式中选择用于语音进行播放的播放语音编码格式,从而使得播放的语音编码格式与录制的语音编码格式相对应,从而保证语音文件的传输与播放。
作为一种优选的方式,在对选择的播放语音编码格式对应的语音进行播放期间,如果接收到接听通话的指令时,则停止正在播放的播放语音编码格式对应的语音文件。
图3是根据本发明优选实施例的语音播放的方法流程图二,如图3所示,该方法还包括:
步骤S110,对在通话过程中主叫的留言信息进行录制;
步骤S112,播放该留言信息。
通过上述步骤,在播放语音编码格式对应的语音文件播放结束之后,可以对通话过程中的主叫的留言信息进行录制,并播放录制后的留言信息,从而在不方便接听来电的情况下,了解注解呼叫的目的,提高了用户体验。
本发明实施例的一种语音播放的装置,图4是根据本发明实施例的语音播放装置的框图,如图4所示,该装置包括:确定模块42、第一录制模块44、选择模块46、第一播放模块48,下面对各模块进行详细说明。
确定模块42,设置为确定用于进行语音录制的至少两个语音编码格式;
第一录制模块44,设置为根据确定的至少两个语音编码格式对语音进行录制;
选择模块46,设置为从录制的语音对应的至少两个语音编码格式中选择用于该语音进行播放的播放语音编码格式;
第一播放模块48,设置为对选择的播放语音编码格式对应的语音进行播放。
图5是根据本发明优选实施例的语音播放装置的框图一,如图5所示,该装置还包括:储存模块45,设置为对根据该至少两个语音编码格式进行录制的语音,采用携带该语音编码格式的信息的方式进行命名并存储。
图6是根据本发明优选实施例的语音播放装置的框图二,如图6所示,该装置还包括以下模块之一:检测模块62,设置为检测到呼叫等待时间大于预设值;接收模块64,设置为接收到拒接通话的指令。
图7是根据本发明优选实施例的语音播放装置的框图三,如图7所示,该装置包括:停止播放模块410,设置为在对选择的该播放语音编码格式对应的语音进行播放期间,接收到接听通话的指令时停止播放该播放语音编码格式对应的语音。
图8是根据本发明优选实施例的语音播放装置的框图四,如图8所示,该装置还包括:
第二录制模块412,设置为对在通话过程中主叫的留言信息进行录制;
第二播放模块414,设置为播放该留言信息。
下面结合优选实施例进行说明,以下优选实施例结合了上述实施例及其优选实施方式。
本实施例中的录音录制方法,包括:通过选择确定录音格式,根据选择的录音格式,启动多线程进行分别录制,在一次录制中同时生成多个格式的录音文件,录音结束后对生成的多个格式的录音文件进行储存。当收到来电,接收到用户根据实际需求选择语音拒接的指令,或来电等待的时间超过预设值之后,读取语音通话信令Service Connect中的语音编码格式,根据编码格式直接通过空中接口直接给对方播放录音。关闭本地手机耳机与mic,播放完毕挂断电话,或进行对方通话录制,等到录音结束,结束通话。
在用户录制语音留言时可以在一次录制中同时生成多个格式的录音文件。在不同的网络环境下动态选择播放,兼容不同的语音编码格式。从用户角度出发,解决了用户在使用中遇到的实际问题,在收到来电时提供给用户不同的选择,给主叫播放不同的语音,在播放语音的同时用户可以接听通话,提高了用户体验。通过一次录制多种网络格式的录音文件,减少用户繁琐操作,与专业技术知识限制;根据网络通话协商的语音信令,动态选择播放的录音文件播放,以免格式错误无法通过网络传输,对方无法听到声音问题。UI上提供给用户多个选择,通过网络播放不同的录音文件,避免了单一提示。
一种较佳实施方式中,本实施例以CDMA网络为例进行介绍,GSM,WCDMA等亦如此。
CDMA网络的通话语音编码格式有如下几种:EVRC(Enhanced Variable Rate Codec),QCELP(8k),QCELP(13k),EVRC-NB(EVRC-B)(4GV Narrowband voice)、EVRC-WB和EVRC-NW三种,业务选择分别是SO03,SO68、SO70、SO73。目前现行网络下用到的语音编码格式为EVRC(EVRC 8k voice)与EVRC-NB(4GV),其它格式是在多在试验室中测试使用。
GSM与WCDMA的目前语音编码格式GSM-AMR,AMR WB,详细分为:
MV_AMR_MODE_0475,MV_AMR_MODE_0515,MV_AMR_MODE_0590,MV_AMR_MODE_0670,MV_AMR_MODE_0740,MV_AMR_MODE_1220, MV_AMR_MODE_0660,MV_AMR_MODE_0885,MV_AMR_MODE_1265,MV_AMR_MODE_1425,MV_AMR_MODE_1585,MV_AMR_MODE_1825,
MV_AMR_MODE_1985,MV_AMR_MODE_2305,
MV_AMR_MODE_2385,
录制语音留言方法,以CDMA制式为例,包括:选择语音留言编码格式,默认是EVRC和EVRC-NB。其中,用户可以选择多个不同的编码格式,CDMA可以采用默认的语音编码格式EVRC和4GV。根据用户选择启动多线程进行录制。其中,根据选择的编码格式,start thread 1,start thread 2,……start thread N。N为用户的选择格式个数。启动N个线程分不同格式录制。结束录制,保存为不同的文件名区分。其中,录音文件名命名的一种格式CDMA-SOXX-YY.qcp但是不局限于此。比如CDMA-SO64-record1.qcp XX表示语音编码格式,YY为录音文件名。
本实施例中的另一种实施方式,以WCDMA为例,采用边录制边保存的方式,包括:选择语音留言编码格式,其中,用户可以选择多个不同的编码格式,WCDMA可以采用默认的语音编码格式MV_AMR_MODE_1220,MV_AMR_MODE_1585,但不局限于此。命名录音文件名称与保存,其中,根据选择的编码格式,命名不同的文件并保存。录音文件名命名的一种格式GSM-XX-YY.amr其中XX为录音编码格式,YY为录音文件名。启动多线程写文件,其中,根据选择的编码格式,启动多线程按不同格式录制,并保存。录音结束
下面对留言内容进行举例:
正在开会,不方便接电话,一会儿打给你;
正在上课,不方便接电话,一会儿打给你;
现在无法接听;
……
留言不局限与此。
图9是根据本发明优选实施例的播放录制语音的方法流程图一,如图9所示,设置了自动留言拒接来电拒接时,播放录制的语音包括以下步骤:
步骤S902,来电,读取来电接听等待时间(如20秒),其中,用户可以设置未接来电的最长时间,不设置的情况下默认为20秒。
步骤S904,超时机主没有接听,读取网络侧语音信令Forward Channel Traffic Message中的Service Connect Msgservice_option=3(0x3)(EVRC 8K Voice)编码格式,本次语音编码格式为SO03。则读取对应编码格式的录音文件CDMA-SO03-record1.qcp,播放提示音则进入语音留言提示播放。同时自动关闭mic与耳机。
步骤S906,判断录音是否播放完毕,如果播放完毕进入步骤910,否则进入步骤908。
步骤S908,用户在此时间内进行接听,停止播放录音,自动打开mic与耳机,进行正常通话。
步骤S910,结束通话。
图10是根据本发明优选实施例的播放录制语音的方法流程图二,如图10所示,用户手动选择拒接语音拒接来电时,播放录制的语音包括以下步骤:
步骤S1002,当有来电时,用户在来电界面上操作,选中要给对方播放的拒接留言语音文件,读取留言名称,标记为A。
步骤S1004,读取网络侧语音编码格式为XX,读取对应编码格式的录音文件CDMA-SOXX-A.qcp,播放提示音,留言播放结束后自动结束通话,在播放过程中自动关闭mic与耳机。
步骤S1006,判断录音是否播放完毕,如果播放完毕进入步骤S1010,否则进入步骤S1008。
步骤S1008,用户在此时间内进行接听,自动打开mic与耳机,进行正常通话。
步骤S1010,结束通话。
通过上述步骤,由于储存了多种编码格式的语音编码文件,在用户不方便接听来电时,通过确定来电通话的语音编码格式确定播放语音的编码格式,从储存的多种编码格式的语音文件中获取与该播放的语音编码格式对应的语音文件,并播放该语音文件,由于储存的语音文件与通话的语音编码格式是相同的,确保了该语音文件的传输与播放,提高了用户体验。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所 组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
附图说明
如上所述,通过上述实施例及优选实施方式,不仅解决了相关技术中由于语音录制方式不能为不同通话编码格式提供对应的语音文件,导致语音文件播放失败的问题,通过录制多种编码格式的录音文件,使得能够为不同语音编码格式提供对应的编码格式录音文件。

Claims (10)

  1. 一种语音播放的方法,包括:
    确定用于进行语音录制的至少两个语音编码格式;
    根据确定的所述至少两个语音编码格式对语音进行录制;
    从录制的语音对应的所述至少两个语音编码格式中选择用于所述语音进行播放的播放语音编码格式;
    对选择的所述播放语音编码格式对应的语音进行播放。
  2. 根据权利要求1所述的方法,其中,在根据确定的所述至少两个语音编码格式对语音进行录制之后,还包括:
    对根据所述至少两个语音编码格式进行录制的语音,采用携带所述语音编码格式的信息的方式进行命名并存储。
  3. 根据权利要求1所述的方法,其中,在满足以下条件至少之一的情况下,从录制的语音对应的所述至少两个语音编码格式中选择用于所述语音进行播放的播放语音编码格式:
    检测到呼叫等待时间大于预设值;
    接收到拒接通话的指令。
  4. 根据权利要求1-3中任一项所述的方法,其中,所述方法包括:
    在对选择的所述播放语音编码格式对应的语音进行播放期间,接收到接听通话的指令时停止播放所述播放语音编码格式对应的语音。
  5. 根据权利要求1-3中任一项所述的方法,其中,在对选择的所述播放语音编码格式对应的语音进行播放之后,还包括:
    对在通话过程中主叫的留言信息进行录制;
    播放所述留言信息。
  6. 一种语音播放的装置,包括:
    确定模块,设置为确定用于进行语音录制的至少两个语音编码格式;
    第一录制模块,设置为根据确定的所述至少两个语音编码格式对语音进行录制;
    选择模块,设置为从录制的语音对应的所述至少两个语音编码格式中选择用于所述语音进行播放的播放语音编码格式;
    第一播放模块,设置为对选择的所述播放语音编码格式对应的语音进行播放。
  7. 根据权利要求6所述的装置,其中,所述装置还包括:
    储存模块,设置为对根据所述至少两个语音编码格式进行录制的语音,采用携带所述语音编码格式的信息的方式进行命名并存储。
  8. 根据权利要求6所述的装置,其中,所述装置还包括以下模块之一:
    检测模块,设置为检测到呼叫等待时间大于预设值;
    接收模块,设置为接收到拒接通话的指令。
  9. 根据权利要求6-8中任一项所述的装置,其中,所述装置包括:
    停止播放模块,设置为在对选择的所述播放语音编码格式对应的语音进行播放期间,接收到接听通话的指令时停止播放所述播放语音编码格式对应的语音。
  10. 根据权利要求6-8中任一项所述的装置,其中,所述装置还包括:
    第二录制模块,设置为对在通话过程中主叫的留言信息进行录制;
    第二播放模块,设置为播放所述留言信息。
PCT/CN2014/086161 2014-08-11 2014-09-09 语音播放的方法及装置 WO2015154375A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410392772.4 2014-08-11
CN201410392772.4A CN105338168A (zh) 2014-08-11 2014-08-11 语音播放的方法及装置

Publications (1)

Publication Number Publication Date
WO2015154375A1 true WO2015154375A1 (zh) 2015-10-15

Family

ID=54287156

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086161 WO2015154375A1 (zh) 2014-08-11 2014-09-09 语音播放的方法及装置

Country Status (2)

Country Link
CN (1) CN105338168A (zh)
WO (1) WO2015154375A1 (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574866A (zh) * 2003-06-18 2005-02-02 三洋电机株式会社 移动通信终端
US20050159143A1 (en) * 2004-01-16 2005-07-21 Samsung Electronics Co., Ltd. Mobile communication terminal and automatic answering method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004120431A (ja) * 2002-09-26 2004-04-15 Toshiba Corp 移動通信端末
CN100454937C (zh) * 2006-02-27 2009-01-21 宇龙计算机通信科技(深圳)有限公司 移动通信终端的通话录音方法
CN101132437B (zh) * 2007-09-24 2010-12-08 宇龙计算机通信科技(深圳)有限公司 一种多待机终端及其3g视频电话自动应答方法及装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574866A (zh) * 2003-06-18 2005-02-02 三洋电机株式会社 移动通信终端
US20050159143A1 (en) * 2004-01-16 2005-07-21 Samsung Electronics Co., Ltd. Mobile communication terminal and automatic answering method thereof

Also Published As

Publication number Publication date
CN105338168A (zh) 2016-02-17

Similar Documents

Publication Publication Date Title
US9357065B2 (en) System, method and apparatus for transmitting audio signals over a voice channel
US8406390B1 (en) Pausing a live teleconference call
US10574827B1 (en) Method and apparatus of processing user data of a multi-speaker conference call
CN105491252A (zh) 一种切换彩铃的方法装置
CN105100394A (zh) 在呼叫方侧替换电话待机音乐的方法和装置
GB2560441B (en) Automatically delaying playback of a voice message at a captioning device
KR101243893B1 (ko) 전자 기기, 정보 처리 프로그램을 기억한 기억 매체 및 정보 처리 방법
WO2012065567A1 (zh) 文本信息的转换方法及装置
CN104580772A (zh) 一种基于音频的电话会议系统会议纪要推送方法
US20140315520A1 (en) Recording and playing back portions of a telephone call
US8412163B2 (en) Local voicemail for mobile devices
WO2015154375A1 (zh) 语音播放的方法及装置
JP2017111339A (ja) 音声再生装置、音声再生方法及びプログラム
JP2009290468A (ja) 通話録音装置及び方法
WO2014190816A1 (zh) 实现语音留言功能的方法及家庭网关
JP6367592B2 (ja) 通話録音システムおよび通話音声移行方法
US8917833B1 (en) System and method for non-privacy invasive conversation information recording implemented in a mobile phone device
JP2008518523A5 (zh)
US20120207289A1 (en) Method and system for recording telephone conversations placed on hold
KR100700142B1 (ko) 이동통신 단말기에서 음악감상중 호 발생시 음악음량의자동조절방법 및 저장된 음악을 통화배경음으로 사용하는방법
EP2282500B1 (en) Method and system for recording telephone conversations placed on hold
WO2018130100A1 (zh) 一种语音留言方法及终端
CN104158987A (zh) 一种提升人工话务系统服务质量的方法
CN112954577B (zh) 评测设备和耳机评测实时展示方法
WO2016033869A1 (zh) 一种回铃音实现方法、装置和计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14888644

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14888644

Country of ref document: EP

Kind code of ref document: A1