WO2017054496A1 - Method and apparatus for sending and acquiring text information - Google Patents

Method and apparatus for sending and acquiring text information Download PDF

Info

Publication number
WO2017054496A1
WO2017054496A1 PCT/CN2016/084777 CN2016084777W WO2017054496A1 WO 2017054496 A1 WO2017054496 A1 WO 2017054496A1 CN 2016084777 W CN2016084777 W CN 2016084777W WO 2017054496 A1 WO2017054496 A1 WO 2017054496A1
Authority
WO
WIPO (PCT)
Prior art keywords
text information
switch
code source
code
user
Prior art date
Application number
PCT/CN2016/084777
Other languages
French (fr)
Chinese (zh)
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 WO2017054496A1 publication Critical patent/WO2017054496A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/487Arrangements for providing information services, e.g. recorded voice services or time announcements
    • H04M3/493Interactive information services, e.g. directory enquiries ; Arrangements therefor, e.g. interactive voice response [IVR] systems or voice portals

Definitions

  • the present application relates to, but is not limited to, the field of network technologies, and in particular, a method and apparatus for transmitting text information and acquiring text information.
  • the Interactive Voice Response (IVR) in the intelligent network is a basic telecommunications infrastructure service.
  • IVR Interactive Voice Response
  • telecommunications industry it is mainly used to provide self-service services such as self-service call inquiry and self-service recharge.
  • banking industry it is mainly used for self-service telephone banking, including self-service such as self-service account details inquiry and self-service transfer.
  • self-service such as self-service booking and self-service change.
  • the mobile phone, the fixed telephone or the software terminal user dials the IVR access code provided by the service provider to initiate a service request, and the IVR service and the user play the voice prompt through the IVR service and the user presses the button operation to complete the interaction.
  • the IVR service is also connected to the service provider's database, and the data in the database is queried and updated according to the user's operation.
  • the related art fixed telephones and mobile phones only provide basic communication functions, and the keyboard usually has only 12 buttons of numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and * and #. .
  • the user can only dial the number through these buttons, and the user can only input by pressing the button when interacting with the IVR service.
  • the basic functionality of a phone is seen as a service to the smartphone operating system, and any developer of a smartphone application can call this service during the application's writing process.
  • the smartphone operating system instructs the smartphone's baseband module or modem to complete the operation through an instruction set (eg, an AT command set).
  • an instruction set eg, an AT command set
  • the terminal can only input by the user through the button to interact with the traditional telephone. The user cannot upload any text information to the IVR except for input through the button.
  • the embodiment of the invention provides a method and a device for transmitting text information and acquiring text information, which are used to solve the problem that when the terminal uses the IVR service of the intelligent network in the related art, the user can only input by the button to perform interaction, but cannot The problem of uploading any text message to the IVR.
  • a method of transmitting text information comprising:
  • the code source is sent to the switch to cause the switch to convert the code source into a string of a specified format and send the string to an interactive voice response system.
  • the step of acquiring the text information input by the user when the specified audio signal is detected includes:
  • the step of performing character encoding on the text information to generate a code source transmitted to the switch includes:
  • the subtext information is encoded as a code source corresponding to each subtext information.
  • the step of sending the code source to the switch includes:
  • Audio modulation is performed for each code source, and the audio modulated code source is transmitted to the switch.
  • the step of sending the code source to the switch includes:
  • An end code is added to the last code source, and a code source to which the end code is added is sent to the switch, wherein the end code is set to inform the interactive voice response system to complete the transmission of the text information.
  • a method of obtaining text information including:
  • the character string sent by the switch is decoded into text information input by the user on the terminal.
  • the method before the step of receiving the character string sent by the switch, the method further includes:
  • the generated play command and the number-receiving command are sent to the interactive machine.
  • the step of decoding the string sent by the switch into text information input by the user on the terminal includes:
  • the application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • an apparatus for transmitting text information including:
  • a protocol processing module configured to obtain text information input by the user when the specified audio signal is detected
  • An encoding module configured to perform character encoding on the text information to generate a code source transmitted to the switch;
  • a baseband module configured to send the code source to the switch to cause the switch to convert the code source into a string of a specified format and to transmit the string to an interactive voice response system.
  • an apparatus for obtaining text information including:
  • a receiving module configured to receive a string sent by the switch
  • the decoding module is configured to decode the character string sent by the switch into text information input by the user on the terminal.
  • a method for transmitting text information includes: acquiring text information input by a user when detecting a specified audio signal; and performing character encoding on the text information,
  • the code source is sent to the switch to generate a code source that is transmitted to the switch.
  • the switch converts the code source into a string of the specified format and sends the string to the interactive voice response system.
  • the interactive voice response system decodes the string sent by the switch into text information.
  • the method for obtaining text information provided by the embodiment of the present invention changes the related art IVR service only supports the input mode of the digital password, and supports the sent text, can support the strong password, and ensures the user's account security.
  • FIG. 1 is a flowchart of a method for transmitting text information according to an embodiment of the present invention
  • FIG. 2 is a signal flow diagram of each module in a terminal according to an embodiment of the present invention.
  • FIG. 3 is a signal flow diagram between a terminal, a switch, and an IVR service according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for acquiring text information according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for transmitting text information according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for acquiring text information according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an interactive voice response system according to an embodiment of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the embodiment of the present invention provides a text message.
  • the method comprises: acquiring text information input by a user when detecting the specified audio signal; character encoding the text information to generate a code source transmitted to the switch; and transmitting the code source to the switch.
  • the switch converts the code source into a string of the specified format and sends the string to the interactive voice response system.
  • the interactive voice response system decodes the string sent by the switch into text information.
  • FIG. 1 is a flowchart of a method for sending text information according to an embodiment of the present invention, where the method includes:
  • the method for transmitting text information in the embodiment of the present invention is applied to an IVR system, and the IVR system may include a terminal, a switch, and an IVR service, and the foregoing method is applied to the terminal.
  • the terminal dials the IVR access code through the IVR calling software, and the baseband module in the terminal initiates a call to the switch, and the switch triggers the IVR service, and the IVR service generates a play command and a receive command, wherein the play command It is used to instruct the interactive machine to play the specified audio signal on the specified audio link.
  • the specified audio signal here may be a special dual-tone multi-frequency (DTMF) signal with a low frequency of 600 Hz and a high frequency of 1800 Hz superposition. Or use other coding methods for sonic coding.
  • DTMF dual-tone multi-frequency
  • the number receiving instruction is used to instruct the switch to receive the code source reported by the terminal.
  • the terminal After the terminal reports the request to the IVR service, the terminal detects whether the specified audio signal is received. If the specified audio signal is received, the terminal enables the text input interface, and obtains the text information input by the user through the text input interface, and the terminal pairs the text. The information is divided and encoded to obtain a DTMF code. The terminal sends the DTMF code to the switch. The switch picks up the DTMF code and converts the DTMF code into a corresponding string. Finally, the switch sends the string to the IVR service. The IVR service will The string is decoded into the text information entered by the user on the terminal.
  • the process of transmitting text information implemented in the terminal is as shown in FIG. 2, and the audio decoding module on the terminal always samples and analyzes the audio of the call, after the switch plays the specified audio signal, the terminal The audio decoding module immediately detects the specified audio signal and sends a message to the protocol processing module in the terminal.
  • the protocol processing module on the terminal After the protocol processing module on the terminal receives the message of the audio encoding module, the protocol processing module starts the protocol control process, and then enables the text input interface to obtain the text information input by the user through the text input interface.
  • the protocol processing module After the protocol processing module finishes receiving the text information, the protocol processing module divides the received text information into sub-text information of a specified number of received length according to the length of the received number specified in the IVR service.
  • the specified length of the received number may be Set to 20, that is, the IVR can receive 5 characters at a time, and each character includes 4 DTMF codes.
  • the length of the receiving number can be adjusted according to the actual situation. The length of the receiving number is not limited in the embodiment of the present invention.
  • the protocol processing module In the process of dividing the text information by the protocol processing module, the protocol processing module encodes each divided sub-text information, thereby obtaining a code source corresponding to each sub-text information, and performing audio modulation on the code source, and The audio modulated code source is sent to the switch.
  • the user enters the text "Hello” on the terminal, and the corresponding Unicode code is "4F60597D".
  • the Unicode code of "you” is 4F60
  • the Unicode code of "good” is 597D. Since DTMF encoding does not have E and F, the encoder converts E to *, F to #, and generates DTMF code "4#60597D".
  • the encoding module on the terminal sends the final DTMF code to the baseband module through the operating system of the terminal.
  • the baseband module converts the DTMF code into an audio signal and inputs it into the audio link.
  • the switch will pick up the DTMF code.
  • the switch will detect and decode the DTMF code one by one.
  • the switch reports the DTMF code to the IVR service. 4#60597D", the final IVR service will decode the DTMF code as the text message "Hello”.
  • the playback and the receiving signal are sent to the switch again, and the terminal IVR calling software is notified to send the subsequent text. Since the text message is being sent at this time, the terminal protocol processing module will continue to send the remaining text segments to the encoder module. If the text segment has been sent, the terminal protocol processing module should send an end code to the encoder module, such as "########" in Figure 3. If the length of the character encoding in the last text segment is less than the length of the IVR service once received, it can be sent after the encoding is added with #fill. After the transmission is completed, the IVR service can be restored to the normal IVR self-service mode, the notification is broadcast to the user and the information input by the user through the button is received.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 4 is a flowchart of a method for acquiring text information according to an embodiment of the present invention, where the method includes:
  • S401 Receive a string sent by a switch.
  • S402. Decode a character string sent by the switch into text information input by the user on the terminal.
  • the switch when the switch receives a request to enable sending of text information, the switch generates a trigger instruction, and the triggering instruction triggers the IVR service to obtain text information.
  • the IVR service will generate a play command and a receive command, where the play command is set to instruct the switch to play the specified audio signal on the designated audio link, and the receive command is set to instruct the switch to receive the code source reported by the terminal.
  • the IVR service sends a play command and a receive command to the switch.
  • the switch After receiving the play command and the number receiving command, the switch will play the specified audio signal on the designated link, so that the audio decoding module on the terminal can detect the specified audio signal, and send the text information based on the specified audio signal.
  • the code source generated by the encoding.
  • the interactive machine Since the interactive machine receives the receiving number command, the interactive machine will receive the code source based on the receiving number command, and the receiving length can be set on the switch. After the switch fills up a set of DTMF codes, the switch converts a set of DTMF codes into strings. The switch sends the string to the IVR service, and the IVR service decodes the received string to obtain partial text information. In the decoding process, the decoder of the IVR service detects whether there is an end code in the string. If there is no end code, the IVR service will continue to issue a play command, so that the terminal continues to report the text information, and the interactive machine fills up a group of DTMFs.
  • the subsequent string is sent, and the decoder in the IVR service decodes the string to obtain subsequent text information. If the decoder decodes the end code in the subsequent string, the IVR service will end receiving, so The IVR service completes receiving text information from the terminal.
  • the IVR service instructs the switch to play a specified audio signal
  • the voice content prompts the user to enter a password
  • the switch plays the specified audio signal
  • the audio decoding module of the user's smart phone IVR calling software After the audio decoding module of the user's smart phone IVR calling software detects the specified audio signal, the audio decoding module will inform the protocol processing module 501 that the protocol processing module 501 on the smart phone sends the information to the calling software of the smart phone, thereby making the smart phone Enable the text input interface.
  • the smartphone After obtaining the strong password input by the user, the protocol processing module on the smart phone will split the text.
  • the reason for the splitting here is that the maximum number of digits can be set in the IVR service, so that the protocol processing module on the smart phone needs to put the text.
  • the maximum number of received numbers set on the IVR service is 20, and 5 characters can be received at a time, and 4 DTMF codes are used for each character.
  • the smartphone divides the user input "qeER@123" into two text segments, "qwER@” and "123". And first send "qwER@”.
  • the encoding module in the smart phone encodes "qwER@” as "00710077004500520040", where "q” is encoded as “0071”, “w” is encoded as “0077”, “E” is encoded as “0045”, and “R” is encoded as "0052”, "@” code is "0040".
  • the baseband module sent to the smartphone then performs DTMF tone modulation.
  • the switch fills the 20-bit DTMF code once and sends it to the IVR service for decoding to obtain the text "qwER@".
  • the IVR service does not receive the end symbol and continues to instruct the switch to play the specified audio signal.
  • the audio decoder module in the smartphone notifies the protocol processing module after detecting the specified audio signal.
  • the protocol processing module in the smartphone continues to send the remaining text "123" to the encoding module.
  • the encoding module first encodes "123” as “003100320033", where "1" is encoded as “0031”, “2” is encoded as “0032”, and "3” is encoded as “0033”. Then add the terminator to generate the final code "003100320033########". Finally, the baseband module sent to the smart phone performs DTMF tone modulation.
  • the switch fills the 20-bit DTMF code once and sends it to the IVR service for decoding, and obtains the text "123", and detects the end symbol, and ends the receiving process. Then, the two received texts are merged into "qwER@123" and sent to the relevant network element or program for authentication.
  • the method for obtaining text information changes the IVR service of the related technology to only support the input mode of the digital password, and supports the transmitted text, which can support strong passwords and protect the user's account security.
  • Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • FIG. 5 is a schematic structural diagram of an apparatus for transmitting text information according to an embodiment of the present invention.
  • the protocol processing module 501 is configured to obtain text information input by the user when the specified audio signal is detected;
  • the encoding module 502 is configured to perform character encoding on the text information to generate a code source that is transmitted to the switch;
  • a baseband module 503 is arranged to send the code source to the switch to cause the switch to convert the code source into a character string of a specified format and send the character string to the interactive voice response system.
  • the protocol processing module 501 includes:
  • An audio decoding module configured to receive a specified audio signal from the interactive machine and to inform the calling software in the terminal to enable the text input interface based on the specified audio signal.
  • the calling software is set to enable the text input interface and obtain the text information input by the user through the text input interface.
  • the encoding module 502 is configured to divide the text information into sub-text information of a specified length according to the length of the received number specified in the interactive voice response system;
  • the subtext information is encoded as a code source corresponding to each subtext information.
  • the baseband module 503 is configured to perform audio modulation on each code source, and send the audio coded code source to the switch.
  • the encoding module 502 is configured to add an end code to the last code source, and send a code source to which the end code is added to the switch, where the end code is set to The interactive voice response system is informed to complete the transmission of the text message.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • FIG. 6 is a schematic structural diagram of an apparatus for acquiring text information according to an embodiment of the present invention. :
  • the receiving module 601 is configured to receive a string sent by the switch
  • the decoding module 602 is configured to decode the character string sent by the switch into text information input by the user on the terminal.
  • the decoding module 602 is configured to decode the character string sent by the switch, and detect whether an end code exists in the character string; if there is an end code, determine to complete the sending.
  • Text information the transmitted text information includes text information input by the user on the terminal.
  • Embodiment 5 is a diagrammatic representation of Embodiment 5:
  • FIG. 7 is a schematic structural diagram of an interactive voice response system according to an embodiment of the present invention.
  • the system includes: an interactive voice response service 701, a terminal 702, and a switch 703. ,
  • the interactive voice response service 701 is configured to generate a play command and a receive command when receiving the trigger instruction for opening the text upload, and send the generated play command and the receive command to the switch 703, and receive the switch 703 by the switch 703. a string sent, the character string sent by the switch 703 being decoded into text information input by the user on the terminal, wherein the play command is set to instruct the switch 703 to play the specified audio signal on the designated audio link, The number receiving instruction is set to instruct the switch 703 to receive the code source sent by the terminal;
  • the terminal 702 is configured to acquire text information input by the user when the specified audio signal is detected; perform character encoding on the text information to generate a code source transmitted to the switch 703; and send the code source to the switch 703 So that the switch 703 converts the code source into a character string of a specified format, and sends the character string to the interactive voice response system;
  • the switch 703 is configured to: when receiving the play command and the receive command, play the specified audio signal based on the play command, and receive the dual tone multi-frequency DTMF code uploaded by the terminal 702, convert the DTMF code into a string, and upload the string to the
  • the voice response service 701 is interactively configured to cause the interactive voice response service 701 to decode the obtained character string to obtain text information.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by an integrated circuit to implement its corresponding function, It can be implemented in the form of a software function module, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function.
  • Embodiments of the invention are not limited to any specific form of combination of hardware and software.
  • the present application discloses a method and device for transmitting text information, and a method and device for acquiring text information.
  • the method for transmitting text information includes: acquiring text information input by a user when detecting a specified audio signal; Character encoding is performed to generate a code source that is transmitted to the switch; the code source is sent to the switch.
  • the switch converts the code source into a string of the specified format and sends the string to the interactive voice response system.
  • the interactive voice response system decodes the string sent by the switch into text information.
  • the terminal transmits text information to the IVR, thereby making the IVR easier to use and efficient, and expanding the function of the IVR service.

Abstract

Disclosed are a method and apparatus for sending text information and a method and apparatus for acquiring text information. The method for sending text information comprises: when a specified audio signal is detected, acquiring text information input by a user; performing character encoding on the text information, so as to generate a code source to be transmitted to a switch; and sending the code source to the switch. The switch converts the code source into a character string of a specified format and sends the character string to an interactive voice response system, and finally, the interactive voice response system decodes the character string sent by the switch into text information. By means of the method, a terminal can send text information to an IVR, thereby making the IVR more usable and efficient, and extending the function of an IVR service.

Description

一种发送文本信息、获取文本信息的方法及装置Method and device for transmitting text information and acquiring text information 技术领域Technical field
本申请涉及但不限于网络技术领域,特别是一种发送文本信息、获取文本信息的方法及装置。The present application relates to, but is not limited to, the field of network technologies, and in particular, a method and apparatus for transmitting text information and acquiring text information.
背景技术Background technique
智能网中的交互语音应答系统(Interactive Voice Response,简称:IVR)是一种应用领域广泛的电信基础服务。在电信业中主要用于为用户提供自助话费查询、自助充值等自助服务。在银行业中主要用于自助电话银行业务,其中包括自助账户明细查询、自助转账等自助服务。在交通业中主要用于自助订票、自助改签等自助服务。上述自助服务,由手机、固定电话或软件终端用户拨打服务提供方所提供的IVR接入码来发起服务请求,IVR业务与用户之间通过IVR业务播放语音提示和用户按下按键操作完成交互。IVR业务同时与服务提供者的数据库进行连接,根据用户的操作对数据库中的数据进行查询和更新。The Interactive Voice Response (IVR) in the intelligent network is a basic telecommunications infrastructure service. In the telecommunications industry, it is mainly used to provide self-service services such as self-service call inquiry and self-service recharge. In the banking industry, it is mainly used for self-service telephone banking, including self-service such as self-service account details inquiry and self-service transfer. In the transportation industry, it is mainly used for self-service such as self-service booking and self-service change. In the above self-service, the mobile phone, the fixed telephone or the software terminal user dials the IVR access code provided by the service provider to initiate a service request, and the IVR service and the user play the voice prompt through the IVR service and the user presses the button operation to complete the interaction. The IVR service is also connected to the service provider's database, and the data in the database is queried and updated according to the user's operation.
相关技术的固定电话、手机仅提供了基本的通讯功能,而且键盘通常只有数字0、1、2、3、4、5、6、7、8、9,以及*号和#号共计12个按钮。用户仅能够通过这些按钮拨打号码,用户在与IVR业务交互时也仅能够通过按键进行输入。对于智能电话来说,电话的基本功能被视为智能电话操作系统的一项服务,任何智能电话应用程序的开发者均可以在应用程序的编写过程中调用这项服务。应用程序向智能电话的操作系统调用电话服务后,智能电话操作系统通过指令集(例如AT指令集)指示智能电话的基带模块或调制解调器完成操作。但目前终端在使用智能网的IVR业务时,只能和传统电话一样由用户通过按键进行输入以进行交互,用户除了通过按键进行输入以外,不能向IVR上传任何文本信息。The related art fixed telephones and mobile phones only provide basic communication functions, and the keyboard usually has only 12 buttons of numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and * and #. . The user can only dial the number through these buttons, and the user can only input by pressing the button when interacting with the IVR service. For smartphones, the basic functionality of a phone is seen as a service to the smartphone operating system, and any developer of a smartphone application can call this service during the application's writing process. After the application invokes the telephony service to the smartphone's operating system, the smartphone operating system instructs the smartphone's baseband module or modem to complete the operation through an instruction set (eg, an AT command set). However, when the terminal uses the IVR service of the intelligent network, the terminal can only input by the user through the button to interact with the traditional telephone. The user cannot upload any text information to the IVR except for input through the button.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求 的保护范围。The following is an overview of the topics detailed in this document. This summary is not intended to limit the claims The scope of protection.
本发明实施例提供了一种发送文本信息、获取文本信息的方法及装置,用以解决相关技术中终端在使用智能网的IVR业务时,只能由用户通过按键进行输入以进行交互,而不能向IVR上传任何文本信息的问题。The embodiment of the invention provides a method and a device for transmitting text information and acquiring text information, which are used to solve the problem that when the terminal uses the IVR service of the intelligent network in the related art, the user can only input by the button to perform interaction, but cannot The problem of uploading any text message to the IVR.
技术方案如下:The technical solutions are as follows:
在本申请的一个方面,提供了一种发送文本信息的方法,包括:In one aspect of the present application, a method of transmitting text information is provided, comprising:
在检测到指定音频信号时,获取用户输入的文本信息;Obtaining text information input by the user when the specified audio signal is detected;
对所述文本信息进行字符编码,以生成传送至交换机的码源;Characterizing the text information to generate a code source transmitted to the switch;
将所述码源发送至所述交换机,以使所述交换机将所述码源转换成指定格式的字符串,并将所述字符串发送至交互语音应答系统。The code source is sent to the switch to cause the switch to convert the code source into a string of a specified format and send the string to an interactive voice response system.
可选地,所述在检测到指定音频信号时,获取用户输入的文本信息的步骤,包括:Optionally, the step of acquiring the text information input by the user when the specified audio signal is detected includes:
在检测到指定音频信号时,启用文本输入界面;Enable text input interface when detecting specified audio signal;
获取用户通过所述文本输入界面输入的所述文本信息。Obtaining the text information input by the user through the text input interface.
可选地,所述对所述文本信息进行字符编码,以生成传送至交换机的码源的步骤,包括:Optionally, the step of performing character encoding on the text information to generate a code source transmitted to the switch includes:
根据所述交互语音应答系统中指定的收号长度,将所述文本信息分割为指定长度的子文本信息;And dividing the text information into sub-text information of a specified length according to the length of the received number specified in the interactive voice response system;
对所述子文本信息进行编码为每个子文本信息对应的码源。The subtext information is encoded as a code source corresponding to each subtext information.
可选地,所述将所述码源发送至所述交换机的步骤,包括:Optionally, the step of sending the code source to the switch includes:
对每个码源进行音频调制,并将音频调制后的码源发送至所述交换机。Audio modulation is performed for each code source, and the audio modulated code source is transmitted to the switch.
可选地,所述将所述码源发送至所述交换机的步骤包括:Optionally, the step of sending the code source to the switch includes:
在最后一个码源中添加结束码,并将添加了结束码的码源发送至所述交换机,其中,所述结束码设置成告知所述交互语音应答系统完成发送文本信息。An end code is added to the last code source, and a code source to which the end code is added is sent to the switch, wherein the end code is set to inform the interactive voice response system to complete the transmission of the text information.
在本申请的一个方面,提供了一种获取文本信息的方法,包括:In one aspect of the present application, a method of obtaining text information is provided, including:
接收由交换机发送的字符串; Receive a string sent by the switch;
对由交换机发送的所述字符串进行解码为用户在终端上输入的文本信息。The character string sent by the switch is decoded into text information input by the user on the terminal.
可选地,在所述接收交换机发送的字符串的步骤之前,所述方法还包括:Optionally, before the step of receiving the character string sent by the switch, the method further includes:
在接收到启用发送文本信息的触发指令时,生成播放指令以及收号指令,其中,所述播放指令设置成指示交换机在指定音频链路上播放指定音频信号,所述收号指令设置成指示所述交换机接收终端发送的码源;And when the triggering instruction for enabling the sending of the text information is received, generating a play instruction and a numbering instruction, wherein the play instruction is set to instruct the switch to play the specified audio signal on the designated audio link, and the receiving command is set to indicate The switch receives the code source sent by the terminal;
将生成的所述播放指令以及收号指令发送至所述交互机。The generated play command and the number-receiving command are sent to the interactive machine.
可选地,所述对交换机发送的所述字符串进行解码为用户在终端上输入的文本信息的步骤,包括:Optionally, the step of decoding the string sent by the switch into text information input by the user on the terminal includes:
对由所述交换机发送的所述字符串进行解码,并检测字符串中是否存在结束码;Decoding the character string sent by the switch, and detecting whether an end code exists in the string;
若存在结束码,则确定完成发送文本信息,所述发送的文本信息包括用户在终端上输入的文本信息。If there is an end code, it is determined that the sending of the text information is completed, and the transmitted text information includes text information input by the user on the terminal.
本申请另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。The application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
在本申请的一个方面,提供了一种发送文本信息的装置,包括:In an aspect of the present application, an apparatus for transmitting text information is provided, including:
协议处理模块,设置成在检测到指定音频信号时,获取用户输入的文本信息;a protocol processing module configured to obtain text information input by the user when the specified audio signal is detected;
编码模块,设置成对所述文本信息进行字符编码,生成传送至交换机的码源;An encoding module configured to perform character encoding on the text information to generate a code source transmitted to the switch;
基带模块,设置成将所述码源发送至所述交换机,以使所述交换机将所述码源转换成指定格式的字符串,并将所述字符串发送至交互语音应答系统。A baseband module configured to send the code source to the switch to cause the switch to convert the code source into a string of a specified format and to transmit the string to an interactive voice response system.
在本申请的一个方面,提供了一种获取文本信息的装置,包括:In an aspect of the present application, an apparatus for obtaining text information is provided, including:
接收模块,设置成接收由交换机发送的字符串;a receiving module configured to receive a string sent by the switch;
解码模块,设置成对由交换机发送的所述字符串进行解码为用户在终端上输入的文本信息。The decoding module is configured to decode the character string sent by the switch into text information input by the user on the terminal.
本发明实施例中提供了一种发送文本信息的方法,该方法包括:在检测到指定音频信号时,获取用户输入的文本信息;对文本信息进行字符编码, 以生成传送至交换机的码源,将码源发送至交换机。交换机将码源转换为指定格式的字符串,并将该字符串发送至交互语音应答系统,最后交互语音应答系统将交换机发送的字符串解码为文本信息。通过该方法实现了终端向IVR发送文本信息,从而使IVR更加易用和高效,扩展了IVR业务的功能。In the embodiment of the present invention, a method for transmitting text information is provided. The method includes: acquiring text information input by a user when detecting a specified audio signal; and performing character encoding on the text information, The code source is sent to the switch to generate a code source that is transmitted to the switch. The switch converts the code source into a string of the specified format and sends the string to the interactive voice response system. Finally, the interactive voice response system decodes the string sent by the switch into text information. The method realizes that the terminal sends text information to the IVR, thereby making the IVR easier to use and efficient, and expanding the function of the IVR service.
本发明实施例提供的获取文本信息的方法,改变了相关技术的IVR业务仅支持数字密码的输入方式,并支持发送的文本,可以支持强密码,保障了用户的账户安全。The method for obtaining text information provided by the embodiment of the present invention changes the related art IVR service only supports the input mode of the digital password, and supports the sent text, can support the strong password, and ensures the user's account security.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例中一种发送文本信息的方法的流程图;1 is a flowchart of a method for transmitting text information according to an embodiment of the present invention;
图2为本发明实施例中终端中各个模块的信号流向图;2 is a signal flow diagram of each module in a terminal according to an embodiment of the present invention;
图3为本发明实施例中终端、交换机、IVR业务之间的信号流向图;3 is a signal flow diagram between a terminal, a switch, and an IVR service according to an embodiment of the present invention;
图4为本发明实施例中一种获取文本信息的方法的流程图;4 is a flowchart of a method for acquiring text information according to an embodiment of the present invention;
图5为本发明实施例中一种发送文本信息的装置的结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for transmitting text information according to an embodiment of the present invention;
图6为本发明实施例中一种获取文本信息的装置的结构示意图;FIG. 6 is a schematic structural diagram of an apparatus for acquiring text information according to an embodiment of the present invention;
图7为本发明实施例中交互语音应答系统的结构示意图。FIG. 7 is a schematic structural diagram of an interactive voice response system according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
实施例一:Embodiment 1:
为了解决相关技术中终端在使用智能网的IVR业务时,只能由用户通过按键进行输入以进行交互,而不能向IVR上传任何文本信息的问题,本发明实施例中提供了一种发送文本信息的方法,该方法包括:在检测到指定音频信号时,获取用户输入的文本信息;对文本信息进行字符编码,以生成传送至交换机的码源;将码源发送至交换机。交换机将码源转换为指定格式的字符串,并将该字符串发送至交互语音应答系统,最后交互语音应答系统将交换机发送的字符串解码为文本信息。通过该方法实现了终端向IVR发送文本 信息,从而使IVR更加易用和高效,扩展了IVR业务的功能。In order to solve the problem in the related art, when the terminal uses the IVR service of the intelligent network, the user can only input by the button to perform the interaction, and the text information cannot be uploaded to the IVR. The embodiment of the present invention provides a text message. The method comprises: acquiring text information input by a user when detecting the specified audio signal; character encoding the text information to generate a code source transmitted to the switch; and transmitting the code source to the switch. The switch converts the code source into a string of the specified format and sends the string to the interactive voice response system. Finally, the interactive voice response system decodes the string sent by the switch into text information. This method realizes that the terminal sends text to the IVR. Information that makes IVR easier to use and more efficient, extending the capabilities of the IVR business.
下面通过附图以及具体实施例对本申请技术方案做详细的说明,应当理解,本发明实施例以及实施例中的具体技术特征只是对本申请技术方案的说明,而不是限定,在不冲突的情况下,本发明实施例以及实施例中的具体技术特征可以相互组合。The technical solutions of the present application are described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific technical features of the embodiments and the embodiments of the present invention are only illustrative of the technical solutions of the present application, and are not limited, in the case of no conflict. The specific technical features in the embodiments of the present invention and the embodiments may be combined with each other.
图1为本发明实施例中一种发送文本信息的方法的流程图,该方法包括:FIG. 1 is a flowchart of a method for sending text information according to an embodiment of the present invention, where the method includes:
S101,在检测到指定音频信号时,获取用户输入的文本信息;S101. Acquire text information input by a user when the specified audio signal is detected;
S102,对文本信息进行字符编码,以生成传送至交换机的码源;S102. Perform character encoding on the text information to generate a code source that is transmitted to the switch.
S103,将所述码源发送至交换机。S103. Send the code source to a switch.
本发明实施例的发送文本信息的方法应用在IVR系统,该IVR系统可以包括终端、交换机以及IVR业务,上述的方法应用到终端中。The method for transmitting text information in the embodiment of the present invention is applied to an IVR system, and the IVR system may include a terminal, a switch, and an IVR service, and the foregoing method is applied to the terminal.
在用户需要发送文本信息时,终端通过IVR呼叫软件拨打IVR接入码,终端中的基带模块将向交换机发起呼叫,交换机触发IVR业务,IVR业务将生成播放指令以及收号指令,其中,播放指令用于指示交互机在指定的音频链路上播放指定音频信号,这里的指定音频信号可以是低频600Hz和高频1800Hz叠加的特殊双音多频(英文:dual-tone multifrequency,简称:DTMF)信号,或者采用其他编码方式声波编码。When the user needs to send text information, the terminal dials the IVR access code through the IVR calling software, and the baseband module in the terminal initiates a call to the switch, and the switch triggers the IVR service, and the IVR service generates a play command and a receive command, wherein the play command It is used to instruct the interactive machine to play the specified audio signal on the specified audio link. The specified audio signal here may be a special dual-tone multi-frequency (DTMF) signal with a low frequency of 600 Hz and a high frequency of 1800 Hz superposition. Or use other coding methods for sonic coding.
当然,收号指令是用于指示交换机接收终端上报的码源。Of course, the number receiving instruction is used to instruct the switch to receive the code source reported by the terminal.
在终端向IVR业务上报了请求之后,终端检测是否接收到指定音频信号,若是接收到指定音频信号时,终端将启用文本输入界面,并通过文本输入界面获取到用户输入的文本信息,终端对文本信息进行分割并编码,得到DTMF码,终端将DTMF码发送至交换机,交换机将拾取DTMF码,并对DTMF码进行转换为对应的字符串,最后,交换机将字符串发送至IVR业务,IVR业务将字符串进行解码为用户在终端上输入的文本信息。After the terminal reports the request to the IVR service, the terminal detects whether the specified audio signal is received. If the specified audio signal is received, the terminal enables the text input interface, and obtains the text information input by the user through the text input interface, and the terminal pairs the text. The information is divided and encoded to obtain a DTMF code. The terminal sends the DTMF code to the switch. The switch picks up the DTMF code and converts the DTMF code into a corresponding string. Finally, the switch sends the string to the IVR service. The IVR service will The string is decoded into the text information entered by the user on the terminal.
在本发明实施例中,在终端实现的发送文本信息的过程如图2所示,终端上的音频解码模块会一直对通话的音频进行采样分析,在交换机播放了指定音频信号之后,终端上的音频解码模块会立即检测到该指定音频信号,并发送消息告知终端中的协议处理模块。 In the embodiment of the present invention, the process of transmitting text information implemented in the terminal is as shown in FIG. 2, and the audio decoding module on the terminal always samples and analyzes the audio of the call, after the switch plays the specified audio signal, the terminal The audio decoding module immediately detects the specified audio signal and sends a message to the protocol processing module in the terminal.
在终端上的协议处理模块接收到音频编码模块的消息之后,该协议处理模块将启动协议控制流程,然后启用文本输入界面,以获取用户通过文本输入界面输入的文本信息。After the protocol processing module on the terminal receives the message of the audio encoding module, the protocol processing module starts the protocol control process, and then enables the text input interface to obtain the text information input by the user through the text input interface.
在协议处理模块完成接收文本信息之后,该协议处理模块将根据IVR业务中指定的收号长度,将接收的文本信息分割为指定的收号长度的子文本信息,这里,指定的收号长度可以设置为20,也就是IVR一次可以接收5个字符,每个字符包括4个DTMF码。当然,这里收号长度可以根据实际的情况进行调整,本发明实施例中并不限定收号长度。After the protocol processing module finishes receiving the text information, the protocol processing module divides the received text information into sub-text information of a specified number of received length according to the length of the received number specified in the IVR service. Here, the specified length of the received number may be Set to 20, that is, the IVR can receive 5 characters at a time, and each character includes 4 DTMF codes. Of course, the length of the receiving number can be adjusted according to the actual situation. The length of the receiving number is not limited in the embodiment of the present invention.
在协议处理模块对文本信息分割的过程中,该协议处理模块将对每个分割成的子文本信息进行编码,从而得到每个子文本信息对应的码源,并对码源进行音频调制,并将音频调制后的码源发送给交换机。In the process of dividing the text information by the protocol processing module, the protocol processing module encodes each divided sub-text information, thereby obtaining a code source corresponding to each sub-text information, and performing audio modulation on the code source, and The audio modulated code source is sent to the switch.
比如,图3所示,用户在终端上输入了“你好”这个文本,对应的Unicode编码为“4F60597D”,其中,“你”的Unicode编码为4F60,“好”的Unicode编码为597D。由于DTMF编码没有E和F,编码器会将E转换为*,F转换为#,生成DTMF码“4#60597D”。终端上的编码模块会把最终的DTMF码通过终端的操作系统发送给基带模块。For example, as shown in Figure 3, the user enters the text "Hello" on the terminal, and the corresponding Unicode code is "4F60597D". Among them, the Unicode code of "you" is 4F60, and the Unicode code of "good" is 597D. Since DTMF encoding does not have E and F, the encoder converts E to *, F to #, and generates DTMF code "4#60597D". The encoding module on the terminal sends the final DTMF code to the baseband module through the operating system of the terminal.
基带模块将DTMF码转换为音频信号输入到音频链路中,交换机将拾取DTMF码,交换机将逐个检测DTMF码并进行解码,在交换机接收到8个DTMF信号后,交换机向IVR业务上报DTMF码“4#60597D”,最后IVR业务将解码DTMF码为文本信息“你好”。The baseband module converts the DTMF code into an audio signal and inputs it into the audio link. The switch will pick up the DTMF code. The switch will detect and decode the DTMF code one by one. After the switch receives 8 DTMF signals, the switch reports the DTMF code to the IVR service. 4#60597D", the final IVR service will decode the DTMF code as the text message "Hello".
在IVR业务解码部分DTMF码为文本信息之后,会再次向交换机发送放音和收号信令,通知终端IVR呼叫软件发送后续文本。由于此时文本信息正在发送,终端协议处理模块会将剩余的文本段继续发送给编码器模块。如果文本段已经发送完成,终端协议处理模块应该向编码器模块发送结束码,例如图3中的“########”。如果在最后一个文本段中字符编码后的长度不足IVR业务一次收号的长度,可以在编码后加#填充后再发送。发送结束后,IVR业务可以恢复到常规的IVR自助服务模式,向用户播送通知并接收用户通过按键输入的信息。After the DTMF code of the IVR service decoding part is the text information, the playback and the receiving signal are sent to the switch again, and the terminal IVR calling software is notified to send the subsequent text. Since the text message is being sent at this time, the terminal protocol processing module will continue to send the remaining text segments to the encoder module. If the text segment has been sent, the terminal protocol processing module should send an end code to the encoder module, such as "########" in Figure 3. If the length of the character encoding in the last text segment is less than the length of the IVR service once received, it can be sent after the encoding is added with #fill. After the transmission is completed, the IVR service can be restored to the normal IVR self-service mode, the notification is broadcast to the user and the information input by the user through the button is received.
实施例二: Embodiment 2:
在本发明实施例中,还提供了一种获取文本信息的方法,图4为本发明实施例中一种获取文本信息的方法的流程图,该方法包括:In the embodiment of the present invention, a method for obtaining text information is provided. FIG. 4 is a flowchart of a method for acquiring text information according to an embodiment of the present invention, where the method includes:
S401,接收由交换机发送的字符串;S401. Receive a string sent by a switch.
S402,将由交换机发送的字符串进行解码为用户在终端上输入的文本信息。S402. Decode a character string sent by the switch into text information input by the user on the terminal.
如图4所示,当交换机接收到启用发送文本信息的请求时,交换机将生成触发指令,通过该触发指令触发IVR业务获取文本信息。As shown in FIG. 4, when the switch receives a request to enable sending of text information, the switch generates a trigger instruction, and the triggering instruction triggers the IVR service to obtain text information.
IVR业务将生成播放指令以及收号指令,这里的播放指令设置成指示交换机在指定音频链路上播放指定音频信号,收号指令设置成指示交换机接收终端上报的码源。IVR业务将播放指令以及收号指令发送至交换机。The IVR service will generate a play command and a receive command, where the play command is set to instruct the switch to play the specified audio signal on the designated audio link, and the receive command is set to instruct the switch to receive the code source reported by the terminal. The IVR service sends a play command and a receive command to the switch.
交换机在接收到播放指令以及收号指令之后,交换机将在指定链路上播放指定音频信号,以使终端上的音频解码模块能够检测到该指定音频信号,并基于指定音频信号发送对文本信息进行编码生成的码源。After receiving the play command and the number receiving command, the switch will play the specified audio signal on the designated link, so that the audio decoding module on the terminal can detect the specified audio signal, and send the text information based on the specified audio signal. The code source generated by the encoding.
由于交互机接收到了收号指令,所以交互机将基于收号指令接收码源,可在交换机上设置收号长度,在交换机收满一组DTMF码之后,交换机将一组DTMF码转换为字符串,交换机将字符串发送给IVR业务,IVR业务对接收到的字符串进行解码,得到部分文本信息。在解码过程中,IVR业务的解码器检测字符串中是否存在结束码,若是不存在结束码,IVR业务将继续下发播放指令,以使终端继续上报文本信息,交互机在收满一组DTMF码之后,再发送后续的字符串,IVR业务中的解码器对字符串进行解码,得到后续的文本信息,若是解码器在后续的字符串中解码出结束码时,IVR业务将结束接收,这样IVR业务完成从终端上接收文本信息。Since the interactive machine receives the receiving number command, the interactive machine will receive the code source based on the receiving number command, and the receiving length can be set on the switch. After the switch fills up a set of DTMF codes, the switch converts a set of DTMF codes into strings. The switch sends the string to the IVR service, and the IVR service decodes the received string to obtain partial text information. In the decoding process, the decoder of the IVR service detects whether there is an end code in the string. If there is no end code, the IVR service will continue to issue a play command, so that the terminal continues to report the text information, and the interactive machine fills up a group of DTMFs. After the code, the subsequent string is sent, and the decoder in the IVR service decodes the string to obtain subsequent text information. If the decoder decodes the end code in the subsequent string, the IVR service will end receiving, so The IVR service completes receiving text information from the terminal.
举例来讲,IVR业务指示交换机播放指定音频信号,语音内容提示用户输入密码,然后交换机播放指定音频信号。For example, the IVR service instructs the switch to play a specified audio signal, the voice content prompts the user to enter a password, and then the switch plays the specified audio signal.
用户的智能电话IVR呼叫软件的音频解码模块检测到指定音频信号之后,该音频解码模块将告知协议处理模块501,智能电话上的协议处理模块501发送信息给智能电话的呼叫软件,从而使智能电话启用文本输入界面。After the audio decoding module of the user's smart phone IVR calling software detects the specified audio signal, the audio decoding module will inform the protocol processing module 501 that the protocol processing module 501 on the smart phone sends the information to the calling software of the smart phone, thereby making the smart phone Enable the text input interface.
当用户在文本输入界面中输入了一个强密码“qeER@123”,智能电话 得到用户输入的强密码之后,智能电话上的协议处理模块将对文本进行分割,这里需要进行分割的原因是IVR业务上可以设置一次最大收号长度,从而智能电话上的协议处理模块需要将文本进行分割,比如IVR业务上设置的一次最大收号长度为20,一次可以接收5个字符,每个字符使用4个DTMF码。When the user enters a strong password "qeER@123" in the text input interface, the smartphone After obtaining the strong password input by the user, the protocol processing module on the smart phone will split the text. The reason for the splitting here is that the maximum number of digits can be set in the IVR service, so that the protocol processing module on the smart phone needs to put the text. For segmentation, for example, the maximum number of received numbers set on the IVR service is 20, and 5 characters can be received at a time, and 4 DTMF codes are used for each character.
智能电话将用户输入的“qeER@123”分割为两个文本段,“qwER@”和“123”。并首先发送“qwER@”。The smartphone divides the user input "qeER@123" into two text segments, "qwER@" and "123". And first send "qwER@".
智能电话中的编码模块将“qwER@”编码为“00710077004500520040”,其中“q”编码为“0071”,“w”编码为“0077”,“E”编码为“0045”,“R”编码为“0052”,“@”编码为“0040”。然后发送给智能电话的基带模块进行DTMF音频调制。The encoding module in the smart phone encodes "qwER@" as "00710077004500520040", where "q" is encoded as "0071", "w" is encoded as "0077", "E" is encoded as "0045", and "R" is encoded as "0052", "@" code is "0040". The baseband module sent to the smartphone then performs DTMF tone modulation.
交换机一次收满20位DTMF编码后发送给IVR业务进行解码,得到文本“qwER@”。The switch fills the 20-bit DTMF code once and sends it to the IVR service for decoding to obtain the text "qwER@".
IVR业务没有收到结束符号,继续指示交换机播放指定音频信号。The IVR service does not receive the end symbol and continues to instruct the switch to play the specified audio signal.
智能电话中的音频解码器模块检测到指定音频信号后告知协议处理模块。The audio decoder module in the smartphone notifies the protocol processing module after detecting the specified audio signal.
智能电话中的协议处理模块继续向编码模块发送剩余文本“123”。The protocol processing module in the smartphone continues to send the remaining text "123" to the encoding module.
编码模块首先将“123”编码为“003100320033”,其中“1”编码为“0031”,“2”编码为“0032”,“3”编码为“0033”。然后增加结束符,生成最终的编码“003100320033########”。最后发送给智能电话的基带模块进行DTMF音频调制。The encoding module first encodes "123" as "003100320033", where "1" is encoded as "0031", "2" is encoded as "0032", and "3" is encoded as "0033". Then add the terminator to generate the final code "003100320033########". Finally, the baseband module sent to the smart phone performs DTMF tone modulation.
交换机一次收满20位DTMF编码后送给IVR业务进行解码,得到文本“123”,并检测到结束符号,结束接收过程。然后将两次接收的文本合并为“qwER@123”,发送给相关网元或程序进行鉴权。The switch fills the 20-bit DTMF code once and sends it to the IVR service for decoding, and obtains the text "123", and detects the end symbol, and ends the receiving process. Then, the two received texts are merged into "qwER@123" and sent to the relevant network element or program for authentication.
本发明实施例中,通过获取文本信息的方法,改变了相关技术的IVR业务仅支持数字密码的输入方式,并支持发送的文本,可以支持强密码,保障了用户的账户安全。In the embodiment of the present invention, the method for obtaining text information changes the IVR service of the related technology to only support the input mode of the digital password, and supports the transmitted text, which can support strong passwords and protect the user's account security.
本发明实施例另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
实施例三: Embodiment 3:
对应本发明实施例中一种发送文本信息的方法,本发明实施例还提供了一种发送文本信息的装置,图5为本发明实施例中一种发送文本信息的装置的结构示意图,该装置包括:Corresponding to a method for transmitting text information in an embodiment of the present invention, an embodiment of the present invention further provides an apparatus for transmitting text information, and FIG. 5 is a schematic structural diagram of an apparatus for transmitting text information according to an embodiment of the present invention. include:
协议处理模块501,设置成在检测到指定音频信号时,获取用户输入的文本信息;The protocol processing module 501 is configured to obtain text information input by the user when the specified audio signal is detected;
编码模块502,设置成对所述文本信息进行字符编码,生成传送至交换机的码源;The encoding module 502 is configured to perform character encoding on the text information to generate a code source that is transmitted to the switch;
基带模块503,设置成将所述码源发送至所述交换机,以使所述交换机将所述码源转换成指定格式的字符串,并将所述字符串发送至所述交互语音应答系统。A baseband module 503 is arranged to send the code source to the switch to cause the switch to convert the code source into a character string of a specified format and send the character string to the interactive voice response system.
可选地,在本发明实施例中,所述协议处理模块501包括:Optionally, in the embodiment of the present invention, the protocol processing module 501 includes:
音频解码模块,设置成从交互机接收指定音频信号,并基于指定音频信号告知终端中的呼叫软件启用文本输入界面。An audio decoding module configured to receive a specified audio signal from the interactive machine and to inform the calling software in the terminal to enable the text input interface based on the specified audio signal.
呼叫软件,设置成启用文本输入界面,并获取用户通过文本输入界面输入的文本信息。The calling software is set to enable the text input interface and obtain the text information input by the user through the text input interface.
可选地,在本发明实施例中,所述编码模块502是设置成根据所述交互语音应答系统中指定的收号长度,将所述文本信息分割为指定长度的子文本信息;将所述子文本信息编码为每个子文本信息对应的码源。Optionally, in the embodiment of the present invention, the encoding module 502 is configured to divide the text information into sub-text information of a specified length according to the length of the received number specified in the interactive voice response system; The subtext information is encoded as a code source corresponding to each subtext information.
可选地,在本发明实施例中,基带模块503是设置成对每个码源进行音频调制,并将音频调制后的码源发送至交换机。Optionally, in the embodiment of the present invention, the baseband module 503 is configured to perform audio modulation on each code source, and send the audio coded code source to the switch.
可选地,在本发明实施例中,编码模块502是设置成在最后一个码源中添加结束码,并将添加了结束码的码源发送至所述交换机,其中,所述结束码设置成告知所述交互语音应答系统完成发送文本信息。Optionally, in the embodiment of the present invention, the encoding module 502 is configured to add an end code to the last code source, and send a code source to which the end code is added to the switch, where the end code is set to The interactive voice response system is informed to complete the transmission of the text message.
实施例四:Embodiment 4:
对应本发明实施例中一种获取文本信息的方法,本发明实施例中提供了一种获取文本信息的装置,图6为本发明实施例一种获取文本信息的装置的结构示意图,该装置包括:A device for obtaining text information is provided in the embodiment of the present invention. FIG. 6 is a schematic structural diagram of an apparatus for acquiring text information according to an embodiment of the present invention. :
接收模块601,设置成接收由交换机发送的字符串; The receiving module 601 is configured to receive a string sent by the switch;
解码模块602,设置成将由交换机发送的所述字符串进行解码为用户在终端上输入的文本信息。The decoding module 602 is configured to decode the character string sent by the switch into text information input by the user on the terminal.
可选地,在本发明实施例中,解码模块602是设置成对由所述交换机发送的所述字符串进行解码,并检测字符串中是否存在结束码;若存在结束码,则确定完成发送文本信息,所述发送的文本信息包括用户在终端上输入的文本信息。Optionally, in the embodiment of the present invention, the decoding module 602 is configured to decode the character string sent by the switch, and detect whether an end code exists in the character string; if there is an end code, determine to complete the sending. Text information, the transmitted text information includes text information input by the user on the terminal.
实施例五:Embodiment 5:
本发明实施例中还提供了一种交互语音应答系统,图7为本发明实施例中一种交互语音应答系统的结构示意图,该系统包括:交互语音应答业务701、终端702、交换机703,其中,An embodiment of the present invention provides an interactive voice response system. FIG. 7 is a schematic structural diagram of an interactive voice response system according to an embodiment of the present invention. The system includes: an interactive voice response service 701, a terminal 702, and a switch 703. ,
交互语音应答业务701,设置成在接收到开启文本上传的触发指令时,生成播放指令以及收号指令,将生成的所述播放指令以及收号指令发送至所述交换机703,并接收由交换机703发送的字符串,将由交换机703发送的所述字符串进行解码为用户在终端上输入的文本信息,其中,所述播放指令设置成指示交换机703在指定音频链路上播放指定音频信号,所述收号指令设置成指示所述交换机703接收终端发送的码源;The interactive voice response service 701 is configured to generate a play command and a receive command when receiving the trigger instruction for opening the text upload, and send the generated play command and the receive command to the switch 703, and receive the switch 703 by the switch 703. a string sent, the character string sent by the switch 703 being decoded into text information input by the user on the terminal, wherein the play command is set to instruct the switch 703 to play the specified audio signal on the designated audio link, The number receiving instruction is set to instruct the switch 703 to receive the code source sent by the terminal;
终端702,设置成在检测到指定音频信号时,获取用户输入的文本信息;对所述文本信息进行字符编码,以生成传送至交换机703的码源;将所述码源发送至所述交换机703,以使所述交换机703将所述码源转换成指定格式的字符串,并将所述字符串发送至所述交互语音应答系统;The terminal 702 is configured to acquire text information input by the user when the specified audio signal is detected; perform character encoding on the text information to generate a code source transmitted to the switch 703; and send the code source to the switch 703 So that the switch 703 converts the code source into a character string of a specified format, and sends the character string to the interactive voice response system;
交换机703,设置成在接收到播放指令以及收号指令时,基于播放指令播放指定音频信号,并接收终端702上传的双音多频DTMF码,将DTMF码转换成字符串,将字符串上传至交互语音应答业务701,以使交互语音应答业务701根据得到的字符串解码得到文本信息。The switch 703 is configured to: when receiving the play command and the receive command, play the specified audio signal based on the play command, and receive the dual tone multi-frequency DTMF code uploaded by the terminal 702, convert the DTMF code into a string, and upload the string to the The voice response service 701 is interactively configured to cause the interactive voice response service 701 to decode the obtained character string to obtain text information.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也 可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by an integrated circuit to implement its corresponding function, It can be implemented in the form of a software function module, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
尽管已描述了本申请的可选实施例,但本领域内的普通技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本申请范围的所有变更和修改。Although alternative embodiments of the present application have been described, additional variations and modifications can be made to those embodiments by one of ordinary skill in the art once the basic inventive concept is known. Therefore, the appended claims are intended to be construed as including all alternatives and modifications.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.
工业实用性Industrial applicability
本申请公开了一种发送文本信息的方法及装置、一种获取文本信息的方法及装置,该发送文本信息的方法包括:在检测到指定音频信号时,获取用户输入的文本信息;对文本信息进行字符编码,以生成传送至交换机的码源;将码源发送至交换机。交换机将码源转换为指定格式的字符串,并将该字符串发送至交互语音应答系统,最后交互语音应答系统将交换机发送的字符串解码为文本信息。通过该方法实现了终端向IVR发送文本信息,从而使IVR更加易用而高效,扩展了IVR业务的功能。 The present application discloses a method and device for transmitting text information, and a method and device for acquiring text information. The method for transmitting text information includes: acquiring text information input by a user when detecting a specified audio signal; Character encoding is performed to generate a code source that is transmitted to the switch; the code source is sent to the switch. The switch converts the code source into a string of the specified format and sends the string to the interactive voice response system. Finally, the interactive voice response system decodes the string sent by the switch into text information. Through this method, the terminal transmits text information to the IVR, thereby making the IVR easier to use and efficient, and expanding the function of the IVR service.

Claims (10)

  1. 一种发送文本信息的方法,包括:A method of transmitting text information, including:
    在检测到指定音频信号时,获取用户输入的文本信息;Obtaining text information input by the user when the specified audio signal is detected;
    对所述文本信息进行字符编码,以生成传送至交换机的码源;Characterizing the text information to generate a code source transmitted to the switch;
    将所述码源发送至所述交换机,以使所述交换机将所述码源转换成指定格式的字符串,并将所述字符串发送至交互语音应答系统。The code source is sent to the switch to cause the switch to convert the code source into a string of a specified format and send the string to an interactive voice response system.
  2. 如权利要求1所述的方法,其中,所述在检测到指定音频信号时,获取用户输入的文本信息的步骤,包括:The method of claim 1, wherein the step of acquiring text information input by the user when the specified audio signal is detected comprises:
    在检测到指定音频信号时,启用文本输入界面;Enable text input interface when detecting specified audio signal;
    获取用户通过所述文本输入界面输入的所述文本信息。Obtaining the text information input by the user through the text input interface.
  3. 如权利要求1所述的方法,其中,所述对所述文本信息进行字符编码,以生成传送至交换机的码源的步骤,包括:The method of claim 1 wherein said step of character encoding said textual information to generate a code source for transmission to said switch comprises:
    根据所述交互语音应答系统中指定的收号长度,将所述文本信息分割为指定长度的子文本信息;And dividing the text information into sub-text information of a specified length according to the length of the received number specified in the interactive voice response system;
    将所述子文本信息编码为每个子文本信息对应的码源。The sub-text information is encoded as a code source corresponding to each sub-text information.
  4. 如权利要求1所述的方法,其中,所述将所述码源发送至所述交换机的步骤,包括:The method of claim 1 wherein said step of transmitting said code source to said switch comprises:
    对每个码源进行音频调制,并将音频调制后的码源发送至所述交换机。Audio modulation is performed for each code source, and the audio modulated code source is transmitted to the switch.
  5. 如权利要求1所述的方法,其中,在所述将所述码源发送至所述交换机的步骤包括:The method of claim 1 wherein said step of transmitting said code source to said switch comprises:
    在最后一个码源中添加结束码,并将添加了结束码的码源发送至所述交换机,其中,所述结束码设置成告知所述交互语音应答系统完成发送文本信息。An end code is added to the last code source, and a code source to which the end code is added is sent to the switch, wherein the end code is set to inform the interactive voice response system to complete the transmission of the text information.
  6. 一种获取文本信息的方法,包括:A method of obtaining text information, including:
    接收由交换机发送的字符串;Receive a string sent by the switch;
    将由交换机发送的所述字符串进行解码为用户在终端上输入的文本信息。 The character string sent by the switch is decoded into text information input by the user on the terminal.
  7. 如权利要求6所述的方法,在所述接收交换机发送的字符串的步骤之前,所述方法还包括:The method of claim 6, before the step of receiving the character string sent by the switch, the method further comprising:
    在接收到启用发送文本信息的触发指令时,生成播放指令以及收号指令,其中,所述播放指令设置成指示交换机在指定音频链路上播放指定音频信号,所述收号指令设置成指示所述交换机接收终端发送的码源;And when the triggering instruction for enabling the sending of the text information is received, generating a play instruction and a numbering instruction, wherein the play instruction is set to instruct the switch to play the specified audio signal on the designated audio link, and the receiving command is set to indicate The switch receives the code source sent by the terminal;
    将生成的所述播放指令以及收号指令发送至所述交互机。The generated play command and the number-receiving command are sent to the interactive machine.
  8. 如权利要求6所述的方法,其中,所述对交换机发送的所述字符串进行解码为用户在终端上输入的文本信息的步骤,包括:The method of claim 6, wherein the step of decoding the character string sent by the switch into text information input by the user on the terminal comprises:
    对由所述交换机发送的所述字符串进行解码,并检测字符串中是否存在结束码;Decoding the character string sent by the switch, and detecting whether an end code exists in the string;
    若存在结束码,则确定完成发送文本信息,所述发送的文本信息包括用户在终端上输入的文本信息。If there is an end code, it is determined that the sending of the text information is completed, and the transmitted text information includes text information input by the user on the terminal.
  9. 一种发送文本信息的装置,包括:An apparatus for transmitting text information, comprising:
    协议处理模块,设置成在检测到指定音频信号时,获取用户输入的文本信息;a protocol processing module configured to obtain text information input by the user when the specified audio signal is detected;
    编码模块,设置成对所述文本信息进行字符编码,生成传送至交换机的码源;An encoding module configured to perform character encoding on the text information to generate a code source transmitted to the switch;
    基带模块,设置成将所述码源发送至所述交换机,以使所述交换机将所述码源转换成指定格式的字符串,并将所述字符串发送至交互语音应答系统。A baseband module configured to send the code source to the switch to cause the switch to convert the code source into a string of a specified format and to transmit the string to an interactive voice response system.
  10. 一种获取文本信息的装置,包括:An apparatus for obtaining text information, comprising:
    接收模块,设置成接收由交换机发送的字符串;a receiving module configured to receive a string sent by the switch;
    解码模块,设置成对由交换机发送的所述字符串进行解码为用户在终端上输入的文本信息。 The decoding module is configured to decode the character string sent by the switch into text information input by the user on the terminal.
PCT/CN2016/084777 2015-09-30 2016-06-03 Method and apparatus for sending and acquiring text information WO2017054496A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510638596.2A CN106559588B (en) 2015-09-30 2015-09-30 Method and device for uploading text information
CN201510638596.2 2015-09-30

Publications (1)

Publication Number Publication Date
WO2017054496A1 true WO2017054496A1 (en) 2017-04-06

Family

ID=58418066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084777 WO2017054496A1 (en) 2015-09-30 2016-06-03 Method and apparatus for sending and acquiring text information

Country Status (2)

Country Link
CN (1) CN106559588B (en)
WO (1) WO2017054496A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112993A (en) * 2020-01-10 2021-07-13 阿里巴巴集团控股有限公司 Audio information processing method and device, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728261B (en) * 2019-10-23 2022-08-30 武汉奇致激光技术股份有限公司 Method for feeding back fault information of laser medical cosmetic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960408A (en) * 2005-10-31 2007-05-09 中国电信股份有限公司 Multimedia responsion method in interactive mode in use for interactive multimedia responsion method
CN101001287A (en) * 2006-12-26 2007-07-18 华为技术有限公司 Voice server and voice answer method
CN101026640A (en) * 2007-01-26 2007-08-29 华为技术有限公司 Method, device and system for realizing character input using communication terminal
US20120142333A1 (en) * 2000-10-17 2012-06-07 Srivatsan Kasturi Systems and Methods for Information Exchange and Synchronization Using DTMF Over Telephone Communication Channels

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2352933A (en) * 1999-07-31 2001-02-07 Ibm Speech encoding in a client server system
US6438220B1 (en) * 2000-03-30 2002-08-20 Worldcom, Inc. Method and apparatus for internet-based telephone access to prepaid card and pin systems
CN1472925A (en) * 2002-07-30 2004-02-04 华为技术有限公司 Method for writing simplified script and raising its readability
US20040203652A1 (en) * 2003-03-07 2004-10-14 Gao Yan Method and device for dtmf wireless handset based text messaging
KR101266265B1 (en) * 2007-03-12 2013-05-22 삼성전자주식회사 Mobile terminal having qwerty key and method for outputting Dual Tone Multi Frequency(DTMF) signal thereof
CN101753734A (en) * 2008-12-18 2010-06-23 华为技术有限公司 IVR business processing method, device and system based on CSTA
CN101692687A (en) * 2009-10-29 2010-04-07 金华信息港数码科技有限公司 Method for realizing Chinese character input in IVR by inputting related numerical codes
CN102904725B (en) * 2012-10-22 2016-02-10 广东欧珀移动通信有限公司 A kind of cipher-code input method, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120142333A1 (en) * 2000-10-17 2012-06-07 Srivatsan Kasturi Systems and Methods for Information Exchange and Synchronization Using DTMF Over Telephone Communication Channels
CN1960408A (en) * 2005-10-31 2007-05-09 中国电信股份有限公司 Multimedia responsion method in interactive mode in use for interactive multimedia responsion method
CN101001287A (en) * 2006-12-26 2007-07-18 华为技术有限公司 Voice server and voice answer method
CN101026640A (en) * 2007-01-26 2007-08-29 华为技术有限公司 Method, device and system for realizing character input using communication terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112993A (en) * 2020-01-10 2021-07-13 阿里巴巴集团控股有限公司 Audio information processing method and device, electronic equipment and storage medium
CN113112993B (en) * 2020-01-10 2024-04-02 阿里巴巴集团控股有限公司 Audio information processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106559588A (en) 2017-04-05
CN106559588B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
US20070263796A1 (en) Method and apparatus to provide data to an interactive voice response (ivr) system
CN103139404A (en) System and method for generating interactive voice response display menu based on voice recognition
CN103166702A (en) Method and device for configuring wireless network in voice frequency mode
US9813905B2 (en) DTMF token for automated out-of-band authentication
RU2648968C2 (en) Method and system making use of a home gateway and a smartphone to make a cordless telephone call
CN102307258A (en) Communication method between primary device and accessory device, device thereof and system thereof
CN102833411A (en) Method and system for processing information on basis of dual-tone multifrequency and receiving terminal
EP4262320A1 (en) Call processing system and call processing method
US20070232286A1 (en) Apparatus and method for storing/calling telephone number in mobile terminal
TW201607357A (en) Toning control method of WiFi device setting by smart device
WO2012027932A1 (en) Method, equipment and terminal for encoding/decoding short message
WO2011160389A1 (en) Method and apparatus for transmitting information during call
WO2017054496A1 (en) Method and apparatus for sending and acquiring text information
US6167429A (en) Service access using limited set of characters
CN101860630B (en) Transmission method and system of out-of-band dual tone multiple frequency (DTMF) signal
US8457600B2 (en) Electronic device and method for validating contact identification
CN103167189A (en) Long-distance calling data transmission method and long-distance telecommunication module
WO2015154621A1 (en) Method, device and system for transmitting address book information
WO2013056548A1 (en) Method and apparatus for sending dual tone multi-frequency signal
WO2015180506A1 (en) Telephone number transceiving method and device in terminal call process
CN102833434B (en) Method, device and system for detecting network-side dual-tone multi-frequency signals
KR100642577B1 (en) Method and apparatus for transforming voice message into text message and transmitting the same
TWI695612B (en) Internet protocol television (iptv) telephone authentication system and method thereof
JP3563297B2 (en) Digital communication device, digital communication method, and recording medium therefor
JP3514294B2 (en) Audio encoding / decoding device, audio encoding / decoding system, and audio encoding / decoding method

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: 16850121

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: 16850121

Country of ref document: EP

Kind code of ref document: A1