Voice service access method, system and vehicle
By making minimal modifications to the existing voice service SDK and accessing new voice services, the problem of rapid access to domestic voice services during vehicle localization transformation is solved, low-cost voice service compatibility and iterative updates are achieved, and vehicle costs are reduced. Time and cost of renovation.
Patent Information
- Application Number
- CN202011501833.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-12-18
AI Technical Summary
During the localization process of vehicles, it is difficult for existing technologies to quickly and cost-effectively access domestic voice services, resulting in the need to configure a new in-vehicle voice system, which is time-consuming and costly.
By making minimal modifications to the existing voice service system, the SDK of the first voice service is used to access the second voice service, the user authorization is obtained and the connection is established, the communication library component is used to upload voice input, and the corresponding capabilities are retrieved based on feedback instructions. Components provide feedback to achieve compatibility and iterative updates of voice services.
It enables seamless access to new voice services on the existing voice service SDK, is compatible with protocols, adds unique functions, and enables easy updates and iterations through modular patches, reducing costs and time overhead.
Smart Images

Figure CN114726830B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of voice services, and more particularly to a voice service access method, system and vehicle. Background Art
[0002] Providing intelligent voice services has now become a standard feature of all new cars. Some foreign vehicle manufacturers will give priority to cooperating with large foreign voice service providers so that the vehicle can access the voice services of the service provider, thereby providing convenience for passengers.
[0003] When these foreign vehicle manufacturers carry out localization transformation of vehicles, they usually need to connect to domestic voice service providers to provide voice services that better meet the needs of local people. Although a new in-vehicle voice system can be configured to replace the previous in-vehicle voice system, doing so is time-consuming and costly.
[0004] Therefore, a solution is needed to facilitate access to new voice services. Summary of the invention
[0005] A technical problem to be solved by the present disclosure is to provide a voice service access solution, which can use an existing voice service system to quickly access another voice service system through minimal changes, thereby being compatible with the new voice service system and capable of continuous iterative updates.
[0006] According to a first aspect of the present disclosure, a voice service access method is provided, comprising: modifying access to a first voice service to include access to a second voice service; accessing an authorization service of the second voice service and obtaining user authorization; and establishing a connection with the second voice service based on the user authorization. The solution can be executed based on the voice service system of the first voice service, for example, by modifying the device SDK of the first voice service.
[0007] According to a second aspect of the present disclosure, there is provided a method for accessing a voice service using a terminal of a voice service system loaded with a first voice service, comprising: obtaining voice input; uploading the voice input to the second voice service through a communication library component of the voice service system based on a gateway configuration that modifies access to the first voice service to include access to a second voice service; and obtaining a feedback instruction issued by the second voice service based on the uploaded voice input; and according to the feedback instruction, calling a component with corresponding capabilities through a capability proxy component of the voice service system for feedback.
[0008] According to a third aspect of the present disclosure, a voice service access system is provided, comprising: a voice service system module for a first voice service, used to obtain voice input and give corresponding feedback based on the voice input; and a gateway setting patch module, used to modify access to the first voice service to include access to a second voice service; an authentication delegation patch module, used to access the authorization service of the second voice service and obtain user authorization, wherein the system can establish a connection with the second voice service based on user authorization.
[0009] According to a fourth aspect of the present disclosure, a terminal is provided, comprising: a microphone for receiving voice input; a voice service access system as described in the third aspect, for providing feedback instructions issued by the second voice service in response to the voice input; and an action device for performing corresponding operations based on the feedback instructions.
[0010] According to a fifth aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the methods described in the first and second aspects above.
[0011] According to a sixth aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first and second aspects above.
[0012] Therefore, the voice service method of the present invention can make minimal modifications to the existing first voice service SDK, so that it can be used to access the second voice service normally through the authentication system of the second voice service. The second voice service is compatible with the protocol of the first voice service, so that the uplink and downlink protocols are consistent with the first voice service, and the unique functions of the second voice service can be expanded on the existing functions of the first voice service SDK. The above changes can be packaged into patches through git and provided to the outside, and each patch is independent, thereby providing modular modification and easy update and iteration. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.
[0014] Figure 1 A schematic flow chart of a voice service access method according to an embodiment of the present invention is shown.
[0015] Figure 2 An example of the architecture of the first voice service device SDK is shown.
[0016] Figure 3 An example of the architecture of the first voice service device SDK modified according to the present invention is shown.
[0017] Figure 4 A schematic diagram of the composition of the first voice service vehicle SDK incorporating the second voice service patch extension of the present invention is shown.
[0018] Figure 5 A schematic flow chart of a method for a terminal to access a voice service according to an embodiment of the present invention is shown.
[0019] Figure 6 A schematic diagram showing the composition of a voice service access system according to an embodiment of the present invention is shown.
[0020] Figure 7 A schematic diagram showing the composition of a terminal for accessing voice services according to the present invention is shown.
[0021] Figure 8 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned voice access method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0022] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0023] Providing intelligent voice services has now become a standard feature of all new cars. Some foreign vehicle manufacturers will give priority to cooperating with large foreign voice service providers so that the vehicle can access the voice services of the service provider, thereby providing convenience for passengers.
[0024] When these foreign vehicle manufacturers carry out localization transformation of vehicles, they usually need to connect to domestic voice service providers to provide voice services that better meet the needs of local people. Although a new in-vehicle voice system can be configured to replace the previous in-vehicle voice system, doing so is time-consuming and costly.
[0025] To this end, the present invention aims to provide a voice service access solution, which can use the existing voice service system to quickly access another voice service system through minimal changes, thereby being compatible with the new voice service system and capable of continuous iterative updates.
[0026] Figure 1A schematic flow chart of a voice service access method according to an embodiment of the present invention is shown. The method can be regarded as a modification to an existing voice service system, for example, a modification to a voice service device SKD, and in some cases can also be regarded as an actual operation on a terminal (for example, a vehicle).
[0027] In step S110, the access to the first voice service may be modified to include access to the second voice service. Here, the first voice service may be a service that is to be built-in or already built-in to the device, and may be implemented by installing the voice service system of the first voice service. In order to implement access to the second voice service within the voice service system of the first voice service, the gateway settings need to be modified first, so that when a voice service access request is initiated, the access to the second voice service may be used as a supplement or replacement for the access to the first voice service.
[0028] Here, "first" and "second" are only used to distinguish different objects of the same kind of things, rather than implying their importance or order. Furthermore, "voice service" may refer to a service that obtains voice (for example, voice input by the user) and understands the meaning behind it (including the semantics of the voice itself and the meaning inferred based on context or interaction history, etc.), and gives corresponding feedback or feedback instructions. Voice services often require powerful voice recognition, semantic understanding and corresponding capabilities such as information search, so they usually need to rely on cloud servers. Here, "first voice service" and "second voice service" may also refer to "first cloud voice service" and "second cloud voice service" respectively.
[0029] All the existing major Internet vendors provide their own voice services. Later, for the convenience of description, the first voice service and the second voice service may be referred to as A service and B service, or AVS (A Voice Service) and BVS (B Voice Service) to distinguish them. It should be understood that the use of "A" and "B" here is also only used to distinguish different objects of the same kind, and does not imply any name for the voice service.
[0030] Subsequently, in step S120, the authorization service of the second voice service is accessed and user authorization is obtained. After being able to access (for example, address) the second voice service as described in step S110, it is also necessary to enable the second voice service to provide services to users. At this time, the voice service system of the first voice service can be enabled to obtain the service license of the second voice service. To this end, the authorization service of the second voice service can be accessed, and user authorization is obtained through operations. Specifically, an operation that enables the user to bind the second voice service account is displayed. For example, the authorization service can display the account and password column of the second voice service, and the user can verify the identity by entering the account and password, and bind the account. In one embodiment, the QR code obtained by accessing the authorization service can also be displayed, and the user can bind by, for example, opening the APP of the second voice service provider on the smart phone and scanning the QR code. Here, there is no restriction on the method of obtaining user authorization.
[0031] In step S130, based on user authorization, a connection with the second voice service is established. After the account is bound, the authorization token provided by the second voice service can be obtained, and then a long connection can be established with the second voice service based on the authorization token of the second voice service, for example, an HTTP / 2 long connection. Since cloud voice services can usually provide various voice services, unlike short connections that need to be reconnected frequently, long connections can be connected to the second voice service for a long time based on the validity period of the token. In HTTP / 2, when a client requests a service from a server of a certain domain name, only one connection is created, even if the service involves hundreds of resources. A single connection can reduce the delay caused by handshakes, improve information acquisition efficiency and reduce the number of connections on the server side.
[0032] As mentioned above, the voice service access method can be executed in the voice service system of the first voice service. Here, the voice service system can refer to the device SDK (before being installed on the terminal) or a series of software and hardware configurations for providing voice services (after being installed on the terminal).
[0033] The present invention can enable the first voice service device SDK to seamlessly access the second voice service and facilitate iterative updates through a series of minimal changes to the first voice service device SDK.
[0034] In order to facilitate the understanding of the principle of the present invention, Figure 2 (and subsequent Figure 3 )Describes the composition and corresponding functions of the voice service device SDK. Figure 2 An example of the architecture of the first voice service device SDK is shown.
[0035] The AVS Device SDK provides a set of libraries (e.g., C++ libraries) for building products with built-in A services (i.e., the first voice service). Using these libraries, devices can directly access cloud-based A service functions to receive voice responses immediately. Devices using this set of SKDs can be smart watches, speakers, headphones, and even vehicles.
[0036] The SDK is modular and abstract. It provides separate components to handle the required A-service functionality, including processing audio, maintaining persistent connections, and managing interactions with the A-service. Each component exposes the A-service API to customize device integration as needed. The SDK also includes a sample application for testing interactions before integration.
[0037] Figure 2 Describes the components of the SDK and the data flow between components. The dark boxes are the official components of the SDK (source components) and include the following:
[0038] Audio Input Processor (AIP)
[0039] Shared Data Stream (SDS)
[0040] Communication Library (CL)
[0041] Directive Sequencer Library (DSL)
[0042] Activity Focus Manager Library (AFML)
[0043] Capability Agent (CA)
[0044] Unofficial components (third-party binary components) depend on external libraries and include the following:
[0045] Audio Signal Processor (ASP)
[0046] Wake Word Engine (WWE)
[0047] Media Player
[0048] The following example will illustrate the functions of the above components and their interactions.
[0049] For example, the user says: "XXXX (wake-up word), what's the weather like?"
[0050] At this point, the microphone captures the audio and writes it to SDS.
[0051] WWE is always monitoring SDS. When WWE detects the wake word XXXX, it sends the audio to AIP.
[0052] The AIP uses CL to send SpeechRecognizer events to AVS.
[0053] The AVS processes the event and sends the appropriate instructions (in this case, the weather query results) back through the CL. The SDS then extracts the instructions and sends them to the DSL.
[0054] The DSL inspects the header of the payload and determines the functional proxy it has to call.
[0055] When CA is activated, it requests focus from AFML. In this case, it needs to use the media player's ability to provide voice feedback.
[0056] The media player then plays the command. In this example, the voice service responds with "The weather is 9 degrees, cloudy, and there may be rain."
[0057] The detailed functions of each component will be described as follows.
[0058] Audio Signal Processor (ASP)
[0059] ASP is not actually a component of the AVS device SDK. It is software that resides on a chip (SOC) or firmware on a dedicated digital signal processor (DSP). Its job is to process the audio and create a single audio stream, even if the device uses a multi-microphone array. The technologies used to process the audio include acoustic echo cancellation (AEC), noise suppression, beamforming, voice activity detection (VAD), dynamic range compression (DRC), and equalization.
[0060] Shared Data Stream (SDS)
[0061] The SDS component is a single-producer-multiple-consumer audio input buffer that transfers data between one writer and one or more readers. This ring buffer moves data to different components of the SDK without duplication. The process can continually overwrite itself, so the memory footprint is minimized. The SDS operates on product-specific and user-specified memory segments, allowing inter-process communication. Writers and readers may be in different threads or processes.
[0062] SDS handles the following key tasks:
[0063] Receives audio from ASP and then passes it to WWE.
[0064] Pass the audio from the WWE engine to the CL. The CL can then pass the audio to the AVS for processing.
[0065] Receives data attachments from the ACL and passes them to the appropriate capability agent.
[0066] Wake Word Engine (WWE)
[0067] WWE is software that continuously monitors the SDS, waiting for a preconfigured wake word. When WWE detects the correct wake word, it notifies the AIP to start reading audio. When using the AVS Device SDK, the wake word can always be "XXXX". The SDK contains a connector for a specific wake word engine, but it can also use any other wake word engine as needed.
[0068] WWE consists of the following two binary interfaces.
[0069] Interface 1 – handles general wake word detection.
[0070] Interface 2 – handles a specific wake word model.
[0071] It should be noted that WWE operation is not necessary. The voice service system of the first voice service can also be activated by "click to call" or operating the supporting APP.
[0072] Audio Input Processor (AIP)
[0073] The AIP's responsibilities include reading audio from the SDS and then sending it to the AVS for processing. The AIP also includes logic to switch between different audio input sources. The AIP is triggered using the following inputs:
[0074] External Audio – Capture using on-device microphone, remote microphone, and other audio input sources.
[0075] Click-to-Call - Capture with the specified click-to-call input.
[0076] Voice commands – sent from the AVS to continue the interaction. For example, a multi-turn conversation.
[0077] Once triggered, the AIP continues to run the audio stream until it receives a Stop command or times out. The AVS can only receive one audio input source at any given time.
[0078] Communication Library (CL)
[0079] CL manages the network connection between SDK and AVS. CL performs the following main functions:
[0080] Establish and maintain long-term persistent connections with AVS.
[0081] Provides message sending and receiving capabilities. These capabilities include support for JSON formatted text and binary audio content. Forwards incoming commands to ADSL.
[0082] Handles disconnects and reconnects. If the device disconnects, it will automatically try to reconnect.
[0083] Manage secure connections.
[0084] Instruction Sequencer Library (DSL)
[0085] As described in the AVS interaction model, the DSL Manager processes incoming instructions. The CL performs the following main functions:
[0086] Accepts instructions from CL.
[0087] Manages the lifecycle of each instruction, including queuing, reordering, or canceling instructions as needed.
[0088] The directive is forwarded to the appropriate functional proxy by inspecting the directive header and reading the interface's namespace.
[0089] Capability Agent (CA)
[0090] Functional agents are agents that perform the desired actions on the device. They map directly to the interfaces supported by AVS. For example, if you ask the First Voice service to play a song, the functional agent loads the song into the media player and plays it. Functional agents perform the following two tasks:
[0091] Receive appropriate instructions from the DSL.
[0092] Read the payload and perform the requested action on the device.
[0093] Active Focus Manager Library (AFML)
[0094] AFML ensures that the SDK processes instructions in the correct order. It determines which function can control the input and output of the device at any time. For example, if you are playing music and the alarm on the device goes off, the alarm will grab attention. Therefore, the music is paused and the alarm goes off.
[0095] Focus uses a concept called channels to manage the priority of audiovisual input and output.
[0096] Channels exist in the foreground or the background. Only one channel can inherit the foreground state and receive focus at any given time. If multiple channels are active, the device must follow the following priority order: Dialog > Alarm > Content. When a channel in the foreground becomes inactive, the next active channel in the priority order moves into the foreground.
[0097] Focus management is not specific to capability agents or command handlers. Agents not associated with A services can also use it. Focus management enables all agents to have consistent focus across the device by using AFML.
[0098] Media Player
[0099] The media player is not actually a component of the AVS device SDK. The SDK uses a specific wrapper. If you want to use a different media player, you must build a wrapper for it using the MediaPlayer interface.
[0100] As above combined Figure 2 An example of the architecture of a first voice service (A service) device SDK (also referred to as an AVS device SDK) is shown. The present invention can achieve smooth access to a second voice service (ie, B service) via the AVS device SDK by minimally modifying the SDK architecture.
[0101] First, the SDK needs to be able to access the B service (i.e., BVS). To this end, by modifying the communication library component in the voice service system (e.g., Figure 2 The CL component in the SDK architecture shown in the figure) modifies the access to the first voice service to the access to the second voice service, and the authorization service for accessing the second voice service. Specifically, the gateway settings of the CL component can be modified so that it can access the BVS when receiving voice input (which can be used as a supplement to accessing AVS or as a substitute for accessing BVS). Subsequently, the interface of the authentication model of the SDK (AuthDelegateInterface) can be modified to access the authentication service of BVS, pass the verification of BVS and perform subsequent normal access. In the following, combined with Figure 3 Describe the specific implementation of authentication.
[0102] Furthermore, in order to expand the unique functions of the second voice service on the existing functions of the AVS device SDK, the capability proxy component ( Figure 2 To this end, the voice service access method of the present invention can also use the capability proxy component of the second voice service to connect to the capability proxy component of the first voice service. Subsequently, at least one specific capability component can be added through the interface exposed by the capability proxy component of the second voice service. For example, shopping, navigation or takeaway capabilities can be added as needed.
[0103] After establishing a connection with the BVS via the AVS device SDK as described above, the CL component can communicate with the BVS via the BVS protocol (i.e., the service acquisition protocol specified by the second voice service). For example, the audio input by the user is sent to the BVS via the CL. The BVS can process the above audio and issue a feedback instruction based on the uploaded voice. The modified AVS device SDK can obtain the above feedback instruction, and according to the feedback instruction, call the component with corresponding capabilities via the CA component of AVS for feedback, for example, call the media player for voice feedback. Here, calling the capability component can also include calling at least one specific capability component added. For example, when the user enters a navigation query, the navigation capability component is called and the corresponding navigation interface is displayed.
[0104] In order to better understand the voice service access method of the present invention, Figure 3 An example of the architecture of the first voice service device SDK modified according to the present invention is shown.
[0105] After modifying the gateway configuration of CL, for example, the existing AVS device SDK can be modified to allow it to access BVS through the BVS authentication system. Figure 3 The module can be implemented as a patch. That is, the authentication module in the AVS device SDK only defines an interface (AuthDelegateInterface). Therefore, in order for the AVS SDK to pass the BVS verification and access normally, it can be implemented by applying the QRCodeAuthDeletage patch to the SDL. After the patch is applied, the SDK can use the added authentication module for authentication (for example, the authentication method defined by the added authentication module is used by default for authentication), thereby completing the authorization according to the BVS process.
[0106] In a specific embodiment, after adding the above module (patch), the terminal installed with the AVS system can perform the following authentication delegation operation in order to access the BVS during actual operation:
[0107] 1. The SDK accesses the TVS authorization service, obtains the QR code, and displays it to the user.
[0108] 2. The user uses the corresponding mobile phone APP (or tablet APP) of the second voice service to scan the QR code for binding. For example, the user opens the corresponding APP, clicks "Scan", and scans the QR code. The mobile phone then displays a confirmation interface for binding with the AVS device. The user then clicks Confirm to complete the binding.
[0109] 3. During the binding operation, the SDK will poll the binding result. After the binding is successful, the SDK can get the authorization token.
[0110] 4. The SDK uses the authorization token to establish a persistent http2 connection with BVS for subsequent event uplinks and receiving downlink instructions.
[0111] In actual applications, the validity period of the authorization token can be specified as needed. For example, the authorization token can be specified to have a validity period of 30 days, and can be silently refreshed within 90 days, and a new login is required after 90 days.
[0112] Therefore, if Figure 3 As shown, by modifying the existing AVS device SDK, it can pass the authentication system of the second voice service and access the BVS normally via the BVS protocol.
[0113] Furthermore, by connecting BVS CA with AVS CA, for example, by inserting BVS CA patches into AVS CA, BVS CA can be implemented as an extension on AVS CA, thereby expanding areas that AVS does not currently have, such as navigation, shopping, and food delivery. These field capabilities will be exposed in the form of interfaces, such as NavigationInterface (navigation interface), ShopInterface (shopping interface), etc. When it is necessary to increase the capabilities of a specific field, the corresponding capability module can be added in the form of a patch, for example. Figure 3 As shown in the figure, after adding the BVS CA patch, the capabilities supported by BVS (for example, shopping and navigation capabilities) can be exposed to the outside. At this time, the Bmap NavigationHandler module can be added to provide navigation capabilities, and the shopping capability agent module can be added to provide shopping capabilities. In addition, more capabilities can be added according to actual needs based on the exposed interface.
[0114] It should be noted that, unlike the complete "shopping capability proxy module", the added navigation module is "BmapNavigationHandler" instead of the B-map capability proxy module. This is because the use of B-map navigation also requires an external B-map service. To this end, the service access method of the present invention may also include using the at least one specific capability component to connect to an external service of the corresponding capability, such as Figure 3 As shown, the external B map service is connected via the "Bmap NavigationHandler" module. Here, the B map service may be a map navigation service provided by the second voice service, and the map navigation service may be a part of the second voice service or have a cooperative relationship with the second voice service.
[0115] Furthermore, after docking with BVS, it is also possible to connect to an external acoustic service (e.g. Figure 3 To this end, the method may also include: using an external acoustic service to connect to the wake-up word engine of the first voice service, for: providing keyword detection (for example, "YYYY (B service wake-up word)" can be recognized; and / or providing audio signal processing, for example, noise reduction and echo cancellation.
[0116] Here, "Plan B" and "Map B" can be added in the form of plug-ins. The so-called "Plan B" plug-in uses the above capabilities provided by the B acoustic solution (for example, the acoustic service provided by a certain acoustic manufacturer) to implement the WWE interface (KeywordDetectorProvider, keyword detection provider) in the SDK, and sets it to the SDK for the SDK to call when initializing the SDK. Since this is selected and set on demand when accessing, it can be considered as a plug-in.
[0117] In this way, the unique functions of service B can be expanded on the existing functions of the AVS device SDK, and at the same time exposed to the outside in the form of an interface. Once AVS has similar functions in the future, they can be transferred and exposed within the SDK to ensure that there is no change in user use.
[0118] In one embodiment, the changes can be packaged into a patch through git and provided to the outside world. The access party only needs to insert the patch to access the BVS service. Specifically, the modification points of the patch can remain modular (except for the modification of a small part of the configuration part). When it is compatible with the new AVS device SDK version later, batch modification can be done, with high cohesion and low coupling between modules to adapt to more AVS versions. To this end, at least one of the following can be implemented in the form of an independent patch: modifying the access to the first voice service to include access to the second voice service; accessing the authorization service of the second voice service and obtaining user authorization; using the capability proxy component of the second voice service to connect to the capability proxy component of the first voice service; and adding at least one specific capability component through the interface exposed by the capability proxy component of the second voice service. Furthermore, the method may also include: updating one or more patches in the independent patch based on the upgrade of the voice service system of the first voice service.
[0119] The AVS device SDK as described above is particularly suitable for providing voice services for vehicles. At this time, the AVS device SDK can be further refined into a vehicle SDK. The SDK includes the AVS device SDK and various components for vehicle control. Figure 4 A schematic diagram of the composition of the AVS vehicle SDK incorporating the BVS patch extension of the present invention is shown.
[0120] As shown in the figure, in addition to the AVS device SDK including DSL, AIP, CA, AFML, SDS and CL, the vehicle SDK may also include navigation, contacts / address book, phone and vehicle control, and APL / smart screen and other components adapted to vehicle functions. In addition to the above components, a BVS patch extension based on the present invention may also be included. Here, "GateWay Config" corresponds to bvs_basic.patch. This patch is the basis for accessing BVS. By modifying the gateway configuration, the AVS SDK can be used to access TVS. "QRcode AuthDelegate" corresponds to bvs_auth.patch. This patch is used for authorization, which enables the AVS SDK to obtain the BVS token. It should be understood that other methods besides QR codes can also be used to complete authentication. "BVS Capability Agent" corresponds to bvs_ca.patch. This patch is used to expose the capability interface, so that the corresponding capabilities can be obtained by adding capability patches. "Bmap navigation" is a specific capability patch added on the basis of CA patch, corresponding to bvs_navigation.patch. This patch is used for navigation, for example, through Figure 3 The external B service (plug-in form) shown above enables the AVS SDK to have the navigation capability of BVS.
[0121] Each functional module can preferably be an independent existence corresponding to a patch, so it can be integrated into the AVS SDK as needed. Each patch can be added independently, and the relationship between the package and the AVS device SDK is fixed.
[0122] Considering that the first voice service will also iteratively upgrade its SDK, the patch needs to have the adaptability to be compatible with the upgraded version. To this end, each patch can have its applicable version number, such as a version number identifier, to identify its usable version.
[0123] The following example will illustrate the addition of Figure 4 The patch extends the functionality and interactions of the AVS vehicle SDK.
[0124] For example, the user says: "YYYY (wake-up word), how do I get to ZZ Country Park?"
[0125] At this point, the microphone captures the audio and writes it to SDS.
[0126] WWE is always monitoring SDS. Since WWE is connected to Solution B, it can recognize the wake-up word of Service B. When WWE detects the wake-up word YYYY, it sends the audio to AIP.
[0127] AIP uses CL to send SpeechRecognizer events to BVS (authentication account binding is also required for first use).
[0128] The AVS processes the event and sends the appropriate instructions (in this case, the map query results) back through the CL. The SDS then extracts the instructions and sends them to the DSL.
[0129] The DSL inspects the header of the payload and determines the functional proxy it has to call.
[0130] When CA is activated, it will request focus from AFML. In this case, the media player's capabilities need to be used for voice feedback, and an additional B-map patch needs to be added to connect to the B-map service.
[0131] Then, the media player plays the instruction. In this example, the voice service answers "It takes 1 hour to drive to ZZ Country Park." At the same time, the in-vehicle display can display the loaded B map navigation results, showing the driving route from the current location to ZZ Country Park (for example, one preferred and multiple candidate routes). At this time, the user can start navigation by selecting a route. As a result, the user can use the second voice service based on the AVS protocol, while ensuring that both the uplink and downlink protocols are consistent with AVS.
[0132] In addition, it should be understood that after accessing the BVS service, all voice service needs can be directed to the BVS according to the settings, and the function of providing AVS and BVS services at the same time can be provided.
[0133] When all voice service needs are directed to BVS, no matter what wake-up word the user uses (XXXX or YYYY), the voice input after wake-up is sent to BVS and operated through the feedback of BVS.
[0134] In the case of selectively guiding AVS or BVS, the selection of AVS and BVS can be based on multiple methods. In one embodiment, the default voice service can be selected based on the wake-up word used by the user (whether it is XXXX or YYYY). For example, if the user uses XXXX, then AVS is connected to obtain the voice service, and if YYYY is used, then BVS is connected to obtain the voice method. As an alternative or supplement, the corresponding service can also be selected based on the capabilities involved in the user's voice input.
[0135] As above, combined Figure 1-4The voice service access method according to the present invention is described. The method can particularly achieve access to BVS by modifying the existing AVS device SDK (further, AVS vehicle SDK). In other embodiments, the present invention can also be directly implemented as a method for a terminal (e.g., a vehicle) to access voice access.
[0136] Figure 5 A schematic flow chart of a method for a terminal to access a voice service according to an embodiment of the present invention is shown. The terminal is loaded with a voice service system of a first voice service. For example, a certain brand and model of vehicle is loaded with at least the necessary components of the AVS vehicle SDK. The present invention can implement access to BVS on the terminal through the following method.
[0137] In step S510, voice input is obtained. In step S520, based on the gateway configuration that modifies the access to the first voice service to include access to the second voice service, the voice input is uploaded to the second voice service through the communication library component of the voice service system. In step S530, a feedback instruction issued by the second voice service based on the uploaded voice input is obtained. In step S540, according to the feedback instruction, a component with corresponding capabilities is called through the capability proxy component of the voice service system for feedback.
[0138] Before accessing the BVS, it is also necessary to obtain user authorization of the BVS. At this time, the method may also include: accessing the authorization service of the second voice service based on the authentication delegation configuration; displaying the authorization page; and establishing a connection with the second voice service based on the obtained user authorization.
[0139] The above authorization can be authorization by entering an account and password, or it can be a more convenient QR code authorization. To this end, displaying the authorization page includes: displaying a QR code for associating the second voice service account of the user, wherein the user authorization is obtained based on the user scanning the QR code and confirming the account binding.
[0140] Furthermore, the capability proxy can be extended based on BVS. To this end, calling a component with corresponding capabilities may include: calling a component with specific capabilities added based on the second voice service, wherein, based on the capability proxy configuration, the capability proxy component of the second voice service is used to connect to the capability proxy component of the first voice service; and based on the specific capability addition configuration, the specific capability component is added via the interface exposed by the capability proxy component of the second voice service.
[0141] Similarly, the above configurations can be implemented in independent patches, that is, at least one of the following can be implemented in an independent patch: gateway configuration; authentication delegation configuration; capability proxy configuration; and specific capability addition configuration.
[0142] Furthermore, the method may also include: using the wake-up word of the second voice service to wake up the voice service system, wherein an external acoustic service is used to connect to the wake-up word engine of the first voice service to provide keyword detection for the wake-up word of the second voice service.
[0143] As mentioned above, the terminal can be implemented as a vehicle in particular. For example, a vehicle pre-loaded with the AVS vehicle SDK can achieve seamless access to the BVS service by installing a patch. In other embodiments, the terminal can also be other terminals pre-loaded with the AVS device SDK, such as smart watches, smart home devices, etc.
[0144] Furthermore, the present invention may also be implemented as a voice service access system. Figure 6 The figure shows a schematic diagram of the composition of a voice service access system according to an embodiment of the present invention. The voice service access system can be loaded on various terminals to provide access to BVS via AVS.
[0145] As shown in the figure, the system 600 includes a voice service system module of a first voice service, such as an AVS SDK 610 , a gateway setting patch module 620 , and an authentication delegation patch module 630 .
[0146] Among them, AVS SDK 610 is used to provide basic voice service functions, and can obtain voice input and give corresponding feedback based on the voice input. Gateway setting patch module 620 is used to modify the access to the first voice service to include access to the second voice service. Authentication delegation patch module 630 is used to access the authorization service of the second voice service and obtain user authorization.
[0147] The system can establish a connection with the second voice service based on user authorization and obtain the corresponding voice service.
[0148] Furthermore, in order to achieve capability expansion, the system may also include: a capability proxy patch module, which is used to use the capability proxy component of the second voice service to connect to the capability proxy component of the first voice service; at least one specific capability adding patch module, which is used to add at least one specific capability component through the interface exposed by the capability proxy component of the second voice service. Thus, the system can call the at least one specific capability component based on the feedback instruction of the second voice service for obtaining voice input. For example, when the user input voice includes the semantics of obtaining navigation information, the added navigation capability is used for navigation.
[0149] Furthermore, the present invention may also be implemented as a terminal. Figure 7The schematic diagram of the components of a terminal for accessing voice service according to the present invention is shown. The terminal 700 can be implemented as a vehicle in particular.
[0150] Here, the terminal 700 may include a microphone 710, Figure 6 A voice service access system 720 and an action device 730 are shown.
[0151] The microphone 710 is used to receive voice input. The voice service access system 720 is used to provide a feedback instruction issued by the second voice service in response to the voice input. The action device 730 is used to perform a corresponding operation based on the feedback instruction.
[0152] Different actions can be performed based on different feedback. Specifically, the action device may include: a speaker for performing corresponding voice output based on the feedback instruction; a terminal control device for performing corresponding terminal control operations (e.g., opening a car window, lowering the air conditioning temperature, etc.) based on the feedback instruction; and / or a display for displaying a page corresponding to at least one specific capability (e.g., displaying a shopping or navigation page, etc.) based on the feedback instruction.
[0153] Figure 8 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned voice access method according to an embodiment of the present invention is shown.
[0154] See also Figure 8 , the computing device 800 includes a memory 810 and a processor 820 .
[0155] The processor 820 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 820 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 820 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0156] The memory 810 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 820 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 810 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 810 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0157] The memory 810 stores executable codes, and when the executable codes are processed by the processor 820 , the processor 820 can execute the voice service access method mentioned above.
[0158] The voice service solution according to the present invention has been described in detail above with reference to the accompanying drawings. The solution provides a BVS service that is accessed normally through the authentication system of the second voice service with minimal modification on the existing AVS SDK. BVS is compatible with the AVS protocol, so that both the uplink and downlink protocols are consistent with AVS, and can also expand BVS-specific functions on the existing functions of the AVS SDK. The above changes can be packaged into patches through git and provided to the outside, and each patch is independent, thereby providing modular modification and easy updating and iteration.
[0159] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.
[0160] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.
[0161] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.
[0162] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0163] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for accessing a voice service, comprising: modifying access to the first voice service to include access to the second voice service; Access the authorization service of the second voice service and obtain user authorization; as well as Based on user authorization, establishing a connection with the second voice service, Among them, by modifying the gateway settings of the communication library component in the voice service system of the first voice service, the access to the first voice service is modified to the access to the second voice service, and by modifying the interface of the authentication model of the voice service system, the authorization service of the second voice service is accessed.
2. The method of claim 1, wherein: The voice service access method is executed in a voice service system of the first voice service.
3. The method of claim 1, wherein: Accessing the authorization service of the second voice service and obtaining user authorization includes: The display enables the user to perform an operation of binding the second voice service account.
4. The method of claim 1, wherein: Based on the user authorization, establishing a connection with the second voice service includes: Based on the authorization token of the second voice service, a persistent connection is established with the second voice service.
5. The method of claim 1, further comprising: The capability proxy component of the second voice service is used to connect to the capability proxy component of the first voice service.
6. The method of claim 5, further comprising: At least one specific capability component is added via an interface exposed by the capability proxy component of the second voice service.
7. The method of claim 6, further comprising: Obtaining a feedback instruction issued by the second voice service based on the uploaded voice; as well as According to the feedback instruction, the capability proxy component of the first voice service calls a component with corresponding capabilities to provide feedback. The calling of the capability component includes calling the at least one specific capability component that is added.
8. The method of claim 6, further comprising: The at least one specific capability component is used to connect to an external service of the corresponding capability.
9. The method of claim 1, further comprising: Use an external acoustic service to connect to the wake-up word engine of the first voice service to: Provide keyword detection; and / or Provides audio signal processing.
10. The method according to any one of claims 1 to 9, wherein: Implement at least one of the following as a separate patch: modifying access to the first voice service to include access to the second voice service; Access the authorization service of the second voice service and obtain user authorization; Using the capability proxy component of the second voice service to connect to the capability proxy component of the first voice service; as well as At least one specific capability component is added via an interface exposed by the capability proxy component of the second voice service.
11. The method of claim 10, further comprising: Based on the upgrade of the voice service system of the first voice service, one or more patches in the independent patches are updated.
12. A method for accessing a voice service using a terminal equipped with a voice service system of a first voice service, comprising: Get voice input; Uploading the voice input to the second voice service via a communication library component of the voice service architecture based on a gateway configuration that modifies access to the first voice service to include access to the second voice service; as well as Obtaining a feedback instruction issued by the second voice service based on the uploaded voice input; as well as According to the feedback instruction, the capability proxy component of the voice service system calls the component with corresponding capability to provide feedback. Among them, by modifying the gateway settings of the communication library component in the voice service system of the first voice service, the access to the first voice service is modified to the access to the second voice service, and by modifying the interface of the authentication model of the voice service system, the authorization service of the second voice service is accessed.
13. The method of claim 12, further comprising: Display the authorization page; as well as Based on the obtained user authorization, a connection is established with the second voice service.
14. The method of claim 13, wherein: The authorization page displayed includes: A QR code for associating the second voice service account of the user is displayed, wherein the user authorization is obtained based on the user scanning the QR code and confirming the account binding.
15. The method of claim 12, wherein: Components with corresponding capabilities include: Retrieving a component having a specific capability added based on the second voice service, wherein, based on the capability proxy configuration, the capability proxy component of the second voice service is used to connect to the capability proxy component of the first voice service; and Based on the specific capability addition configuration, the specific capability component is added via the interface exposed by the capability proxy component of the second voice service.
16. The method according to any one of claims 12 to 15, wherein: Implement at least one of the following as a separate patch: Gateway configuration; Authentication delegation configuration; Capability agent configuration; and Specific capabilities add configuration.
17. The method of claim 12, further comprising: Using the wake-up word of the second voice service to wake up the voice service system, Among them, an external acoustic service is used to connect to the wake-up word engine of the first voice service to provide keyword detection for the wake-up word of the second voice service.
18. The method of claim 12, wherein: The terminal includes a vehicle.
19. A voice service access system, comprising: A voice service system module of the first voice service, configured to obtain voice input and provide corresponding feedback based on the voice input; as well as The gateway sets a patch module for modifying the access to the first voice service to include access to the second voice service; The authentication delegation patch module is used to access the authorization service of the second voice service and obtain user authorization. wherein the system is capable of establishing a connection with the second voice service based on user authorization, Among them, by modifying the gateway settings of the communication library component in the voice service system of the first voice service, the access to the first voice service is modified to the access to the second voice service, and by modifying the interface of the authentication model of the voice service system, the authorization service of the second voice service is accessed.
20. The system of claim 19, further comprising: A capability proxy patch module, configured to use the capability proxy component of the second voice service to connect to the capability proxy component of the first voice service; at least one specific capability adding patch module, used to add at least one specific capability component via the interface exposed by the capability proxy component of the second voice service, The system is capable of calling the at least one specific capability component based on a feedback instruction of the second voice service to obtain the voice input.
21. A terminal, comprising: A microphone for receiving voice input; The voice service access system according to any one of claims 19 to 20, configured to provide a feedback instruction issued by the second voice service in response to the voice input; The action device is used to perform corresponding operations based on the feedback instruction.
22. The terminal according to claim 21, wherein: The action device comprises: A speaker, used to perform corresponding voice output based on the feedback instruction; A terminal control device, used to perform corresponding terminal control operations based on the feedback instruction; and / or The display is used to display a page corresponding to at least one specific capability based on the feedback instruction.
23. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 18.
24. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Method and device for providing voice service and server
CN107277153A
Information processing apparatus, speech recognition system, and information processing method
US20190187953A1
