Voice data processing method, device, equipment and storage medium

By establishing a transmission channel between the operating system and the application in the vehicle computer system and obtaining and transmitting voice data information, the problem of inconsistency between the voice data of the vehicle computer system and the application program is solved, the unity of voice broadcasting is achieved, and the user experience is improved.

CN113886100BActive Publication Date: 2024-12-17APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111114645.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-23
Publication Date
2024-12-17
Estimated Expiration
2041-09-23

AI Technical Summary

Technical Problem

In the prior art, the voice data of the vehicle computer system and the application program are usually inconsistent, resulting in inconsistent user experience.

Method used

By establishing a transmission channel between the operating system and the application, obtaining and transmitting voice data information, ensuring that the operating system and the application use consistent voice data, using the ContentProvider component of the Android system to achieve cross-process communication, storing voice data in the database, making it easier to data Share and update.

Benefits of technology

It realizes the consistency of voice broadcast between the vehicle computer system and the application program and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886100B_ABST
    Figure CN113886100B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, equipment and storage medium for processing voice data, which relates to the field of computer technology, and specifically to technical fields such as Internet of Vehicles, smart cockpits, speech synthesis, and applications. The method for processing voice data includes: obtaining information about voice data used by an operating system; transmitting the information about the voice data to the application through a transmission channel between the operating system and the application, wherein the information about the voice data is used to indicate that the application uses voice data corresponding to the information about the voice data. The present disclosure can ensure that the voice broadcast of the operating system and the application is consistent, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to technical fields such as Internet of Vehicles, smart cockpits, speech synthesis, and applications, and in particular to a method, device, equipment, and storage medium for processing speech data. Background Art

[0002] With the development of intelligence, users can install applications (Application, APP) on the car computer according to their own needs. The APP installed on the car computer can use the application voice data for application voice broadcast, and the car computer system can use the system voice data for system voice broadcast.

[0003] In the related art, application voice data and system voice data are usually inconsistent. Summary of the invention

[0004] The present disclosure provides a method, apparatus, device and storage medium for processing voice data.

[0005] According to one aspect of the present disclosure, a method for processing voice data is provided, comprising: obtaining information about voice data used by an operating system; transmitting the information about the voice data to the application through a transmission channel between the operating system and the application, wherein the information about the voice data is used to indicate that the application uses voice data corresponding to the information about the voice data.

[0006] According to another aspect of the present disclosure, a method for processing voice data is provided, comprising: obtaining information of voice data used by the operating system through a transmission channel between an application and the operating system; and determining that the application uses voice data corresponding to the information of the voice data.

[0007] According to another aspect of the present disclosure, a voice data processing device is provided, including: an acquisition module, used to acquire information of voice data used by an operating system; a transmission module, used to transmit the voice data information to the application through a transmission channel between the operating system and the application, the voice data information being used to indicate that the application uses voice data corresponding to the voice data information.

[0008] According to another aspect of the present disclosure, a voice data processing device is provided, including: an acquisition module, used to acquire voice data used by the operating system through a transmission channel between the application and the operating system; and a determination module, used to determine that the application uses voice data corresponding to information of the voice data.

[0009] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method as described in any of the above aspects.

[0010] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to any one of the above aspects.

[0011] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in any one of the above aspects.

[0012] According to the technical solution disclosed in the present invention, the voice broadcast of the vehicle computer's operating system can be ensured to be consistent with that of the application, thereby improving the user experience.

[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0015] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;

[0016] Figure 2 is a schematic diagram according to a second embodiment of the present disclosure;

[0017] Figure 3 is a schematic diagram according to a third embodiment of the present disclosure;

[0018] Figure 4 is a schematic diagram according to a fourth embodiment of the present disclosure;

[0019] Figure 5 is a schematic diagram according to a fifth embodiment of the present disclosure;

[0020] Figure 6 is a schematic diagram according to a sixth embodiment of the present disclosure;

[0021] Figure 7 is a schematic diagram according to a seventh embodiment of the present disclosure;

[0022] Figure 8It is a schematic diagram of an electronic device used to implement any one of the methods for processing voice data in the embodiments of the present disclosure. DETAILED DESCRIPTION

[0023] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0024] In the related art, application voice data and system voice data are usually inconsistent, so that the system voice broadcast and the application voice broadcast are inconsistent, which affects the user experience.

[0025] In order to ensure that the voice broadcast of the operating system and the application are consistent and improve the user experience, the present disclosure provides the following embodiments.

[0026] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure. This embodiment provides a method for processing voice data, the method comprising:

[0027] 101. Obtain information about voice data used by the operating system.

[0028] 102. Transmit the voice data information to the application through a transmission channel between the operating system and the application, wherein the voice data information is used to instruct the application to use the voice data corresponding to the voice data information.

[0029] The present embodiment may be applied to an electronic device, which may be a smart device on which an application (APP) may be installed.

[0030] Electronic devices may include many types, such as car computers, mobile phones, tablet computers, wearable devices, smart home devices, etc.

[0031] Taking the car computer as an example, the car computer refers to the abbreviation of the in-vehicle infotainment product installed in the vehicle. The car computer can functionally realize information communication between people and cars, and between cars and the outside world (cars and cars).

[0032] The car computer is usually installed in the center console of the vehicle.

[0033] The vehicle computer may include an operating system, which may be referred to as a vehicle computer ROM. Applications (APPs) may be installed on the vehicle computer, and the applications may be installed on the vehicle computer by a user. For example, the APPs installed by the user include a map APP, a music APP, and the like.

[0034] The operating system and the application may respectively use their own voice data for voice broadcasting. For the purpose of distinction, the voice data used by the operating system may be referred to as first voice data, and the voice data used by the application may be referred to as second voice data.

[0035] The operating system may use the first voice data to perform system-related voice announcements. For example, after the user adjusts the brightness of the system, the system may use the first voice data to voice announce contents such as “the system brightness has been adjusted”.

[0036] The application may use the second voice data to perform voice broadcasting related to the application. For example, if the application is a map APP, the map APP may use the second voice data to perform voice broadcasting of the navigation route, etc.

[0037] In the related art, the first voice data and the second voice data are independent and generally different. Therefore, when the user uses the operating system and the application, the voice broadcast effect will be inconsistent, affecting the user experience.

[0038] In order to unify the effect of voice broadcast, in this embodiment, the first voice data and the second voice data can be controlled to be consistent.

[0039] like Figure 2 As shown, the vehicle computer may include an operating system, and applications may be installed on the vehicle computer, and a transmission channel may be established between the operating system and the applications.

[0040] In some embodiments, the operating system is an Android system, and the method further includes: establishing a transmission channel with the application based on a content provider component provided by the Android system.

[0041] Among them, the content provider (ContentProvider) is one of the components provided by the Android system, which can realize cross-process communication.

[0042] In this embodiment, ContentProvider can be used to implement communication between the operating system and the application.

[0043] Specifically, based on the ContentProvider component of the Android system, establishing a transmission channel between the operating system and the application may include:

[0044] Customize the Uniform Resource Identifier (URI), implement the ContentProvider interface, create a database, allow external access to the database, etc.

[0045] Among them, URI is used to identify ContentProvider and the data in ContentProvider, so that the outside world can access the corresponding data in the corresponding ContentProvider based on the URI.

[0046] In some embodiments, the method further includes: creating a database and storing the information of the voice data in the database; and obtaining the information of the voice data used by the operating system includes: obtaining the information of the voice data used by the operating system from the database.

[0047] Specifically, in this embodiment, Figure 3 As shown, the operating system can store the information of the voice data in the database created above, and the content provider (ContentProvider) can obtain the information of the voice data from the database and transmit the information of the voice data to the application through the transmission channel provided by the ContentProvider interface.

[0048] By adopting the content provider component, an interface for sharing data externally can be provided for the operating system, so that the information of the voice data used by the operating system can be transmitted to the application. The application can adopt voice data consistent with the information of the received voice data based on the information of the received voice data, so that the voice data of the operating system is consistent with that of the application.

[0049] Furthermore, by storing the information of the voice data in a database, it is convenient for the application to obtain the information of the voice data by accessing the database, and it is convenient for the operating system and the application to share data.

[0050] The information of voice data includes, for example, voice ID, speech speed, etc.

[0051] Among them, the operating system can integrate the first voice package, and the application can integrate the second voice package. The first voice package and the second voice package are consistent. For example, initially, the operating system and the application call the same application programming interface (Application Programming Interface, API) to obtain the same version of the voice package.

[0052] The first voice package and the second voice package may both include a variety of voice data, for example, voice data of a first accent, voice data of a second accent, and the like.

[0053] Different voice data can be identified by different voice IDs. For example, ID1 represents the voice data of a certain star X, and ID2 represents the voice data of another star Y.

[0054] Furthermore, corresponding to various voice data, other attributes such as speech speed may also be included.

[0055] Therefore, for the operating system, when configuring, you can select the voice ID and speech rate of the voice data used by the operating system, so that system-related voice broadcasts can be performed with the voice data corresponding to the voice ID and the corresponding speech rate.

[0056] Assuming that when configuring the operating system, the selected voice ID is ID1 and the speech speed is slow, the operating system can transmit ID1 and slow speed to the application through the transmission channel provided by the content provider.

[0057] The correspondence between the voice ID and the voice data can be recorded in the second voice package integrated in the application. After the application receives the voice ID transmitted by the operating system, it can obtain the corresponding voice data based on the above correspondence, for example, the voice data corresponding to ID1. Afterwards, the voice data corresponding to ID1 is used as the second voice data and voice broadcast is performed in a slow manner.

[0058] Since the first voice package and the second voice package are consistent, the same voice ID will correspond to the same voice data, that is, the first voice data and the second voice data will be consistent, so that the voice broadcast effects of the operating system and the application are consistent.

[0059] In some embodiments, the voice data is contained in a voice package, and the method further includes: if the voice package used by the operating system is updated, the information of the updated voice package is transmitted to the application through the transmission channel, and the information of the voice package is used to instruct the application to update the voice package used to the voice package corresponding to the information of the voice package.

[0060] Initially, the operating system and the application integrate the same version of the voice package.

[0061] If the voice package of the operating system is updated, assuming the version is updated from v1.0 to v2.0, the operating system can transmit version information, such as the above-mentioned v2.0, to the application, and the application can obtain the v2.0 version of the voice package based on v2.0, thereby keeping the first voice package and the second voice package consistent.

[0062] After the voice package used by the operating system is updated, the information of the updated voice package is promptly notified to the application, thereby ensuring that the voice packages of the operating system and the application are consistent.

[0063] In the disclosed embodiment, a transmission channel is established between the operating system and the application, and the information of the voice data used by the operating system is transmitted to the application through the transmission channel. The information of the voice data is used to indicate that the application uses the voice data corresponding to the information of the voice data, which can ensure that the voice broadcast of the operating system is consistent with that of the application, thereby improving the user experience.

[0064] The above description is based on the operating system as the execution subject, and the execution process of the application can be as follows.

[0065] Figure 4 is a schematic diagram according to a fourth embodiment of the present disclosure. This embodiment provides a method for processing voice data, the method comprising:

[0066] 401. Acquire information about voice data used by the operating system through a transmission channel between the application and the operating system.

[0067] 402. Determine that the application uses voice data corresponding to the information of the voice data.

[0068] This embodiment may be executed by an application, and the application may be installed on an electronic device. The electronic device may be a smart device, and the application (APP) may be installed thereon.

[0069] Electronic devices may include many types, such as car computers, mobile phones, tablet computers, wearable devices, smart home devices, etc.

[0070] Taking the car computer as an example, the car computer refers to the abbreviation of the in-vehicle infotainment product installed in the vehicle. The car computer can functionally realize information communication between people and cars, and between cars and the outside world (cars and cars).

[0071] The car computer is usually installed in the center console of the vehicle.

[0072] The vehicle computer may include an operating system, which may be referred to as a vehicle computer ROM. Applications (APPs) may be installed on the vehicle computer, and the applications may be installed on the vehicle computer by a user. For example, the APPs installed by the user include a map APP, a music APP, and the like.

[0073] The operating system and the application may respectively use their own voice data for voice broadcasting. For the purpose of distinction, the voice data used by the operating system may be referred to as first voice data, and the voice data used by the application may be referred to as second voice data.

[0074] The operating system may use the first voice data to perform system-related voice announcements. For example, after the user adjusts the brightness of the system, the system may use the first voice data to voice announce contents such as “the system brightness has been adjusted”.

[0075] The application may use the second voice data to perform voice broadcasting related to the application. For example, if the application is a map APP, the map APP may use the second voice data to perform voice broadcasting of the navigation route, etc.

[0076] In the related art, the first voice data and the second voice data are independent and generally different. Therefore, when the user uses the operating system and the application, the voice broadcast effect will be inconsistent, affecting the user experience.

[0077] In order to unify the effect of voice broadcast, in this embodiment, the first voice data and the second voice data can be controlled to be consistent.

[0078] like Figure 2 As shown, the vehicle computer may include an operating system, and applications may be installed on the vehicle computer, and a transmission channel may be established between the operating system and the applications.

[0079] In some embodiments, the operating system is an Android system, and the method further comprises:

[0080] Based on the content provider component provided by the Android system, a transmission channel is established with the operating system.

[0081] Among them, the content provider (ContentProvider) is one of the components provided by the Android system, which can realize cross-process communication.

[0082] In this embodiment, ContentProvider can be used to implement communication between the operating system and the application.

[0083] Specifically, based on the ContentProvider component of the Android system, establishing a transmission channel between the operating system and the application may include:

[0084] Customize the Uniform Resource Identifier (URI), implement the ContentProvider interface, create a database, allow external access to the database, etc.

[0085] Among them, URI is used to identify ContentProvider and the data in ContentProvider, so that the outside world can access the corresponding data in the corresponding ContentProvider based on the URI.

[0086] Specifically, in this embodiment, Figure 3 As shown, the operating system can store the information of the first voice data in the database created above, and the content provider (ContentProvider) can obtain the information of the voice data from the database and transmit the information of the voice data to the application through the transmission channel provided by the ContentProvider interface.

[0087] By adopting the content provider component, an interface for sharing data externally can be provided for the operating system, so that the information of the voice data used by the operating system can be transmitted to the application. The application can adopt voice data consistent with the information of the received voice data based on the information of the received voice data, so that the voice data of the operating system is consistent with that of the application.

[0088] Furthermore, by storing the information of the voice data in a database, it is convenient for the application to obtain the information of the voice data by accessing the database, and it is convenient for the operating system and the application to share data.

[0089] In some embodiments, the voice data is included in a voice package, the voice package records the corresponding relationship between the voice data and the information of the voice data, and the determining that the application uses the voice data corresponding to the information of the voice data includes:

[0090] Based on the corresponding relationship between the voice data recorded in the voice package and the information of the voice data, the voice data corresponding to the acquired information of the voice data is used as the voice data used by the application.

[0091] The information of voice data includes, for example, voice ID, speech speed, etc.

[0092] Among them, the operating system can integrate the first voice package, and the application can integrate the second voice package. The first voice package and the second voice package are consistent. For example, initially, the operating system and the application call the same application programming interface (Application Programming Interface, API) to obtain the same version of the voice package.

[0093] The first voice package and the second voice package may both include a variety of voice data, for example, voice data of a first accent, voice data of a second accent, and the like.

[0094] Different voice data can be identified by different voice IDs. For example, ID1 represents the voice data of a certain star X, and ID2 represents the voice data of another star Y.

[0095] Furthermore, corresponding to various voice data, other attributes such as speech speed may also be included.

[0096] Therefore, for the operating system, when configuring, you can select the voice ID and speech rate of the voice data used by the operating system, so that system-related voice broadcasts can be performed with the voice data corresponding to the voice ID and the corresponding speech rate.

[0097] Assuming that when configuring the operating system, the selected voice ID is ID1 and the speech speed is slow, the operating system can transmit ID1 and slow speed to the application through the transmission channel provided by the content provider.

[0098] The correspondence between the voice ID and the voice data can be recorded in the second voice package integrated in the application. After the application receives the voice ID transmitted by the operating system, it can obtain the corresponding voice data based on the above correspondence, for example, the voice data corresponding to ID1. Afterwards, the voice data corresponding to ID1 is used as the second voice data and voice broadcast is performed in a slow manner.

[0099] Since the first voice package and the second voice package are consistent, the same voice ID will correspond to the same voice data, that is, the first voice data and the second voice data will be consistent, so that the voice broadcast effects of the operating system and the application are consistent.

[0100] In some embodiments, the voice data is contained in a voice packet, and the method further comprises:

[0101] The updated voice package information transmitted by the operating system is received through the transmission channel; based on the updated voice package information, the voice package used by the application is updated to the voice package corresponding to the received voice package information.

[0102] Initially, the operating system and the application integrate the same version of the voice package.

[0103] If the voice package of the operating system is updated, assuming the version is updated from v1.0 to v2.0, the operating system can transmit version information, such as the above-mentioned v2.0, to the application, and the application can obtain the v2.0 version of the voice package based on v2.0, thereby keeping the voice package used by the operating system and the voice package used by the application consistent.

[0104] After the voice package of the operating system is updated, the information of the updated voice package is promptly notified to the application, thereby ensuring that the voice packages of the operating system and the application are consistent.

[0105] In the disclosed embodiment, information about voice data used by the operating system is obtained through a transmission channel, and the application can use voice data consistent with the voice data used by the operating system based on the information about the voice data, thereby ensuring that the voice broadcasts of the operating system and the application are consistent, thereby improving the user experience.

[0106] Figure 5 is a schematic diagram according to the fifth embodiment of the present disclosure. This embodiment provides a method for processing voice data. This embodiment takes the interaction between the operating system of the vehicle computer and the application as an example, and the application is a map APP. The method includes:

[0107] 501. Initially, the operating system and the map APP integrate the same version of the voice package.

[0108] In order to distinguish, the operating system can integrate the first voice package, the map APP can integrate the second voice package, and the initial value of the first voice package and the second voice package are the same.

[0109] 502. The operating system uses a content provider component to establish a transmission channel with the map APP.

[0110] The operating system may customize the URI to identify the content provider (ContentProvider) and the data therein.

[0111] 503. The operating system determines the voice data used by the operating system.

[0112] The voice data used by the operating system may be referred to as first voice data.

[0113] The first voice package may include a variety of voice data. Different voice data may be identified by a voice ID. When configuring the system, the developer may select the voice data used by the system and use the selected voice data as the first voice data.

[0114] In addition, a database may be created to store the voice ID of the selected first voice data and other information such as speech speed, and the selected voice ID and speech speed information in the database.

[0115] 504. The operating system transmits the information of the voice data used by the operating system to the map APP through the transmission channel.

[0116] Among them, the map APP can register the URI customized by the operating system and monitor the registered URI to monitor the changes in the data corresponding to the URI. For example, after the information of the first voice data is recorded in the above-mentioned database, the information of the first voice data can be obtained from the database.

[0117] 505. The map APP determines the voice data used by the map APP based on the information of the voice data used by the operating system.

[0118] Among them, the voice data used by the map APP can be called second voice data.

[0119] The second voice package may include multiple voice data, and record the correspondence between each voice data and its information. Therefore, based on the correspondence, the voice data corresponding to the information of the first voice data may be obtained as the second voice data.

[0120] Since the first voice packet and the second voice packet are the same, the first voice data and the second voice data are the same.

[0121] The operating system can use the first voice data for system voice broadcast, and the map APP can use the second voice data for application voice broadcast. Since the first voice data and the second voice data are consistent, the effects of the system voice broadcast and the application voice broadcast are consistent.

[0122] 506. After the voice package used by the operating system is updated, the operating system sends information of the updated voice package to the map APP through the transmission channel.

[0123] For example, the operating system can transmit the version number of the updated voice package to the map APP.

[0124] 507. Based on the information of the updated voice package, the map APP updates the voice package used by the map APP to the updated voice package used by the operating system.

[0125] Among them, the map APP can maintain consistency with the voice package used by the operating system by updating the voice package.

[0126] In this embodiment, by transmitting the information of the voice data used by the operating system to the map APP, the map APP can use the voice data consistent with the operating system. In addition, after the voice package of the operating system is updated, the map APP also updates the voice package, which can ensure the consistency of the voice package of the operating system and the application.

[0127] Figure 6 is a schematic diagram according to the sixth embodiment of the present disclosure, which provides a device for processing voice data. Figure 6 As shown, the device 600 includes: an acquisition module 601 and a transmission module 602.

[0128] The acquisition module 601 is used to obtain the information of the voice data used by the operating system; the transmission module 602 is used to transmit the information of the voice data to the application through the transmission channel between the operating system and the application, and the information of the voice data is used to indicate that the application uses the voice data corresponding to the information of the voice data.

[0129] In some embodiments, the operating system is an Android system, and the apparatus 600 further includes: an establishment module, configured to establish a transmission channel with the application based on a content provider component provided by the Android system.

[0130] In some embodiments, the device 600 further includes: a creation module, used to create a database, and store the information of the voice data in the database; the acquisition module 602 is specifically used to: acquire the information of the voice data used by the operating system from the database.

[0131] In some embodiments, the voice data is included in a voice package, and the device 600 also includes: an update module, which is used to transmit the information of the updated voice package to the application through the transmission channel if the voice package used by the operating system is updated, and the information of the voice package is used to instruct the application to update the used voice package to the voice package corresponding to the information of the voice package.

[0132] In the disclosed embodiment, a transmission channel is established between the operating system and the application, and the information of the voice data used by the operating system is transmitted to the application through the transmission channel. The information of the voice data is used to indicate that the application uses the voice data corresponding to the information of the voice data, which can ensure that the voice broadcast of the operating system is consistent with that of the application, thereby improving the user experience.

[0133] Figure 7 is a schematic diagram according to the seventh embodiment of the present disclosure, which provides a device for processing voice data. Figure 7 As shown, the device 700 includes: an acquisition module 701 and a determination module 702.

[0134] The acquisition module 701 is used to acquire the voice data used by the operating system through the transmission channel between the application and the operating system; the determination module 702 is used to determine that the application uses voice data corresponding to the information of the voice data.

[0135] In some embodiments, the operating system is an Android system, and the apparatus 700 further includes: establishing a model for establishing a transmission channel with the operating system based on a content provider component provided by the Android system.

[0136] In some embodiments, the voice data is contained in a voice package, and the voice package records the correspondence between the voice data and the information of the voice data. The determination module 702 is specifically used to: based on the correspondence between the voice data recorded in the voice package and the information of the voice data, use the voice data corresponding to the information of the acquired voice data as the voice data used by the application.

[0137] In some embodiments, the voice data is included in a voice package, and the device 700 further includes: a transmission module for receiving information of an updated voice package transmitted by the operating system through the transmission channel; and an update module for updating the voice package used by the application to a voice package corresponding to the information of the received voice package based on the information of the updated voice package.

[0138] In the disclosed embodiment, information about voice data used by the operating system is obtained through a transmission channel, and the application can use voice data consistent with the voice data used by the operating system based on the information about the voice data, thereby ensuring that the voice broadcasts of the operating system and the application are consistent, thereby improving the user experience.

[0139] It can be understood that in the embodiments of the present disclosure, the same or similar contents in different embodiments can be referenced to each other.

[0140] It can be understood that the “first”, “second”, etc. in the embodiments of the present disclosure are only used for distinction and do not indicate the degree of importance, time sequence, etc.

[0141] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0142] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0143] like Figure 8 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0144] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0145] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a processing method for voice data. For example, in some embodiments, the processing method for voice data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the processing method for voice data described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the processing method for voice data in any other appropriate manner (e.g., by means of firmware).

[0146] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0147] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0148] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0149] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0150] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0151] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0152] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0153] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for processing speech data, include: Obtain information about voice data used by the operating system; Transmitting the information of the voice data to the application through a transmission channel between the operating system and the application, wherein the information of the voice data is used to instruct the application to use the voice data corresponding to the information of the voice data; The voice data used by the operating system is the first voice data, the voice data used by the application is the second voice data, the operating system is used to use the first voice data to perform system-related voice broadcasts, and the application is used to use the second voice data to perform application-related voice broadcasts; The information of the voice data includes: voice ID and / or speech speed; The first voice data and the second voice data are consistent, so that the voice broadcast effects of the operating system and the application are consistent.

2. The method according to claim 1, in, The operating system is an Android system, and the method further includes: Based on the content provider component provided by the Android system, a transmission channel is established between the application.

3. The method according to claim 1, further comprising: include: Creating a database, and storing the information of the voice data in the database; The information of obtaining the voice data used by the operating system includes: Information on the voice data used by the operating system is obtained from the database.

4. The method according to any one of claims 1 to 3, in, The voice data is contained in a voice packet, and the method further comprises: If the voice package used by the operating system is updated, the information of the updated voice package is transmitted to the application through the transmission channel, and the information of the voice package is used to instruct the application to update the voice package used to the voice package corresponding to the information of the voice package.

5. A method for processing speech data, include: Acquiring information about voice data used by the operating system through a transmission channel between the application and the operating system; Determining that the application uses voice data corresponding to the information of the voice data; The voice data used by the operating system is the first voice data, the voice data used by the application is the second voice data, the operating system is used to use the first voice data to perform system-related voice broadcasts, and the application is used to use the second voice data to perform application-related voice broadcasts; The information of the voice data includes: voice ID and / or speech speed; The first voice data and the second voice data are consistent, so that the voice broadcast effects of the operating system and the application are consistent.

6. The method according to claim 5, in, The operating system is an Android system, and the method further includes: Based on the content provider component provided by the Android system, a transmission channel is established with the operating system.

7. The method according to claim 5, in, The voice data is contained in a voice package, the voice package records the corresponding relationship between the voice data and the information of the voice data, and the determining that the application uses the voice data corresponding to the information of the voice data includes: Based on the corresponding relationship between the voice data recorded in the voice package and the information of the voice data, the voice data corresponding to the acquired information of the voice data is used as the voice data used by the application.

8. The method according to any one of claims 5 to 7, in, The voice data is contained in a voice packet, and the method further comprises: Receiving information of an updated voice package transmitted by the operating system through the transmission channel; Based on the updated voice package information, the voice package used by the application is updated to the voice package corresponding to the received voice package information.

9. A device for processing speech data, include: An acquisition module, used to acquire information of voice data used by the operating system; A transmission module, used to transmit the information of the voice data to the application through a transmission channel between the operating system and the application, wherein the information of the voice data is used to indicate that the application uses the voice data corresponding to the information of the voice data; The voice data used by the operating system is the first voice data, the voice data used by the application is the second voice data, the operating system is used to use the first voice data to perform system-related voice broadcasts, and the application is used to use the second voice data to perform application-related voice broadcasts; The information of the voice data includes: voice ID and / or speech speed; The first voice data and the second voice data are consistent, so that the voice broadcast effects of the operating system and the application are consistent.

10. The device according to claim 9, in, The operating system is an Android system, and the device further comprises: An establishing module is used to establish a transmission channel between the application and the content provider component provided by the Android system.

11. The device according to claim 9, further comprising: include: A creation module, used for creating a database, and storing the information of the voice data in the database; The acquisition module is specifically used for: Information on the voice data used by the operating system is obtained from the database.

12. The device according to any one of claims 9 to 11, in, The voice data is contained in a voice packet, and the device further comprises: The update module is used to transmit the information of the updated voice package to the application through the transmission channel if the voice package used by the operating system is updated, and the information of the voice package is used to instruct the application to update the voice package used to the voice package corresponding to the information of the voice package.

13. A device for processing speech data, include: An acquisition module, used to acquire voice data used by the operating system through a transmission channel between the application and the operating system; A determination module, used for determining that the application uses voice data corresponding to the information of the voice data; The voice data used by the operating system is the first voice data, the voice data used by the application is the second voice data, the operating system is used to use the first voice data to perform system-related voice broadcasts, and the application is used to use the second voice data to perform application-related voice broadcasts; The information of the voice data includes: voice ID and / or speech speed; The first voice data and the second voice data are consistent, so that the voice broadcast effects of the operating system and the application are consistent.

14. The device according to claim 13, in, The operating system is an Android system, and the device further comprises: A model is established for establishing a transmission channel between the operating system and the content provider component provided by the Android system.

15. The device according to claim 13, in, The voice data is contained in a voice package, and the voice package records the corresponding relationship between the voice data and the information of the voice data. The determination module is specifically used for: Based on the corresponding relationship between the voice data recorded in the voice package and the information of the voice data, the voice data corresponding to the acquired information of the voice data is used as the voice data used by the application.

16. The device according to any one of claims 13 to 15, in, The voice data is contained in a voice packet, and the device further comprises: A transmission module, used for receiving information of the updated voice package transmitted by the operating system through the transmission channel; An updating module is used to update the voice package used by the application to the voice package corresponding to the received voice package information based on the updated voice package information.

17. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.

19. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.