CN118433309B - Call information processing method, data response device and call information processing system - Google Patents

Call information processing method, data response device and call information processing system Download PDF

Info

Publication number
CN118433309B
CN118433309B CN202410889449.1A CN202410889449A CN118433309B CN 118433309 B CN118433309 B CN 118433309B CN 202410889449 A CN202410889449 A CN 202410889449A CN 118433309 B CN118433309 B CN 118433309B
Authority
CN
China
Prior art keywords
voice
data
template
current
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410889449.1A
Other languages
Chinese (zh)
Other versions
CN118433309A (en
Inventor
刘家好
杨勇刚
齐海丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hundsun Technologies Inc
Original Assignee
Hundsun Technologies Inc
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 Hundsun Technologies Inc filed Critical Hundsun Technologies Inc
Priority to CN202410889449.1A priority Critical patent/CN118433309B/en
Publication of CN118433309A publication Critical patent/CN118433309A/en
Application granted granted Critical
Publication of CN118433309B publication Critical patent/CN118433309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04M3/4936Speech interaction details
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/02Methods for producing synthetic speech; Speech synthesisers
    • G10L13/04Details of speech synthesis systems, e.g. synthesiser structure or memory management
    • G10L13/047Architecture of speech synthesisers
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/08Text analysis or generation of parameters for speech synthesis out of text, e.g. grapheme to phoneme translation, prosody generation or stress or intonation determination
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请提供了一种呼叫信息处理方法、数据应答装置以及呼叫信息处理系统,其中,该方法包括:根据用户输入的操作类型,确定操作类型对应的待拼接模板,待拼接模板包括:至少一个模板字符串以及变量字符串,获取模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取变量字符串对应的目标数据,模板语音预先存储在数据应答装置中,根据目标数据以及当前语音数据库,确定目标数据的目标数据语音,当前语音数据库由语音更新装置动态更新并发送给数据应答装置,根据模板语音和目标数据语音,生成并输出操作对象的操作结果。本申请可以在高并发量请求的场景下有效降低TTS服务器的配置成本和资源压力。

The present application provides a call information processing method, a data response device, and a call information processing system, wherein the method comprises: determining a template to be spliced corresponding to the operation type according to the operation type input by the user, the template to be spliced comprising: at least one template string and a variable string, obtaining a template voice corresponding to the template string, and obtaining target data corresponding to the variable string from a real-time data storage device according to the identifier of the operation object input by the user, the template voice is pre-stored in the data response device, and the target data voice of the target data is determined according to the target data and the current voice database, the current voice database is dynamically updated by the voice update device and sent to the data response device, and the operation result of the operation object is generated and output according to the template voice and the target data voice. The present application can effectively reduce the configuration cost and resource pressure of the TTS server in the scenario of high concurrent requests.

Description

呼叫信息处理方法、数据应答装置以及呼叫信息处理系统Call information processing method, data answering device and call information processing system

技术领域Technical Field

本申请涉及计算机技术领域,具体而言,涉及一种呼叫信息处理方法、数据应答装置以及呼叫信息处理系统。The present application relates to the field of computer technology, and in particular to a call information processing method, a data answering device, and a call information processing system.

背景技术Background Art

IVR(Interactive Voice Response,互动式语音应答)是一种电话技术,用户可以通过语音或者按键输入与计算机系统进行交互,目前已经应用在很多实时信息场景中,例如股票交易委托、产品介绍、通知播报等。IVR (Interactive Voice Response) is a telephone technology that allows users to interact with computer systems through voice or key input. It has been applied in many real-time information scenarios, such as stock trading orders, product introductions, notification broadcasts, etc.

现有技术中一般通过请求实时TTS(Text To Speech,从文本到语音)来更新播报内容。用户向IVR系统发起查询请求后,IVR系统向柜台查询实时行情,并向对应的TTS服务器整句请求TTS。In the prior art, the content of the announcement is generally updated by requesting real-time TTS (Text To Speech). After the user initiates a query request to the IVR system, the IVR system queries the counter for real-time market information and requests TTS for the entire sentence from the corresponding TTS server.

然而,现有技术中如果存在高并发量的呼叫请求,则需要等比例配置TTS服务器与IVR系统,存在成本较高的问题,并且对于高并发量的呼叫请求,整句请求TTS也会对TTS服务器资源造成较大的压力。However, in the prior art, if there are high-concurrency call requests, the TTS server and the IVR system need to be configured in equal proportion, which has a high cost problem. In addition, for high-concurrency call requests, requesting TTS for the entire sentence will also put great pressure on the TTS server resources.

发明内容Summary of the invention

本申请的目的在于,针对上述现有技术中的不足,提供一种呼叫信息处理方法、数据应答装置以及呼叫信息处理系统,以解决现有技术中IVR播报在高并发量场景下TTS服务器部署成本高、资源压力大的问题。The purpose of this application is to provide a call information processing method, a data answering device and a call information processing system to address the deficiencies in the above-mentioned prior art, so as to solve the problems in the prior art of high TTS server deployment cost and high resource pressure in IVR broadcast scenarios with high concurrency.

为实现上述目的,本申请采用的技术方案如下:To achieve the above purpose, the technical solution adopted in this application is as follows:

第一方面,本申请提供了一种呼叫信息处理方法,应用于数据应答装置,所述方法包括:In a first aspect, the present application provides a call information processing method, which is applied to a data answering device, and the method includes:

根据用户输入的操作类型,确定所述操作类型对应的待拼接模板,所述待拼接模板包括:至少一个模板字符串以及变量字符串;Determine, according to the operation type input by the user, a template to be spliced corresponding to the operation type, wherein the template to be spliced includes: at least one template string and a variable string;

获取所述模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取所述变量字符串对应的目标数据,所述模板语音预先存储在所述数据应答装置中;Acquire the template voice corresponding to the template character string, and acquire the target data corresponding to the variable character string from the real-time data storage device according to the identifier of the operation object input by the user, wherein the template voice is pre-stored in the data response device;

根据所述目标数据以及当前语音数据库,确定所述目标数据的目标数据语音,所述当前语音数据库由语音更新装置动态更新并发送给所述数据应答装置;Determine the target data voice of the target data according to the target data and the current voice database, the current voice database is dynamically updated by the voice updating device and sent to the data response device;

根据所述模板语音和所述目标数据语音,生成并输出所述操作对象的操作结果。An operation result of the operation object is generated and output according to the template voice and the target data voice.

可选地,所述语音更新装置动态更新所述当前语音数据库的过程包括:Optionally, the process of the voice updating device dynamically updating the current voice database includes:

基于预设周期获取当前数据文件,并根据所述当前数据文件确定所述当前语音数据库是否需要更新;Acquire a current data file based on a preset period, and determine whether the current voice database needs to be updated according to the current data file;

若是,则根据所述当前数据文件对所述当前语音数据库进行更新处理,得到更新后的当前语音数据库,并将所述更新后的当前语音数据库发送给各所述数据应答装置。If so, the current voice database is updated according to the current data file to obtain an updated current voice database, and the updated current voice database is sent to each of the data response devices.

可选地,所述根据所述当前数据文件确定所述当前语音数据库是否需要更新,包括:Optionally, determining whether the current voice database needs to be updated according to the current data file includes:

对所述当前数据文件与所述当前语音数据库的数据文件进行对比,确定所述当前数据文件与所述当前语音数据库的数据文件是否相同;Comparing the current data file with the data file of the current voice database to determine whether the current data file is the same as the data file of the current voice database;

若相同,则所述当前语音数据库需要更新,若不相同,则所述当前语音数据库不需要更新。If they are the same, the current voice database needs to be updated; if they are not the same, the current voice database does not need to be updated.

可选地,所述根据所述当前数据文件对所述当前语音数据库进行更新处理,得到更新后的当前语音数据库,包括:Optionally, the updating the current voice database according to the current data file to obtain an updated current voice database includes:

根据所述当前数据文件和所述当前语音数据库的数据文件确定至少一个更新数据;Determine at least one update data according to the current data file and the data file of the current voice database;

将所述至少一个更新数据发送给语音转换装置,得到各所述更新数据的语音信息;Sending the at least one updated data to a voice conversion device to obtain voice information of each updated data;

根据各所述更新数据的语音信息对所述当前语音数据库进行更新处理,得到所述更新后的当前语音数据库。The current voice database is updated according to the voice information of each update data to obtain the updated current voice database.

可选地,所述将所述更新后的当前语音数据库发送给各所述数据应答装置,包括:Optionally, sending the updated current voice database to each of the data response devices comprises:

根据预先存储的数据应答装置列表以及各所述数据应答装置的开启状态,确定至少一个待更新的数据应答装置;Determining at least one data response device to be updated according to a pre-stored data response device list and an activation state of each of the data response devices;

将所述更新后的当前语音数据库发送给各所述待更新的数据应答装置。The updated current voice database is sent to each of the data response devices to be updated.

可选地,所述获取所述模板字符串对应的模板语音,包括:Optionally, the acquiring the template voice corresponding to the template character string includes:

从模板语音库中查询所述模板字符串对应的所述模板语音,所述模板语音库中包括:多个模板字符串以及各模板字符串对应的语音信息。The template speech corresponding to the template character string is searched from a template speech library, wherein the template speech library includes: a plurality of template character strings and speech information corresponding to each template character string.

可选地,所述根据用户输入的操作对象的标识从实时数据存储装置中获取所述变量字符串对应的目标数据,包括:Optionally, the step of acquiring target data corresponding to the variable character string from a real-time data storage device according to an identifier of an operation object input by a user includes:

从所述实时数据存储装置中查找所述操作对象的标识对应的待选数据;Searching the real-time data storage device for the selected data corresponding to the identifier of the operation object;

将各所述待选数据按照所述变量字符串的顺序排列,得到所述目标数据。Arrange the selected data in the order of the variable character strings to obtain the target data.

可选地,根据所述目标数据以及当前语音数据库,确定所述目标数据的目标数据语音,包括:Optionally, determining the target data voice of the target data according to the target data and the current voice database includes:

从所述当前语音数据库中查找所述目标数据对应的所述目标数据语音。The target data voice corresponding to the target data is searched in the current voice database.

可选地,所述目标数据为所述变量字符串的值;Optionally, the target data is the value of the variable string;

所述根据所述模板语音和所述目标数据语音,生成并输出操作对象的操作结果,包括:The step of generating and outputting an operation result of an operation object according to the template voice and the target data voice includes:

将所述模板语音填入所述模板字符串对应的位置,将所述目标数据语音填入所述变量字符串对应的位置,得到所述操作对象的操作结果。The template voice is filled into the position corresponding to the template character string, and the target data voice is filled into the position corresponding to the variable character string to obtain the operation result of the operation object.

第二方面,本申请提供了一种数据应答装置,所述装置包括:In a second aspect, the present application provides a data response device, the device comprising:

第一确定模块,用于根据用户输入的操作类型,确定所述操作类型对应的待拼接模板,所述待拼接模板包括:至少一个模板字符串以及变量字符串;A first determination module is used to determine, according to an operation type input by a user, a template to be spliced corresponding to the operation type, wherein the template to be spliced includes: at least one template string and a variable string;

获取模块,用于获取所述模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取所述变量字符串对应的目标数据,所述模板语音预先存储在所述数据应答装置中;An acquisition module, used to acquire the template voice corresponding to the template character string, and acquire the target data corresponding to the variable character string from the real-time data storage device according to the identifier of the operation object input by the user, wherein the template voice is pre-stored in the data response device;

第二确定模块,用于根据所述目标数据以及当前语音数据库,确定所述目标数据的目标数据语音,所述当前语音数据库由语音更新装置动态更新并发送给所述数据应答装置;A second determination module, for determining the target data voice of the target data according to the target data and a current voice database, wherein the current voice database is dynamically updated by a voice updating device and sent to the data response device;

生成模块,用于根据所述模板语音和所述目标数据语音,生成并输出所述操作对象的操作结果。A generating module is used to generate and output the operation result of the operation object according to the template voice and the target data voice.

可选地,所述获取模块具体用于:Optionally, the acquisition module is specifically used for:

从模板语音库中查询所述模板字符串对应的所述模板语音,所述模板语音库中包括:多个模板字符串以及各模板字符串对应的语音信息。The template speech corresponding to the template character string is searched from a template speech library, wherein the template speech library includes: a plurality of template character strings and speech information corresponding to each template character string.

可选地,所述获取模块具体用于:Optionally, the acquisition module is specifically used for:

从所述实时数据存储装置中查找所述操作对象的标识对应的待选数据;Searching the real-time data storage device for the selected data corresponding to the identifier of the operation object;

将各所述待选数据按照所述变量字符串的顺序排列,得到所述目标数据。Arrange the selected data in the order of the variable character strings to obtain the target data.

可选地,第二确定模块具体用于:Optionally, the second determining module is specifically configured to:

从所述当前语音数据库中查找所述目标数据对应的所述目标数据语音。The target data voice corresponding to the target data is searched in the current voice database.

可选地,所述目标数据为所述变量字符串的值;Optionally, the target data is the value of the variable string;

所述生成模块具体用于:The generation module is specifically used for:

将所述模板语音填入所述模板字符串对应的位置,将所述目标数据语音填入所述变量字符串对应的位置,得到所述操作对象的操作结果。The template voice is filled into the position corresponding to the template character string, and the target data voice is filled into the position corresponding to the variable character string to obtain the operation result of the operation object.

第三方面,本申请实施例还提供了一种呼叫信息处理系统,包括如第一方面的方法中的数据应答装置、实时数据存储装置、语音更新装置以及语音转换装置。In a third aspect, an embodiment of the present application further provides a call information processing system, including a data response device, a real-time data storage device, a voice updating device, and a voice conversion device as in the method of the first aspect.

第四方面,本申请实施例还提供了一种电子设备,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如第一方面中任一项所述的呼叫信息处理方法的步骤。In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the call information processing method as described in any one of the first aspects.

第五方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如第一方面中任一项所述的呼叫信息处理方法的步骤。In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the call information processing method as described in any one of the first aspects are executed.

本申请的有益效果是:通过将待拼接模板中固定不变的模板字符串的模板语音存储在数据应答装置中,并在从实时数据存储装置中获取目标数据之后,基于预先存储的当前语音数据库对目标数据进行语音转换,可以将语音转换的处理过程都放在数据应答装置本地完成,如此数据应答装置就不必向TTS服务器进行整句请求,也就不存在数据应答装置向TTS进行整句请求的网络延迟,进而减少延迟。并且本申请中语音转换的过程都由数据应答装置在本地完成,即使在高并发量请求的场景下,也不需要配置过多的TTS资源,实现了单路TTS资源满足高并发量请求,降低了TTS服务器部署的成本。本申请中数据应答装置预先存储了语音文件,因此只需要向实时数据存储装置获取实时数据,对模板字符串和目标数据完成语音转换,并对语音进行拼接即可完成整句语音转换,有效提升了语音播报的实时性和可靠性。此外,本申请通过语音更新装置对数据的语音进行预处理,使得数据应答装置与TTS服务器解耦,简化了整个语音播报的流程。The beneficial effects of the present application are: by storing the template voice of the fixed template string in the template to be spliced in the data response device, and after obtaining the target data from the real-time data storage device, the target data is converted to voice based on the pre-stored current voice database, the processing process of voice conversion can be completed locally in the data response device, so that the data response device does not need to make a whole sentence request to the TTS server, and there is no network delay for the data response device to make a whole sentence request to TTS, thereby reducing the delay. And the voice conversion process in the present application is completed locally by the data response device, even in the scenario of high concurrent request, it is not necessary to configure too many TTS resources, so that a single-channel TTS resource can meet high concurrent requests, and the cost of TTS server deployment is reduced. In the present application, the data response device pre-stores the voice file, so it only needs to obtain real-time data from the real-time data storage device, complete the voice conversion of the template string and the target data, and splice the voice to complete the whole sentence voice conversion, which effectively improves the real-time and reliability of voice broadcasting. In addition, the present application pre-processes the voice of the data through the voice updating device, so that the data response device is decoupled from the TTS server, simplifying the entire voice broadcast process.

为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

图1示出了本申请实施例提供的一种现有技术中进行IVR播报的示意图;FIG1 is a schematic diagram showing an IVR broadcast in the prior art provided by an embodiment of the present application;

图2示出了本申请实施例提供的一种呼叫信息处理系统的架构示意图;FIG2 shows a schematic diagram of the architecture of a call information processing system provided in an embodiment of the present application;

图3示出了本申请实施例提供的一种呼叫信息处理方法的流程图;FIG3 shows a flow chart of a call information processing method provided in an embodiment of the present application;

图4示出了本申请实施例提供的一种更新当前语音数据库的流程图;FIG4 shows a flow chart of updating a current voice database provided by an embodiment of the present application;

图5示出了本申请实施例提供的一种确定是否需要更新当前语音数据库的流程图;FIG5 shows a flow chart of determining whether the current voice database needs to be updated according to an embodiment of the present application;

图6示出了本申请实施例提供的一种对当前语音数据库进行更新的流程图;FIG6 shows a flow chart of updating a current voice database provided by an embodiment of the present application;

图7示出了本申请实施例提供的一种同步当前语音数据库的流程图;FIG7 shows a flow chart of synchronizing a current voice database provided by an embodiment of the present application;

图8示出了本申请实施例提供的一种得到目标数据的流程图;FIG8 shows a flow chart of obtaining target data provided by an embodiment of the present application;

图9示出了本申请实施例提供的一种数据应答装置的结构示意图;FIG9 shows a schematic structural diagram of a data response device provided in an embodiment of the present application;

图10示出了本申请实施例提供的一种语音更新装置的结构示意图;FIG10 shows a schematic diagram of the structure of a voice updating device provided in an embodiment of the present application;

图11示出了本申请实施例提供的一种电子设备的结构示意图。FIG. 11 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

需要说明的是,本申请实施例中将会用到术语“包括”,用于指出其后所声明的特征的存在,但并不排除增加其它的特征。It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

目前,IVR系统在处理用户的呼叫服务时,一般会将文本信息直接发送给TTS以进行播报。如图1所示,是一种现有技术中实现IVR播报内容实时更新的过程。At present, when the IVR system processes the user's call service, it generally sends the text information directly to the TTS for broadcasting. As shown in FIG1 , it is a process of implementing real-time update of IVR broadcast content in the prior art.

以股票查询场景为例,参照图1,用户通过电话向IVR系统发起查询请求之后,IVR系统可以基于用户输入的股票代码向交易柜台查询股票代码的实时行情数据,并将股票代码的行情数据文本发送给TTS服务器进行整句语音请求,例如向TTS服务器发送“123456XX电子,现价123.4,买一价132.9,卖一价123.4”,以使得TTS服务器能够对整句的行情数据文本进行语音转换,并将转换后的语音发送给IVR系统,由IVR系统将转换后的语音播报给用户。Taking the stock query scenario as an example, referring to Figure 1, after the user initiates a query request to the IVR system by phone, the IVR system can query the real-time market data of the stock code from the trading counter based on the stock code entered by the user, and send the market data text of the stock code to the TTS server for a whole sentence voice request, for example, sending "123456XX electronics, current price 123.4, buy price 132.9, sell price 123.4" to the TTS server, so that the TTS server can perform voice conversion on the whole sentence of the market data text, and send the converted voice to the IVR system, and the IVR system will broadcast the converted voice to the user.

但是,在此过程中,当存在多个IVR系统向TTS服务器进行并发请求时,TTS服务器就需要具有处理高并发量的请求的能力,而由于TTS服务器性能的限制,为了提升高并发量请求场景下TTS服务的响应速度,并确保电话播报内容信息的及时更新,就需要对IVR系统和TTS服务器进行成比例配置,这无疑会大大提升服务器成本。However, during this process, when there are multiple IVR systems making concurrent requests to the TTS server, the TTS server needs to have the ability to handle high-concurrency requests. Due to the performance limitations of the TTS server, in order to improve the response speed of the TTS service in high-concurrency request scenarios and ensure timely updates of telephone broadcast content information, it is necessary to configure the IVR system and TTS server proportionally, which will undoubtedly greatly increase the server cost.

并且,由于现有技术中IVR系统都是对TTS服务器进行整句请求,因此高并发量场景下TTS服务器就需要同时处理大量的语音转换任务,也会导致对电话查询请求的处理效率降低,进而影响用户的使用体验。Furthermore, since the IVR system in the prior art always makes whole-sentence requests to the TTS server, the TTS server needs to process a large number of voice conversion tasks simultaneously in a high-concurrency scenario, which will also reduce the processing efficiency of telephone query requests, thereby affecting the user experience.

基于此,本申请提出一种呼叫信息处理方法,应用于呼叫信息处理系统中。图2是本申请给出的一种呼叫信息处理系统的架构示意图,如图2所示,呼叫信息处理系统包括:数据应答装置、实时数据存储装置、语音更新装置以及语音转换装置。Based on this, the present application proposes a call information processing method, which is applied to a call information processing system. FIG2 is a schematic diagram of the architecture of a call information processing system provided by the present application. As shown in FIG2, the call information processing system includes: a data answering device, a real-time data storage device, a voice updating device, and a voice conversion device.

以股票电话查询场景为例,其中,数据应答装置可以是IVR系统,实时数据存储装置可以是交易柜台,语音转换装置可以是TTS服务器,语音更新装置可以用于存储数据的预录制语音以及对预录制语音进行更新。Taking the stock telephone inquiry scenario as an example, the data answering device can be an IVR system, the real-time data storage device can be a trading counter, the voice conversion device can be a TTS server, and the voice updating device can be used to store pre-recorded voice of data and update the pre-recorded voice.

本申请中用户向数据应答装置发起电话查询请求之后,数据应答装置可以基于用户输入的股票代码从实时数据存储装置查询股票代码对应的行情数据,同时数据应答装置还可以基于用户发起的查询请求确定录音模板,并确定录音模板中各固定量的语音信息。In the present application, after the user initiates a telephone query request to the data response device, the data response device can query the market data corresponding to the stock code from the real-time data storage device based on the stock code entered by the user. At the same time, the data response device can also determine the recording template based on the query request initiated by the user, and determine the fixed amount of voice information in the recording template.

数据应答装置中可以存储语音更新装置最后一次更新的语音包,并基于语音包确定行情数据的语音信息,然后将行情数据的语音信息和录音模板中各固定量的语音信息拼接,得到用户所查询的股票代码的语音结果。The data response device can store the voice package last updated by the voice update device, and determine the voice information of the market data based on the voice package, and then splice the voice information of the market data and the fixed amount of voice information in the recording template to obtain the voice result of the stock code queried by the user.

其中,语音更新装置可以基于当天的行情文件,对发生变化的数据更新语音信息,并在语音信息更新达到一定量时,向各数据应答装置推送更新后的语音包。The voice updating device can update the voice information for the changed data based on the market information of the day, and push the updated voice package to each data response device when the voice information update reaches a certain amount.

本申请通过将整句查询请求拆分为固定量和变量,并对固定量和变量分别基于语音包进行语音转换,可以由IVR系统在接收到用户的查询请求时直接进行语音转换,如此在处理高并发量的请求时,IVR系统就不必将整句请求发送给TTS服务器进行语音转换,从而减少TTS服务器的处理压力,并且提升处理用户呼叫请求的效率。The present application splits the entire sentence query request into fixed quantities and variables, and performs voice conversion on the fixed quantities and variables based on voice packets respectively. The IVR system can directly perform voice conversion when receiving the user's query request. In this way, when processing high-concurrency requests, the IVR system does not have to send the entire sentence request to the TTS server for voice conversion, thereby reducing the processing pressure of the TTS server and improving the efficiency of processing user call requests.

接下来结合图3,对本申请的呼叫信息处理方法进行说明,该方法可以应用于图2所示的数据应答装置中,如图3所示,方法包括:Next, in conjunction with FIG. 3 , the call information processing method of the present application is described. The method can be applied to the data answering device shown in FIG. 2 . As shown in FIG. 3 , the method includes:

S301、根据用户输入的操作类型,确定操作类型对应的待拼接模板,待拼接模板包括:至少一个模板字符串以及变量字符串。S301. Determine a template to be spliced corresponding to the operation type according to the operation type input by the user, where the template to be spliced includes: at least one template string and a variable string.

用户可以通过语音输入、按键输入等方式输入操作类型,每种操作类型分别对应不同的回答文字模板。以股票电话查询的场景为例,用户输入的操作类型可以包括:股票查询操作、交易操作、账号信息查询操作等。The user can input the operation type through voice input, key input, etc. Each operation type corresponds to a different answer text template. Taking the scenario of stock phone inquiry as an example, the operation types input by the user may include: stock inquiry operation, transaction operation, account information inquiry operation, etc.

待拼接模板可以是操作类型对应的回答文字模板,包括至少一个模板字符串以及变量字符串。其中,模板字符串可以是回答文字模板中的固定值,变量字符串可以是回答文字模板中的变化值。变量字符串的值可以基于当前实时数据确定。The template to be spliced may be an answer text template corresponding to the operation type, including at least one template string and a variable string. The template string may be a fixed value in the answer text template, and the variable string may be a variable value in the answer text template. The value of the variable string may be determined based on current real-time data.

示例性的,假设用户输入的操作类型为“股票查询操作”,操作类型对应的待拼接模板为“%stock_code %stock_name 现价 %current_price元,买一价%buy_price元,卖一价%sell_price元”,其中模板字符串包括:“现价 、元、买一价、卖一价”,变量字符串包括:“stock_code、stock_name、current_price、buy_price、sell_price”。For example, assuming that the operation type input by the user is "stock query operation", the template to be spliced corresponding to the operation type is "%stock_code %stock_name current price %current_price yuan, buy price %buy_price yuan, sell price %sell_price yuan", where the template string includes: "current price, yuan, buy price, sell price", and the variable string includes: "stock_code, stock_name, current_price, buy_price, sell_price".

S302、获取模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取变量字符串对应的目标数据,模板语音预先存储在数据应答装置中。S302, obtaining a template voice corresponding to the template character string, and obtaining target data corresponding to the variable character string from a real-time data storage device according to an identifier of an operation object input by a user, wherein the template voice is pre-stored in a data response device.

可选地,数据应答装置中可以预先存储模板字符串对应的模板语音。继续上述示例,语音编码可以统一以1020开头,1020001.pcma录音文件内容为“现价”的模板语音,1020002.pcma录音内容为“买一价”的模板语音,1020003.pcma录音内容为“卖一价”的模板语音,1020004.pcma录音内容为“元”的模板语音。模板语音的录音文件可以采用pcma编码格式,这是呼叫中心通用的无损编码格式,无论录制还是拼接都无需特别的编解码处理,从而提升语音转换的处理效率。Optionally, the template voice corresponding to the template character string can be pre-stored in the data response device. Continuing with the above example, the voice encoding can be uniformly started with 1020, 1020001.pcma recording file content is the template voice of "current price", 1020002.pcma recording content is the template voice of "buy first price", 1020003.pcma recording content is the template voice of "sell first price", 1020004.pcma recording content is the template voice of "yuan". The recording file of the template voice can adopt the pcma encoding format, which is a common lossless encoding format of call centers. No special encoding and decoding processing is required for recording or splicing, thereby improving the processing efficiency of voice conversion.

实时数据存储装置可以是图2中用于存储实时数据的装置,例如存储实时数据的数据库,或是存储实时数据的电子设备等,在股票电话查询场景中,实时数据存储装置可以是交易柜台,用于存储股票代码以及各股票代码所代表的股票的当前行情数据,包括股票代码的名称、现价、买一价、卖一价等。The real-time data storage device can be a device for storing real-time data in Figure 2, such as a database for storing real-time data, or an electronic device for storing real-time data. In the stock telephone inquiry scenario, the real-time data storage device can be a trading counter, which is used to store stock codes and current market data of the stocks represented by each stock code, including the name of the stock code, current price, buy price, sell price, etc.

用户输入的操作对象的标识可以是操作对象的唯一编码或名称等,目标数据可以是变量字符串在实时数据存储装置中的当前数值。The identifier of the operation object input by the user may be a unique code or name of the operation object, etc., and the target data may be the current value of the variable string in the real-time data storage device.

继续以股票电话查询场景为例,操作对象的标识可以是股票代码,用户在输入股票代码之后,数据应答装置可以将股票代码发送给实时数据存储装置,以获取股票代码所代表股票的当前行情数据。Continuing with the example of the stock phone inquiry scenario, the identifier of the operation object may be a stock code. After the user enters the stock code, the data response device may send the stock code to the real-time data storage device to obtain the current market data of the stock represented by the stock code.

作为一种可能的实现方式,实时数据存储装置返回的目标数据的格式可以与数据应答装置中待拼接模板的格式相同,即目标数据与待拼接模板中变量字符串一一对应,且目标数据按照待拼接模板中变量字符串的排列顺序相同。As a possible implementation method, the format of the target data returned by the real-time data storage device can be the same as the format of the template to be spliced in the data response device, that is, the target data corresponds one-to-one to the variable string in the template to be spliced, and the target data is arranged in the same order as the variable string in the template to be spliced.

作为另一种可能的实现方式,实时数据存储装置中可以存储数据以及数据对应的变量字符串。数据应答装置可以将操作对象的标识以及变量字符串都发送给实时数据存储装置,实时数据存储装置可以基于操作对象的标识确定操作对象的所有当前数据,并基于变量字符串在所有当前数据中确定需要返回给数据应答装置的目标数据。As another possible implementation, the real-time data storage device may store data and variable strings corresponding to the data. The data response device may send both the identification of the operation object and the variable string to the real-time data storage device, and the real-time data storage device may determine all current data of the operation object based on the identification of the operation object, and determine the target data that needs to be returned to the data response device from all the current data based on the variable string.

S303、根据目标数据以及当前语音数据库,确定目标数据的目标数据语音,当前语音数据库由语音更新装置动态更新并发送给数据应答装置。S303, determining the target data voice of the target data according to the target data and the current voice database, the current voice database is dynamically updated by the voice updating device and sent to the data response device.

当前语音数据库中可以存储数字以及数字对应的语音文件、操作对象的名称以及名称对应的语音文件、操作对象的其他文字信息以及文字信息对应的语音文件。继续以股票电话查询的场景为例,操作对象的名称可以是操作对象的股票名称,操作对象的其他文字信息可以是股票的市场新闻、公司信息等。The current voice database can store numbers and voice files corresponding to the numbers, names of operation objects and voice files corresponding to the names, other text information of the operation objects and voice files corresponding to the text information. Continuing with the example of a stock phone query, the name of the operation object can be the name of the stock of the operation object, and the other text information of the operation object can be market news, company information, etc. of the stock.

目标数据语音可以包括至少一个语音文件,各语音文件按照目标数据中字符串的顺序排列,各语音文件的读音内容为目标数据中字符串的读音。The target data voice may include at least one voice file, each voice file is arranged in the order of the character string in the target data, and the pronunciation content of each voice file is the pronunciation of the character string in the target data.

确定目标数据之后,可以基于当前语音数据库对目标数据进行语音转换,按照当前语音数据库中存储的数字以及数字对应的语音文件对目标数据中的数字进行语音转换,按照当前语音数据库中存储的文字以及文字对应的语音文件对目标数据中的文字进行语音转换。After determining the target data, the target data can be converted into voice based on the current voice database, the numbers in the target data can be converted into voice according to the numbers stored in the current voice database and the voice files corresponding to the numbers, and the text in the target data can be converted into voice according to the text stored in the current voice database and the voice files corresponding to the text.

语音更新装置可以在当前语音数据库中的数据发生变化时,对当前语音数据库进行更新,并将更新后的当前语音数据库同步推送给数据应答装置。The voice updating device can update the current voice database when the data in the current voice database changes, and synchronously push the updated current voice database to the data response device.

S304、根据模板语音和目标数据语音,生成并输出操作对象的操作结果。S304: Generate and output the operation result of the operation object according to the template voice and the target data voice.

数据应答装置对模板字符串进行语音转换得到模板语音,对变量字符串对应的目标数据进行语音转换得到目标数据语音之后,可以将模板语音和目标数据语音按照待拼接模板的格式进行拼接,得到操作对象的操作结果。The data response device performs voice conversion on the template string to obtain the template voice, and performs voice conversion on the target data corresponding to the variable string to obtain the target data voice. After that, the template voice and the target data voice can be spliced according to the format of the template to be spliced to obtain the operation result of the operation object.

其中,操作对象的操作结果可以是操作结果的语音文件。示例性的,用户进行股票查询时,可以返回操作对象的查询结果的语音播报内容。The operation result of the operation object may be a voice file of the operation result. For example, when a user performs a stock query, the voice broadcast content of the query result of the operation object may be returned.

本申请实施例中,根据用户输入的操作类型,确定操作类型对应的待拼接模板,待拼接模板包括:至少一个模板字符串以及变量字符串,获取模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取变量字符串对应的目标数据,模板语音预先存储在数据应答装置中,根据目标数据以及当前语音数据库,确定目标数据的目标数据语音,当前语音数据库由语音更新装置动态更新并发送给数据应答装置,根据模板语音和目标数据语音,生成并输出操作对象的操作结果。In an embodiment of the present application, according to the operation type input by the user, a template to be spliced corresponding to the operation type is determined, and the template to be spliced includes: at least one template string and a variable string, a template voice corresponding to the template string is obtained, and according to the identifier of the operation object input by the user, the target data corresponding to the variable string is obtained from the real-time data storage device, the template voice is pre-stored in the data response device, and the target data voice of the target data is determined according to the target data and the current voice database. The current voice database is dynamically updated by the voice updating device and sent to the data response device, and the operation result of the operation object is generated and output according to the template voice and the target data voice.

通过将待拼接模板中固定不变的模板字符串的模板语音存储在数据应答装置中,并在从实时数据存储装置中获取目标数据之后,基于预先存储的当前语音数据库对目标数据进行语音转换,可以将语音转换的处理过程都放在数据应答装置本地完成,如此数据应答装置就不必向TTS服务器进行整句请求,也就不存在数据应答装置向TTS进行整句请求的网络延迟,进而减少延迟。并且本申请中语音转换的过程都由数据应答装置在本地完成,即使在高并发量请求的场景下,也不需要配置过多的TTS资源,实现了单路TTS资源满足高并发量请求,降低了TTS服务器部署的成本。本申请中数据应答装置预先存储了语音文件,因此只需要向实时数据存储装置获取实时数据,对模板字符串和目标数据完成语音转换,并对语音进行拼接即可完成整句语音转换,有效提升了语音播报的实时性和可靠性。此外,本申请通过语音更新装置对数据的语音进行预处理,使得数据应答装置与TTS服务器解耦,简化了整个语音播报的流程。By storing the template voice of the fixed template string in the template to be spliced in the data response device, and after obtaining the target data from the real-time data storage device, the target data is converted to voice based on the pre-stored current voice database, the voice conversion process can be completed locally on the data response device, so that the data response device does not need to make a whole sentence request to the TTS server, and there is no network delay for the data response device to make a whole sentence request to TTS, thereby reducing the delay. In addition, the voice conversion process in the present application is completed locally by the data response device, even in the scenario of high concurrent requests, there is no need to configure too many TTS resources, so that a single-channel TTS resource meets high concurrent requests, and reduces the cost of TTS server deployment. In the present application, the data response device pre-stores the voice file, so it only needs to obtain real-time data from the real-time data storage device, complete the voice conversion of the template string and the target data, and splice the voice to complete the whole sentence voice conversion, which effectively improves the real-time and reliability of the voice broadcast. In addition, the present application pre-processes the voice of the data through the voice update device, so that the data response device is decoupled from the TTS server, simplifying the entire voice broadcast process.

接下来对上述语音更新装置动态更新当前语音数据库的过程进行说明,如图4所示,该过程包括:Next, the process of the above-mentioned voice updating device dynamically updating the current voice database is described. As shown in FIG4 , the process includes:

S401、基于预设周期获取当前数据文件,并根据当前数据文件确定当前语音数据库是否需要更新。S401: Acquire a current data file based on a preset period, and determine whether a current voice database needs to be updated according to the current data file.

其中,当前数据文件中包括所有操作对象的标识、操作对象的名称以及操作对象的文字信息。语音更新装置中可以存储上次获取的当前数据文件,并根据上次获取的当前数据文件与本次最新获取的当前数据文件进行比对,确定是否需要更新当前语音数据库。The current data file includes the identifiers of all operation objects, the names of the operation objects, and the text information of the operation objects. The voice updating device can store the current data file obtained last time, and compare the current data file obtained last time with the current data file obtained this time to determine whether the current voice database needs to be updated.

作为一种可能的实现方式,如果上次获取的当前数据文件与本次获取的当前数据文件之间存在差异的数据量大于第一预设值,则可以确定当前语音数据库需要更新。As a possible implementation manner, if the amount of data difference between the current data file obtained last time and the current data file obtained this time is greater than a first preset value, it can be determined that the current voice database needs to be updated.

当前语音数据库可以是最后一次获取的当前数据文件的语音包,包括当前数据文件中的数据以及数据对应的语音文件。The current voice database may be a voice package of the current data file acquired last time, including data in the current data file and a voice file corresponding to the data.

S402、若是,则根据当前数据文件对当前语音数据库进行更新处理,得到更新后的当前语音数据库,并将更新后的当前语音数据库发送给各数据应答装置。S402: If yes, then update the current voice database according to the current data file to obtain an updated current voice database, and send the updated current voice database to each data response device.

其中,根据当前数据文件对当前语音数据库进行更新处理,可以是确定当前数据文件中发生变化的数据,并基于发生变化的数据对当前语音数据库进行更新处理。The updating process of the current voice database according to the current data file may be to determine the changed data in the current data file, and to update the current voice database based on the changed data.

第一种实现方式中,可以只对发生变化的数据增量更新,具体为对发生变化的数据进行语音转换得到语音文件,并基于发生变化的数据的语音文件对当前语音数据库进行更新,得到更新后的当前语音数据库。In the first implementation, only the changed data may be incrementally updated, specifically by performing voice conversion on the changed data to obtain a voice file, and updating the current voice database based on the voice file of the changed data to obtain an updated current voice database.

第二种实现方式中,当发生变化的数据量大于第二预设值,说明本次获取的当前数据文件和上次获取的当前数据文件中存在大量数据发生变化,此时可以对当前语音数据库进行全量更新,具体为对本次获取的当前数据文件中的所有数据进行语音转换,得到更新后的当前语音数据库。In the second implementation method, when the amount of changed data is greater than the second preset value, it means that a large amount of data has changed between the current data file obtained this time and the current data file obtained last time. At this time, the current voice database can be fully updated, specifically, all the data in the current data file obtained this time is converted into voice to obtain an updated current voice database.

本申请实施例中,语音更新装置基于本次获取的当前数据文件和上次获取的当前数据文件对当前语音数据库进行更新,可以节省语音转换装置的资源,由于每天变更的数据一般较少,因此可以对需要更新的数据进行队列化处理,因此只需要一路语音转换装置的资源就可以迅速完成整个当前语音数据库的更新,提升了语音转换的效率。In the embodiment of the present application, the voice updating device updates the current voice database based on the current data file obtained this time and the current data file obtained last time, which can save the resources of the voice conversion device. Since the data that changes every day is generally small, the data that needs to be updated can be queued. Therefore, only the resources of one voice conversion device are needed to quickly complete the update of the entire current voice database, thereby improving the efficiency of voice conversion.

以下是对上述根据当前数据文件确定当前语音数据库是否需要更新的进一步说明,如图5所示,上述步骤S401包括:The following is a further description of the above-mentioned determination of whether the current voice database needs to be updated according to the current data file. As shown in FIG. 5 , the above-mentioned step S401 includes:

S501、对当前数据文件与当前语音数据库的数据文件进行对比,确定当前数据文件与当前语音数据库的数据文件是否相同。S501: Compare a current data file with a data file of a current voice database to determine whether the current data file is identical to the data file of the current voice database.

S502、若相同,则当前语音数据库需要更新,若不相同,则当前语音数据库不需要更新。S502: If they are the same, the current voice database needs to be updated; if they are not the same, the current voice database does not need to be updated.

其中,当前语音数据库的数据文件可以是当前语音数据库上次获取的当前数据文件。The data file of the current voice database may be the current data file acquired last time by the current voice database.

第一种实现方式中,可以计算当前数据文件的文件哈希值以及当前语音数据库的数据文件的文件哈希值,并比较哈希值是否相同,若相同则说明文件内容相同,若不同则说明文件内容存在差异。In the first implementation, the file hash value of the current data file and the file hash value of the data file of the current voice database can be calculated, and the hash values can be compared to see if they are the same. If they are the same, it means that the file contents are the same; if they are different, it means that there are differences in the file contents.

第二种实现方式中,可以对当前数据文件和当前语音数据库的数据文件进行字节比较。例如对当前数据文件中的“XX电子”在当前语音数据库的数据文件中逐个进行字符匹配,若当前语音数据库的数据文件中不存在“XX电子”,则将“XX电子”作为一个更新的数据,若当前语音数据库的数据文件中存在“XX电子”,则继续比对下一字符串,直至完成当前数据文件中所有字符串的比对。In the second implementation, the current data file and the data file of the current voice database can be compared byte by byte. For example, the characters of "XX Electronics" in the current data file are matched one by one in the data file of the current voice database. If "XX Electronics" does not exist in the data file of the current voice database, "XX Electronics" is used as an updated data. If "XX Electronics" exists in the data file of the current voice database, the next character string is compared until all character strings in the current data file are compared.

在确定当前语音数据库需要更新之后,可以根据当前数据文件对当前语音数据库进行更新处理,得到更新后的当前语音数据库,如图6所示,上述步骤S402包括:After determining that the current voice database needs to be updated, the current voice database can be updated according to the current data file to obtain an updated current voice database. As shown in FIG6 , the above step S402 includes:

S601、根据当前数据文件和当前语音数据库的数据文件确定至少一个更新数据。S601. Determine at least one update data according to a current data file and a data file of a current voice database.

值得说明的是,上述步骤S502的第二种实现方式中进行数据比对确定当前语音数据库需要更新的同时,可以同步得到发生变化的数据。作为一种可能的实现方式,当更新数据的条数大于第一预设值时,可以确定需要对当前语音数据库进行更新,并将数据比对时确定的发生变化的数据作为更新数据。It is worth noting that, in the second implementation of step S502, while performing data comparison to determine that the current voice database needs to be updated, the changed data can be obtained synchronously. As a possible implementation, when the number of updated data is greater than a first preset value, it can be determined that the current voice database needs to be updated, and the changed data determined during the data comparison is used as the updated data.

更新数据可以是当前数据文件相比于当前语音数据库的数据文件的新增数据、数据内容发生修改的数据等。The updated data may be new data in the current data file compared to the data file of the current voice database, data with modified data content, and the like.

需要说明的是,数据的标识可以用于唯一区分数据,因此在确定数据内容是否发生修改时,可以对当前数据文件与当前语音数据库的数据文件中具有相同标识的数据进行比对,确定数据内容是否发生修改。也可以基于数据的标识进行比对,确定当前数据文件相比于当前语音数据库的数据文件的新增数据,即当前数据文件中包括、且当前语音数据库的数据文件中不包括的标识。It should be noted that the data identifier can be used to uniquely distinguish the data, so when determining whether the data content has been modified, the data with the same identifier in the current data file and the data file of the current voice database can be compared to determine whether the data content has been modified. It is also possible to compare based on the data identifier to determine the new data in the current data file compared to the data file of the current voice database, that is, the identifier included in the current data file and not included in the data file of the current voice database.

S602、将至少一个更新数据发送给语音转换装置,得到各更新数据的语音信息。S602: Send at least one updated data to a voice conversion device to obtain voice information of each updated data.

其中,更新数据的语音信息可以是更新数据的语音文件。The voice information of the updated data may be a voice file of the updated data.

参照图2,语音更新装置可以将更新数据发送给语音转换装置,由语音转换装置对更新数据进行语音转换,得到各更新数据的语音文件。2 , the voice updating device may send the update data to the voice conversion device, which performs voice conversion on the update data to obtain voice files of each update data.

示例性的,假设当前语音数据库的数据文件中“XX电子”修改为了“XX科技”,则可以使用“XX科技”向语音转换装置进行请求,由语音转换装置对“XX科技”进行语音转换,得到“XX科技”的语音文件,并将语音文件返回给语音更新装置。For example, assuming that "XX Electronics" in the data file of the current voice database is changed to "XX Technology", "XX Technology" can be used to make a request to the voice conversion device, and the voice conversion device will perform voice conversion on "XX Technology" to obtain the voice file of "XX Technology" and return the voice file to the voice update device.

S603、根据各更新数据的语音信息对当前语音数据库进行更新处理,得到更新后的当前语音数据库。S603: Update the current voice database according to the voice information of each update data to obtain an updated current voice database.

对于新增的数据,可以将新增数据以及新增数据的语音信息加入当前语音数据库中。对于内容发生修改的数据,可以对当前语音数据库中的数据以及数据的语音信息进行替换,从而完成对当前语音数据库的更新处理。For newly added data, the newly added data and the voice information of the newly added data can be added to the current voice database. For data with modified content, the data and the voice information of the data in the current voice database can be replaced, thereby completing the update process of the current voice database.

在完成当前语音数据库的更新处理后,语音更新装置可以将更新后的当前语音数据库发送给各数据应答装置,如图7所示,该过程包括:After completing the update process of the current voice database, the voice update device may send the updated current voice database to each data response device, as shown in FIG7 . The process includes:

S701、根据预先存储的数据应答装置列表以及各数据应答装置的开启状态,确定至少一个待更新的数据应答装置。S701: Determine at least one data response device to be updated according to a pre-stored data response device list and the activation status of each data response device.

语音更新装置中可以预先配置多个数据应答装置列表,数据应答装置列表中包括多个已与语音更新装置建立通信的数据应答装置以及各数据应答装置的设备地址。其中,数据应答装置的设备地址可以是IVR系统的ssh地址或FTP目录。The voice updating device may pre-configure multiple data response device lists, which include multiple data response devices that have established communication with the voice updating device and the device addresses of each data response device, wherein the device address of the data response device may be the ssh address or FTP directory of the IVR system.

示例性的,若存在10套IVR系统,则数据应答装置列表中包括10行数据,用户也可以对列表进行修改,例如新增数据应答装置或删除数据应答装置等。For example, if there are 10 IVR systems, the data response device list includes 10 rows of data. The user can also modify the list, such as adding a new data response device or deleting a data response device.

在数据应答装置刚接入语音更新装置时,语音更新装置可以对数据应答装置进行初始化更新,将当前语音数据库全量发给数据应答装置。When the data response device is just connected to the voice updating device, the voice updating device can initialize and update the data response device, and send the current voice database in full to the data response device.

作为一种可能的实现方式,语音更新装置可以基于各数据应答装置的设备地址获取数据应答装置的开启状态,并将开启状态为开启的数据应答装置作为待更新的数据应答装置。As a possible implementation manner, the voice updating device may obtain the activation status of each data response device based on the device address of each data response device, and use the data response device whose activation status is activated as the data response device to be updated.

S702、将更新后的当前语音数据库发送给各待更新的数据应答装置。S702: Send the updated current voice database to each data response device to be updated.

第一种实现方式中,语音更新装置可以基于更新的数据以及数据的语音信息对当前语音数据库进行更新,并将更新后的当前语音数据库发送给各待更新的数据应答装置。In a first implementation, the voice updating device may update the current voice database based on the updated data and the voice information of the data, and send the updated current voice database to each data response device to be updated.

示例性的,假设更新数据“XX科技”的标识为“600570”,更新后数据的语音文件为“600570.pcma文件”,则语音更新装置可以将当前语音数据库中标识为“600570”的语音文件替换为“600570.pcma文件”,得到更新后的当前语音数据库。For example, assuming that the updated data "XX Technology" is identified as "600570", and the voice file of the updated data is "600570.pcma file", the voice updating device can replace the voice file identified as "600570" in the current voice database with "600570.pcma file" to obtain the updated current voice database.

第二种实现方式中,语音更新装置也可以将更新的数据以及数据的语音信息直接发送给各待更新的数据应答装置,由各数据应答装置基于更新的数据以及数据的语音信息对当前语音数据库进行更新。In the second implementation, the voice updating device may also directly send the updated data and the voice information of the data to each data response device to be updated, and each data response device updates the current voice database based on the updated data and the voice information of the data.

示例性的,假设更新数据“XX科技”的标识为“600570”,更新后数据的语音文件为“600570.pcma文件”,则语音更新装置可以将标识为“600570”的语音文件发送给各待更新的数据应答装置,由各数据应答装置将标识为“600570”的语音文件替换为“600570.pcma文件”,得到更新后的当前语音数据库。For example, assuming that the updated data "XX Technology" is identified as "600570", and the voice file of the updated data is "600570.pcma file", the voice updating device can send the voice file identified as "600570" to each data response device to be updated, and each data response device will replace the voice file identified as "600570" with "600570.pcma file" to obtain the updated current voice database.

值得注意的是,为了提升呼叫信息处理系统的稳定性和可靠性,语音更新装置在请求语音转换装置进行语音合成以及向数据应答装置推送数据时,还可以增加异常处理机制。具体可以是通过日志记录错误信息,在重试3次都失败后将当前语音转换任务或数据同步任务延后处理。在一轮更新任务完成后,将错误信息通过接口发送警报通知相关人员,并循环重试未成功的合成/同步任务。It is worth noting that in order to improve the stability and reliability of the call information processing system, the voice update device can also add an exception handling mechanism when requesting the voice conversion device to perform voice synthesis and push data to the data answering device. Specifically, the error information can be recorded in the log, and the current voice conversion task or data synchronization task can be postponed after three failed retries. After a round of update tasks is completed, the error information is sent through the interface to alert the relevant personnel, and the unsuccessful synthesis/synchronization tasks are cyclically retried.

接下来对上述数据应答装置中的处理过程进行说明,上述步骤S302中获取模板字符串对应的模板语音的过程包括:Next, the processing process in the above data response device is described. The process of obtaining the template voice corresponding to the template character string in the above step S302 includes:

从模板语音库中查询模板字符串对应的模板语音,模板语音库中包括:多个模板字符串以及各模板字符串对应的语音信息。A template voice corresponding to a template character string is searched from a template voice library, wherein the template voice library includes: a plurality of template characters and voice information corresponding to each template character string.

模板语音库中包括模板字符串以及模板字符串对应的语音文件。The template voice library includes template strings and voice files corresponding to the template strings.

值得说明的是,模板字符串以及模板字符串的语音文件也可以存储在数据应答装置的当前语音数据库中,模板语音库与当前语音数据库可以是同一数据库,也可以是不同的数据库。It is worth noting that the template character string and the voice file of the template character string can also be stored in the current voice database of the data response device. The template voice database and the current voice database can be the same database or different databases.

作为一种可能的实现方式,模板字符串可以具有标识,用于唯一区分字符串,模板语音库中可以存储模板字符串的标识以及模板字符串的语音文件,标识与语音文件一一对应,查询模板字符串对应的模板语音时,可以从模板语音库中查找模板字符串的标识,将标识对应的语音文件作为模板字符串的模板语音。其中,标识可以是模板字符串的哈希值,也可以是模板字符串本身,本申请在此不做限制。As a possible implementation method, the template string can have an identifier for uniquely distinguishing the string. The template voice library can store the identifier of the template string and the voice file of the template string. The identifier corresponds to the voice file one by one. When querying the template voice corresponding to the template string, the identifier of the template string can be found from the template voice library, and the voice file corresponding to the identifier is used as the template voice of the template string. Among them, the identifier can be the hash value of the template string or the template string itself, which is not limited in this application.

以下是对上述根据用户输入的操作对象的标识从实时数据存储装置中获取变量字符串对应的目标数据的进一步说明,第一种实现方式中,待选数据可以是操作对象的标识在实时数据存储装置中对应的所有数据。实时数据存储装置中存储的数据以及数据的顺序与待拼接模板中变量字符串对应的数据以及顺序可以都相同,此时可以基于操作对象的标识直接获取数据,将标识对应的数据确定为待选数据。The following is a further explanation of the above-mentioned acquisition of target data corresponding to the variable string from the real-time data storage device according to the identifier of the operation object input by the user. In the first implementation, the data to be selected may be all data corresponding to the identifier of the operation object in the real-time data storage device. The data stored in the real-time data storage device and the order of the data may be the same as the data corresponding to the variable string in the template to be spliced. In this case, the data may be directly acquired based on the identifier of the operation object, and the data corresponding to the identifier may be determined as the data to be selected.

第二种实现方式中,实时数据存储装置中存储的数据多于待拼接模板中变量字符串对应的数据,此时如图8所示,上述步骤S302包括:In the second implementation, the data stored in the real-time data storage device is more than the data corresponding to the variable string in the template to be spliced. At this time, as shown in FIG. 8 , the above step S302 includes:

S801、从实时数据存储装置中查找操作对象的标识对应的待选数据。S801. Search for the candidate data corresponding to the identifier of the operation object from the real-time data storage device.

S802、将各待选数据按照变量字符串的顺序排列,得到目标数据。S802: Arrange the candidate data in the order of the variable character string to obtain the target data.

实时数据存储装置中包括:操作对象的标识以及操作对象的实时数据。例如操作对象的标识,即股票代码为“123456”,实时数据存储装置中“123456”对应的数据为“123456|XX电子|123.4|132.9|123.4”。The real-time data storage device includes: the identification of the operation object and the real-time data of the operation object. For example, the identification of the operation object, that is, the stock code is "123456", and the data corresponding to "123456" in the real-time data storage device is "123456|XX Electronics|123.4|132.9|123.4".

实时数据存储装置中存储的数据多于待拼接模板中变量字符串对应的数据时,数据应答装置还可以将需要请求的变量字符串也发送给实时数据存储装置,以使得实时数据存储装置可以基于变量字符串从对应的字段中获取数据。其中,实时数据存储装置中数据的字段可以与变量字符串的变量名称相同。When the data stored in the real-time data storage device is more than the data corresponding to the variable string in the template to be spliced, the data response device can also send the variable string to be requested to the real-time data storage device, so that the real-time data storage device can obtain data from the corresponding field based on the variable string. The field of the data in the real-time data storage device can be the same as the variable name of the variable string.

示例性的,假设用户需要查询股票代码为“123456”的现价,数据应答装置可以将股票代码“123456”、现价的变量字符串“current_price”以及买一价的变量字符串“buy_price”都发送给实时数据存储装置,实时数据存储装置基于“123456”确定数据之后,可以继续基于变量字符串“current_price”、“buy_price”匹配数据的字段,得到待选数据。For example, assuming that the user needs to query the current price of the stock code "123456", the data response device can send the stock code "123456", the variable string "current_price" of the current price, and the variable string "buy_price" of the buy price to the real-time data storage device. After the real-time data storage device determines the data based on "123456", it can continue to match the data fields based on the variable strings "current_price" and "buy_price" to obtain the selected data.

另一种实现方式中,实时数据存储装置也可以将所有数据以键值对的形式都返回给数据应答装置,键值对的键可以是数据的字段,键值对的值可以是数据的值,由数据应答装置基于变量字符串对数据进行匹配,确定与变量字符串字段相同的数据为待选数据。In another implementation, the real-time data storage device can also return all data to the data response device in the form of key-value pairs. The key of the key-value pair can be the field of the data, and the value of the key-value pair can be the value of the data. The data response device matches the data based on the variable string and determines that the data that is the same as the variable string field is the selected data.

确定待选数据之后,可以将待选数据按照待拼接模板中变量字符串的排列顺序进行排列,得到目标数据。After determining the data to be selected, the data to be selected can be arranged according to the arrangement order of the variable character strings in the template to be spliced to obtain the target data.

上述根据目标数据以及当前语音数据库,确定目标数据的目标数据语音的步骤包括:The step of determining the target data voice of the target data according to the target data and the current voice database includes:

从当前语音数据库中查找目标数据对应的目标数据语音。Search the target data voice corresponding to the target data from the current voice database.

其中,当前语音数据库中存储数据以及数据的语音文件。The current voice database stores data and voice files of the data.

值得说明的是,当前语音数据库中可以存储单个数字以及单个数字的语音文件,例如数字“1、2、3、4、5、6、7、8、9、0”的语音文件为依次为“901.pcma 、902.pcma 、903.pcma、904.pcma 、905.pcma 、906.pcma、907.pcma 、908.pcma 、909.pcma 、900.pcma”,目标数据123.4的目标数据语音为“901.pcma、902.pcma、903.pcma、910.pcma、904.pcma”,其中,910.pcma读音内容为“点”。It is worth noting that the current voice database can store single numbers and voice files of single numbers. For example, the voice files of the numbers "1, 2, 3, 4, 5, 6, 7, 8, 9, 0" are "901.pcma, 902.pcma, 903.pcma, 904.pcma, 905.pcma, 906.pcma, 907.pcma, 908.pcma, 909.pcma, 900.pcma" respectively, and the target data voice of the target data 123.4 is "901.pcma, 902.pcma, 903.pcma, 910.pcma, 904.pcma", among which the pronunciation content of 910.pcma is "dot".

在存储文字以及文字对应的语音文件时,可以存储词组以及词组对应的语音信息,例如目标数据“XX电子”的目标数据语音为语音文件“11023.pcma”,读音内容为“XX电子”。When storing text and the voice files corresponding to the text, phrases and the voice information corresponding to the phrases may be stored. For example, the target data voice of the target data "XX Electronics" is the voice file "11023.pcma", and the pronunciation content is "XX Electronics".

可选地,目标数据为变量字符串的值。Optionally, the target data is the value of the variable string.

数据应答装置得到目标数据之后,可以将目标数据赋值给变量字符串。示例性的,实时数据存储装置返回的文本为“123456|XX电子|123.4|132.9|123.4”。数据应答装置可以根据约定格式使用该文本串为变量赋值:Stock_code = 123456, stock_name=XX电子,current_price=123.4, buy_price=132.9, sell_price=123.4。After the data response device obtains the target data, it can assign the target data to the variable string. For example, the text returned by the real-time data storage device is "123456|XX Electronics|123.4|132.9|123.4". The data response device can use the text string to assign values to the variables according to the agreed format: Stock_code = 123456, stock_name = XX Electronics, current_price = 123.4, buy_price = 132.9, sell_price = 123.4.

上述根据模板语音和目标数据语音,生成并输出操作对象的操作结果的过程包括:The above process of generating and outputting the operation result of the operation object according to the template voice and the target data voice includes:

将模板语音填入模板字符串对应的位置,将目标数据语音填入变量字符串对应的位置,得到操作对象的操作结果。Fill the template voice into the position corresponding to the template string, fill the target data voice into the position corresponding to the variable string, and obtain the operation result of the operation object.

本申请中数据应答装置可以按照待拼接模板中模板字符串和变量字符串的顺序,对各模板字符串的语音文件和变量字符串的语音文件按照顺序进行拼接,得到操作对象的操作结果。In the present application, the data response device can splice the voice files of each template string and the voice files of the variable string in order according to the order of the template string and the variable string in the template to be spliced, so as to obtain the operation result of the operation object.

基于同一发明构思,本申请实施例中还提供了与呼叫信息处理方法对应的呼叫信息处理装置,由于本申请实施例中的装置解决问题的原理与本申请实施例上述呼叫信息处理方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, a call information processing device corresponding to the call information processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned call information processing method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

图9示出了本申请实施例所提供的一种呼叫信息处理装置的结构示意图。FIG. 9 shows a schematic diagram of the structure of a call information processing device provided in an embodiment of the present application.

第一确定模块901,用于根据用户输入的操作类型,确定操作类型对应的待拼接模板,待拼接模板包括:至少一个模板字符串以及变量字符串;The first determination module 901 is used to determine, according to the operation type input by the user, a template to be spliced corresponding to the operation type, where the template to be spliced includes: at least one template string and a variable string;

获取模块902,用于获取模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取变量字符串对应的目标数据,模板语音预先存储在数据应答装置中;The acquisition module 902 is used to acquire the template voice corresponding to the template character string, and acquire the target data corresponding to the variable character string from the real-time data storage device according to the identifier of the operation object input by the user, and the template voice is pre-stored in the data response device;

第二确定模块903,用于根据目标数据以及当前语音数据库,确定目标数据的目标数据语音,当前语音数据库由语音更新装置动态更新并发送给数据应答装置;The second determination module 903 is used to determine the target data voice of the target data according to the target data and the current voice database, the current voice database is dynamically updated by the voice updating device and sent to the data response device;

生成模块903,用于根据模板语音和目标数据语音,生成并输出操作对象的操作结果。The generating module 903 is used to generate and output the operation result of the operation object according to the template voice and the target data voice.

可选地,获取模块902具体用于:Optionally, the acquisition module 902 is specifically used for:

从模板语音库中查询模板字符串对应的模板语音,模板语音库中包括:多个模板字符串以及各模板字符串对应的语音信息。A template voice corresponding to a template character string is searched from a template voice library, wherein the template voice library includes: a plurality of template characters and voice information corresponding to each template character string.

可选地,获取模块902具体用于:Optionally, the acquisition module 902 is specifically used for:

从实时数据存储装置中查找操作对象的标识对应的待选数据;Searching for the selected data corresponding to the identifier of the operation object from the real-time data storage device;

将各待选数据按照变量字符串的顺序排列,得到目标数据。Arrange the candidate data in the order of the variable character string to obtain the target data.

可选地,第二确定模块903具体用于:Optionally, the second determining module 903 is specifically configured to:

从当前语音数据库中查找目标数据对应的目标数据语音。Search the target data voice corresponding to the target data from the current voice database.

可选地,目标数据为变量字符串的值;Optionally, the target data is the value of the variable string;

生成模块903具体用于:The generation module 903 is specifically used for:

将模板语音填入模板字符串对应的位置,将目标数据语音填入变量字符串对应的位置,得到操作对象的操作结果。Fill the template voice into the position corresponding to the template string, fill the target data voice into the position corresponding to the variable string, and obtain the operation result of the operation object.

本申请实施例还提供一种语音更新装置的结构示意图,如图10所示,语音更新装置中包括第三确定模块1001以及更新模块1002,其中:The embodiment of the present application further provides a structural diagram of a voice updating device, as shown in FIG10 , the voice updating device includes a third determining module 1001 and an updating module 1002, wherein:

第三确定模块1001,用于基于预设周期获取当前数据文件,并根据当前数据文件确定当前语音数据库是否需要更新;The third determination module 1001 is used to obtain the current data file based on a preset period, and determine whether the current voice database needs to be updated according to the current data file;

更新模块1002,用于若是,则根据当前数据文件对当前语音数据库进行更新处理,得到更新后的当前语音数据库,并将更新后的当前语音数据库发送给各数据应答装置。The updating module 1002 is used for updating the current voice database according to the current data file to obtain an updated current voice database, and sending the updated current voice database to each data response device.

可选地,第三确定模块1001具体用于:Optionally, the third determining module 1001 is specifically configured to:

对当前数据文件与当前语音数据库的数据文件进行对比,确定当前数据文件与当前语音数据库的数据文件是否相同;Comparing the current data file with the data file of the current voice database to determine whether the current data file is the same as the data file of the current voice database;

若相同,则当前语音数据库需要更新,若不相同,则当前语音数据库不需要更新。If they are the same, the current voice database needs to be updated; if they are not the same, the current voice database does not need to be updated.

可选地,更新模块1002具体用于:Optionally, the updating module 1002 is specifically configured to:

根据当前数据文件和当前语音数据库的数据文件确定至少一个更新数据;Determine at least one update data according to the current data file and the data file of the current voice database;

将至少一个更新数据发送给语音转换装置,得到各更新数据的语音信息;Sending at least one updated data to the voice conversion device to obtain voice information of each updated data;

根据各更新数据的语音信息对当前语音数据库进行更新处理,得到更新后的当前语音数据库。The current voice database is updated according to the voice information of each update data to obtain an updated current voice database.

可选地,更新模块1002具体用于:Optionally, the updating module 1002 is specifically configured to:

根据预先存储的数据应答装置列表以及各数据应答装置的开启状态,确定至少一个待更新的数据应答装置;Determining at least one data response device to be updated according to a pre-stored data response device list and an activation state of each data response device;

将更新后的当前语音数据库发送给各待更新的数据应答装置。The updated current voice database is sent to each data response device to be updated.

本申请实施例通过将待拼接模板中固定不变的模板字符串的模板语音存储在数据应答装置中,并在从实时数据存储装置中获取目标数据之后,基于预先存储的当前语音数据库对目标数据进行语音转换,可以将语音转换的处理过程都放在数据应答装置本地完成,如此数据应答装置就不必向TTS服务器进行整句请求,也就不存在数据应答装置向TTS进行整句请求的网络延迟,进而减少延迟。并且本申请中语音转换的过程都由数据应答装置在本地完成,即使在高并发量请求的场景下,也不需要配置过多的TTS资源,实现了单路TTS资源满足高并发量请求,降低了TTS服务器部署的成本。本申请中数据应答装置预先存储了语音文件,因此只需要向实时数据存储装置获取实时数据,对模板字符串和目标数据完成语音转换,并对语音进行拼接即可完成整句语音转换,有效提升了语音播报的实时性和可靠性。此外,本申请通过语音更新装置对数据的语音进行预处理,使得数据应答装置与TTS服务器解耦,简化了整个语音播报的流程。In the embodiment of the present application, the template voice of the fixed template string in the template to be spliced is stored in the data response device, and after obtaining the target data from the real-time data storage device, the target data is converted to voice based on the pre-stored current voice database, so that the processing process of voice conversion can be completed locally in the data response device, so that the data response device does not need to make a whole sentence request to the TTS server, and there is no network delay for the data response device to make a whole sentence request to TTS, thereby reducing the delay. In addition, the voice conversion process in the present application is completed locally by the data response device, even in the scenario of high concurrent requests, there is no need to configure too many TTS resources, so that a single-channel TTS resource meets high concurrent requests, and the cost of TTS server deployment is reduced. In the present application, the data response device pre-stores the voice file, so it only needs to obtain real-time data from the real-time data storage device, complete the voice conversion of the template string and the target data, and splice the voice to complete the whole sentence voice conversion, which effectively improves the real-time and reliability of voice broadcasting. In addition, the present application pre-processes the voice of the data through the voice update device, so that the data response device is decoupled from the TTS server, simplifying the entire voice broadcasting process.

本申请实施例还提供一种呼叫信息处理系统,参照图2,呼叫信息处理系统中包括实时数据存储装置、语音更新装置、语音转换装置以及至少一个数据应答装置,数据应答装置可以是图2中的IVR系统。An embodiment of the present application also provides a call information processing system. Referring to FIG. 2 , the call information processing system includes a real-time data storage device, a voice updating device, a voice conversion device, and at least one data response device. The data response device may be the IVR system in FIG. 2 .

图11示出了本申请实施例所提供的一种电子设备的结构示意图,包括:处理器1101、存储介质1102和总线1103,所述存储介质1102存储有所述处理器1101可执行的机器可读指令,当电子设备运行如实施例中的呼叫信息处理方法时,所述处理器1101与所述存储介质1102之间通过总线1103通信,所述处理器1101执行所述机器可读指令,所述处理器1101方法项的前序部分,以执行上述呼叫信息处理方法的步骤。Figure 11 shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, including: a processor 1101, a storage medium 1102 and a bus 1103, wherein the storage medium 1102 stores machine-readable instructions executable by the processor 1101. When the electronic device runs the call information processing method in the embodiment, the processor 1101 communicates with the storage medium 1102 through the bus 1103, and the processor 1101 executes the machine-readable instructions and the preamble of the method item of the processor 1101 to execute the steps of the above-mentioned call information processing method.

本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行,所述处理器执行上述呼叫信息处理方法的步骤。The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program is executed when a processor is running, and the processor executes the steps of the above-mentioned call information processing method.

在本申请实施例中,该计算机程序被处理器运行时还可以执行其它机器可读指令,以执行如实施例中其它所述的方法,关于具体执行的方法步骤和原理参见实施例的说明,在此不再详细赘述。In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请提供的实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释,此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

最后应说明的是:以上所述实施例,仅为本申请的具体实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围。都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims (12)

1.一种呼叫信息处理方法,其特征在于,应用于数据应答装置,所述方法包括:1. A call information processing method, characterized in that it is applied to a data answering device, the method comprising: 根据用户输入的操作类型,确定所述操作类型对应的待拼接模板,所述待拼接模板包括:至少一个模板字符串以及变量字符串;Determine, according to the operation type input by the user, a template to be spliced corresponding to the operation type, wherein the template to be spliced includes: at least one template string and a variable string; 获取所述模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取所述变量字符串对应的目标数据,所述模板语音预先存储在所述数据应答装置中;Acquire the template voice corresponding to the template character string, and acquire the target data corresponding to the variable character string from the real-time data storage device according to the identifier of the operation object input by the user, wherein the template voice is pre-stored in the data response device; 根据所述目标数据以及当前语音数据库,确定所述目标数据的目标数据语音,所述当前语音数据库由语音更新装置动态更新并发送给所述数据应答装置;Determine the target data voice of the target data according to the target data and the current voice database, the current voice database is dynamically updated by the voice updating device and sent to the data response device; 根据所述模板语音和所述目标数据语音,生成并输出所述操作对象的操作结果;Generate and output the operation result of the operation object according to the template voice and the target data voice; 所述根据所述目标数据以及当前语音数据库,确定所述目标数据的目标数据语音,包括:Determining the target data voice of the target data according to the target data and the current voice database includes: 从所述当前语音数据库中查找所述目标数据对应的所述目标数据语音,所述当前语音数据库中存储如下内容:数字以及数字对应的语音文件、操作对象的名称以及操作对象的名称对应的语音文件、操作对象的文字信息以及文字信息对应的语音文件。The target data voice corresponding to the target data is searched from the current voice database, wherein the current voice database stores the following contents: numbers and voice files corresponding to the numbers, names of operation objects and voice files corresponding to the names of operation objects, text information of operation objects and voice files corresponding to the text information. 2.根据权利要求1所述的方法,其特征在于,所述语音更新装置动态更新所述当前语音数据库的过程包括:2. The method according to claim 1, characterized in that the process of the voice updating device dynamically updating the current voice database comprises: 基于预设周期获取当前数据文件,并根据所述当前数据文件确定所述当前语音数据库是否需要更新;Acquire a current data file based on a preset period, and determine whether the current voice database needs to be updated according to the current data file; 若是,则根据所述当前数据文件对所述当前语音数据库进行更新处理,得到更新后的当前语音数据库,并将所述更新后的当前语音数据库发送给各所述数据应答装置。If so, the current voice database is updated according to the current data file to obtain an updated current voice database, and the updated current voice database is sent to each of the data response devices. 3.根据权利要求2所述的方法,其特征在于,所述根据所述当前数据文件确定所述当前语音数据库是否需要更新,包括:3. The method according to claim 2, characterized in that the step of determining whether the current voice database needs to be updated according to the current data file comprises: 对所述当前数据文件与所述当前语音数据库的数据文件进行对比,确定所述当前数据文件与所述当前语音数据库的数据文件是否相同;Comparing the current data file with the data file of the current voice database to determine whether the current data file is the same as the data file of the current voice database; 若相同,则所述当前语音数据库需要更新,若不相同,则所述当前语音数据库不需要更新。If they are the same, the current voice database needs to be updated; if they are not the same, the current voice database does not need to be updated. 4.根据权利要求3所述的方法,其特征在于,所述根据所述当前数据文件对所述当前语音数据库进行更新处理,得到更新后的当前语音数据库,包括:4. The method according to claim 3, characterized in that the updating process of the current voice database according to the current data file to obtain the updated current voice database comprises: 根据所述当前数据文件和所述当前语音数据库的数据文件确定至少一个更新数据;Determine at least one update data according to the current data file and the data file of the current voice database; 将所述至少一个更新数据发送给语音转换装置,得到各所述更新数据的语音信息;Sending the at least one updated data to a voice conversion device to obtain voice information of each updated data; 根据各所述更新数据的语音信息对所述当前语音数据库进行更新处理,得到所述更新后的当前语音数据库。The current voice database is updated according to the voice information of each update data to obtain the updated current voice database. 5.根据权利要求2所述的方法,其特征在于,所述将所述更新后的当前语音数据库发送给各所述数据应答装置,包括:5. The method according to claim 2, characterized in that the step of sending the updated current voice database to each of the data response devices comprises: 根据预先存储的数据应答装置列表以及各所述数据应答装置的开启状态,确定至少一个待更新的数据应答装置;Determining at least one data response device to be updated according to a pre-stored data response device list and an activation state of each of the data response devices; 将所述更新后的当前语音数据库发送给各所述待更新的数据应答装置。The updated current voice database is sent to each of the data response devices to be updated. 6.根据权利要求1所述的方法,其特征在于,所述获取所述模板字符串对应的模板语音,包括:6. The method according to claim 1, characterized in that the step of obtaining the template speech corresponding to the template character string comprises: 从模板语音库中查询所述模板字符串对应的所述模板语音,所述模板语音库中包括:多个模板字符串以及各模板字符串对应的语音信息。The template speech corresponding to the template character string is searched from a template speech library, wherein the template speech library includes: a plurality of template character strings and speech information corresponding to each template character string. 7.根据权利要求1所述的方法,其特征在于,所述根据用户输入的操作对象的标识从实时数据存储装置中获取所述变量字符串对应的目标数据,包括:7. The method according to claim 1, characterized in that the step of obtaining the target data corresponding to the variable character string from a real-time data storage device according to the identifier of the operation object input by the user comprises: 从所述实时数据存储装置中查找所述操作对象的标识对应的待选数据;Searching the real-time data storage device for the selected data corresponding to the identifier of the operation object; 将各所述待选数据按照所述变量字符串的顺序排列,得到所述目标数据。Arrange the selected data in the order of the variable character strings to obtain the target data. 8.根据权利要求1所述的方法,其特征在于,所述目标数据为所述变量字符串的值;8. The method according to claim 1, wherein the target data is the value of the variable string; 所述根据所述模板语音和所述目标数据语音,生成并输出所述操作对象的操作结果,包括:The step of generating and outputting the operation result of the operation object according to the template voice and the target data voice includes: 将所述模板语音填入所述模板字符串对应的位置,将所述目标数据语音填入所述变量字符串对应的位置,得到所述操作对象的操作结果。The template voice is filled into the position corresponding to the template character string, and the target data voice is filled into the position corresponding to the variable character string to obtain the operation result of the operation object. 9.一种数据应答装置,其特征在于,包括:9. A data response device, comprising: 第一确定模块,用于根据用户输入的操作类型,确定所述操作类型对应的待拼接模板,所述待拼接模板包括:至少一个模板字符串以及变量字符串;A first determination module is used to determine, according to an operation type input by a user, a template to be spliced corresponding to the operation type, wherein the template to be spliced includes: at least one template string and a variable string; 获取模块,用于获取所述模板字符串对应的模板语音,并根据用户输入的操作对象的标识从实时数据存储装置中获取所述变量字符串对应的目标数据,所述模板语音预先存储在所述数据应答装置中;An acquisition module, used to acquire the template voice corresponding to the template character string, and acquire the target data corresponding to the variable character string from the real-time data storage device according to the identifier of the operation object input by the user, wherein the template voice is pre-stored in the data response device; 第二确定模块,用于根据所述目标数据以及当前语音数据库,确定所述目标数据的目标数据语音,所述当前语音数据库由语音更新装置动态更新并发送给所述数据应答装置;A second determination module, for determining the target data voice of the target data according to the target data and a current voice database, wherein the current voice database is dynamically updated by a voice updating device and sent to the data response device; 生成模块,用于根据所述模板语音和所述目标数据语音,生成并输出所述操作对象的操作结果;A generating module, used for generating and outputting the operation result of the operation object according to the template voice and the target data voice; 所述第二确定模块,用于:The second determining module is used to: 从所述当前语音数据库中查找所述目标数据对应的所述目标数据语音,所述当前语音数据库中存储如下内容:数字以及数字对应的语音文件、操作对象的名称以及操作对象的名称对应的语音文件、操作对象的文字信息以及文字信息对应的语音文件。The target data voice corresponding to the target data is searched from the current voice database, wherein the current voice database stores the following contents: numbers and voice files corresponding to the numbers, names of operation objects and voice files corresponding to the names of operation objects, text information of operation objects and voice files corresponding to the text information. 10.一种呼叫信息处理系统,其特征在于,包括如权利要求1-8任一项所述呼叫信息处理方法中的数据应答装置、实时数据存储装置、语音更新装置以及语音转换装置。10. A call information processing system, characterized in that it comprises a data answering device, a real-time data storage device, a voice updating device and a voice conversion device in the call information processing method according to any one of claims 1 to 8. 11.一种电子设备,其特征在于,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如权利要求1至8中任一项所述一种呼叫信息处理方法的步骤。11. An electronic device, characterized in that it comprises: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of a call information processing method as described in any one of claims 1 to 8. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求1至8中任一项所述一种呼叫信息处理方法的步骤。12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the call information processing method according to any one of claims 1 to 8 are executed.
CN202410889449.1A 2024-07-04 2024-07-04 Call information processing method, data response device and call information processing system Active CN118433309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410889449.1A CN118433309B (en) 2024-07-04 2024-07-04 Call information processing method, data response device and call information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410889449.1A CN118433309B (en) 2024-07-04 2024-07-04 Call information processing method, data response device and call information processing system

Publications (2)

Publication Number Publication Date
CN118433309A CN118433309A (en) 2024-08-02
CN118433309B true CN118433309B (en) 2024-09-10

Family

ID=92326429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410889449.1A Active CN118433309B (en) 2024-07-04 2024-07-04 Call information processing method, data response device and call information processing system

Country Status (1)

Country Link
CN (1) CN118433309B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115862585A (en) * 2022-01-12 2023-03-28 北京中关村科金技术有限公司 Templated speech synthesis method, device, device and computer-readable storage medium

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411263A (en) * 2002-11-14 2003-04-16 嘉兴市中科网络有限公司 Speech information system through internet
KR20030084866A (en) * 2003-10-14 2003-11-01 민수천 The method of telephone callback service
CN1989733A (en) * 2004-05-21 2007-06-27 电缆优势软件有限公司 Remote access system and method and intelligent agent therefor
US20080084974A1 (en) * 2006-09-25 2008-04-10 International Business Machines Corporation Method and system for interactively synthesizing call center responses using multi-language text-to-speech synthesizers
US8060565B1 (en) * 2007-01-31 2011-11-15 Avaya Inc. Voice and text session converter
CN100544463C (en) * 2007-06-29 2009-09-23 中兴通讯股份有限公司 A system and method for providing a unified development platform for speech synthesis applications
US8811578B2 (en) * 2009-03-23 2014-08-19 Telemanager Technologies, Inc. System and method for providing local interactive voice response services
KR101074069B1 (en) * 2009-09-30 2011-10-17 주식회사 케이티 System of Private Branch Exchange and Method of Speech Synthesis
CN102324995B (en) * 2011-04-20 2013-12-25 铁道部运输局 Speech broadcasting method and system
CN102568471A (en) * 2011-12-16 2012-07-11 安徽科大讯飞信息科技股份有限公司 Voice synthesis method, device and system
PL401347A1 (en) * 2012-10-25 2014-04-28 Ivona Software Spółka Z Ograniczoną Odpowiedzialnością Consistent interface for local and remote speech synthesis
CN105208231B (en) * 2014-06-11 2019-07-05 阿里巴巴集团控股有限公司 A kind of voice broadcast method and related system based on IVR
US9558736B2 (en) * 2014-07-02 2017-01-31 Bose Corporation Voice prompt generation combining native and remotely-generated speech data
CN110880326B (en) * 2018-09-05 2022-06-14 陈旭 Voice interaction system and method
CN110913082B (en) * 2018-09-14 2021-02-19 中国电信股份有限公司 Call center and cloud resource multi-tenant management method, device and system thereof
CN109327629A (en) * 2018-11-01 2019-02-12 深圳市号互联科技有限公司 A kind of artificial intelligent voice navigation data processing method
CN110600001A (en) * 2019-09-09 2019-12-20 大唐网络有限公司 Voice generation method and device
CN215186771U (en) * 2021-04-21 2021-12-14 广州市新三雅电子技术有限公司 Intelligent visual emergency broadcasting system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115862585A (en) * 2022-01-12 2023-03-28 北京中关村科金技术有限公司 Templated speech synthesis method, device, device and computer-readable storage medium

Also Published As

Publication number Publication date
CN118433309A (en) 2024-08-02

Similar Documents

Publication Publication Date Title
US9817802B2 (en) Intelligent automatic expansion/contraction of abbreviations in text-based electronic communications
KR100620826B1 (en) Interactive computing systems and methods, interactive virtual machines, program storage devices, and how to conduct transactions
US9202247B2 (en) System and method utilizing voice search to locate a product in stores from a phone
US20040123236A1 (en) Method and apparatus for caching documents
JP2002162988A (en) Voice recognition system and its control method, and computer-readable memory
US11494376B2 (en) Data query method supporting natural language, open platform, and user terminal
CN111309857A (en) Processing method and processing device
CN108959294B (en) Method and device for accessing search engine
CN118433309B (en) Call information processing method, data response device and call information processing system
CN108337357B (en) Audio playback method and device
CN114490124A (en) Method, apparatus, device and medium for calling application programming interface API
CN113946652A (en) Information query method and device, computer readable storage medium and electronic equipment
CN108881507A (en) A kind of voice browser
CN113468529A (en) Data searching method and device
CN116304224A (en) Request processing method and device, storage medium and electronic equipment
CN117130990A (en) Data processing method and device
US20230138113A1 (en) System for retrieval of large datasets in cloud environments
CN114647688A (en) Service data sharing method and device and computer storage medium
JPH113296A (en) Medium conversion system
CN112416924B (en) Data synchronization query method, device, computer device and storage medium
CN112597119A (en) Method and device for generating processing log and storage medium
CN108491448B (en) Data pushing method and device
CN112631995A (en) Log query method, device and storage medium
CN117118905B (en) A method and device for route registration and route invocation
CN111506560A (en) Database master-slave switching method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant