Vehicle-mounted audio system and control method
By designing confirmation modules and parallel connection methods in the vehicle audio system, the existing system hardware interface restrictions and insufficient information transmission confirmation are solved, and multi-device connections and accurate information transmission are realized, reducing costs and improving communication efficiency.
Patent Information
- Application Number
- CN202411894254.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-25
AI Technical Summary
The existing vehicle audio system has limitations in terms of hardware interfaces, and it is impossible to connect multiple I2S slave devices at the same time, and the lack of an information transmission and confirmation mechanism, resulting in a reduced communication efficiency.
By designing a confirmation module in the audio processor and connecting the output slave device's data output port to the data input port of the master device using parallel connection, connecting the data input port of the slave device to the data output port of the master device with a shared clock port, realizing the connection between multiple slave devices and confirming before sending information.
When the number of I2S interfaces of the master device is less than the number of slave devices, the connection requirements of the slave device can still be met, the system cost can be reduced, and the accuracy of communication can be improved.
Smart Images

Figure CN119883175A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of audio technology, and in particular to a vehicle-mounted audio system and a control method. Background Art
[0002] With the development of in-vehicle electronic technology, social software has been widely used in in-vehicle devices, allowing people to communicate with others in a multimedia way while driving. At present, the implementation of these functions is based on the following in-vehicle audio system: a microphone is connected to the audio processor through an I2S interface, collects the speaker's voice signal for processing, and then sends it to the recipient through social software; a power amplifier chip is connected to the audio processor through another I2S interface, receives the voice sent by the audio processor for playback.
[0003] However, this in-car audio system has the following defects: ① In terms of hardware, the microphone, power amplifier chip and audio processor are all connected in a master-slave mode. In some low-cost solutions, the audio processor has a limited number of I2S ports, which is smaller than the number of slave devices that need to be connected. Therefore, the hardware interface of the above-mentioned in-car audio system cannot meet the requirements. For example, the audio processor has only one I2S master port, while the microphone and power amplifier chip are I2S slave devices. According to the current solution, the microphone and power amplifier chip cannot be connected to the audio processor at the same time; ② In terms of interaction, the sending of voice or text is not confirmed by the sender, which sometimes causes the information sent to be wrong, resulting in reduced communication efficiency. Summary of the invention
[0004] The present invention provides a vehicle audio system and a control method, aiming to solve the defects in the prior art, so as to achieve that when the number of I2S interfaces of a master device is less than that of slave devices, the connection requirements of the slave devices can still be met, the system cost can be reduced, and confirmation can be performed before sending information, thereby improving the accuracy of communication.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is:
[0006] One aspect of the present invention provides a vehicle audio system, comprising:
[0007] An audio processor and several I2S external devices connected thereto, wherein the audio processor is a master device and the external devices are slave devices, the master device has at least one I2S interface, and the number of I2S interfaces of the master device is less than the number of slave devices, and the slave devices include at least one output device as a first slave device and one input device as a second slave device; the slave device at least connects an I2S data output port of one of the output devices to an I2S data input port of the master device, and the slave device at least connects an I2S output input port of one of the input devices to an I2S data output port of the master device, and the output device and the input device's bit clock port and left and right clock ports are respectively connected in parallel to the corresponding I2S ports of the master device.
[0008] Specifically, the audio processor includes: an audio processing module and an I2S interface connected thereto, an input mode module, a repeat module, a confirmation module, and a transceiver module, wherein the confirmation module is also connected to the repeat module and the transceiver module, and the repeat module is also connected to a data output port of the I2S interface;
[0009] The input mode module is used to receive a selection instruction input by a user to determine an interaction mode, wherein the interaction mode includes a text mode and a voice mode;
[0010] The audio processing module is used to process the input voice signal according to a first preset rule to generate first interaction information, or send the second interaction information obtained by processing the information received by the transceiver module to the output device for output, wherein the first preset rule includes: if the interaction mode is a text mode, the voice signal is converted into text and then converted into a digital signal and output to the repeat module; if the interaction mode is a voice mode, the voice signal is pre-processed and converted into a digital signal and output to the repeat module;
[0011] The repeating module is used to send the processed text or voice to the I2S data output port of the master device;
[0012] The confirmation module is used to receive a sending confirmation instruction input by a user and send the processed text or voice to the transceiver module;
[0013] The transceiver module is used to send the first interaction information to the recipient after receiving the sending confirmation instruction; or receive text or voice information sent by the other party and send it to the audio processing module for processing.
[0014] Specifically, the confirmation module is one or more of a key command input module, a gesture command input module, and a voice command input module.
[0015] Specifically, the first slave device is a microphone.
[0016] Specifically, the second slave device is a power amplifier chip.
[0017] Another aspect of the present invention provides a control method based on the vehicle audio system, comprising:
[0018] Step 1, the audio processing module configures the I2S data output port and the I2S data input port of the master device according to the working mode;
[0019] Step 2: The audio processing module generates corresponding first interaction information according to the interaction mode;
[0020] Step 3: The confirmation module performs corresponding operations on the first interaction information according to the user's confirmation instruction.
[0021] Specifically, the step 1 includes:
[0022] Step 101, the audio processing module determines whether to enable the text or voice input mode, if yes, the I2S data output port of the master device is configured to be invalid and proceed to the next step, otherwise, proceed to the next step;
[0023] Step 102: The audio processing module determines whether the play mode is turned on, and if so, enables the I2S data output port of the master device and shields the I2S data input port of the master device.
[0024] Specifically, the step 2 includes:
[0025] Step 201, controlling the audio processing module to receive an audio signal input from a first slave device from its data input port;
[0026] Step 202: The audio processing module processes the audio signal according to the first preset rule according to the current input mode to generate first interaction information, sends the first interaction information to the repetition module as repetition content, and enables the I2S data output port.
[0027] Specifically, the step 3 includes:
[0028] Step 301, the repetition module processes the received repetition content type according to the second preset rule, the second preset rule comprising: if the repetition content type is text information, converting the text information into an I2S audio signal and sending it to the second slave device; if the repetition content type is voice information, directly sending the voice information to the second slave device;
[0029] Step 302: the re-reading module determines whether the re-reading content has been sent. If yes, it proceeds to the next step, otherwise, it loops through the steps;
[0030] Step 303: The confirmation module determines whether a sending confirmation instruction is received. If yes, the audio processing module sends the first interaction information to the transceiver module; otherwise, the first interaction information is deleted.
[0031] Specifically, if the confirmation module is a voice input module, whether the sending confirmation instruction is received includes:
[0032] Step a, determining whether the voice message is received within the preset time, if yes, proceeding to the next step, otherwise determining that the preset confirmation instruction is not received;
[0033] Step b, preprocessing the voice information, and dividing the processed voice into a preset number of segments, and saving them as unit voices;
[0034] Step c, obtaining the unit Mel-frequency cepstral coefficient corresponding to the unit speech, and calculating the average value of all the unit Mel-frequency cepstral coefficients to obtain the global Mel-frequency cepstral coefficient average value;
[0035] Step d, calculating a first similarity, and determining whether the first similarity exceeds a first threshold, if yes, proceeding to the next step, otherwise determining that no preset confirmation instruction has been received, the first similarity being the similarity between the average value of the global Mel-frequency cepstral coefficients and the preset Mel-frequency cepstral coefficients;
[0036] Step e, performing a first-order difference operation on the unit Mel-frequency cepstrum coefficient to obtain a unit differential Mel-frequency cepstrum coefficient;
[0037] Step f, calculating a second similarity, where the second similarity is the similarity between the unit differential Mel-frequency cepstral coefficient and the preset Mel-frequency cepstral coefficient, and determining whether the difference between the first similarity and the second similarity is less than a second threshold value, if so, determining that a preset confirmation instruction has been received, otherwise determining that the preset confirmation instruction has not been received.
[0038] The beneficial effects of the present invention are as follows: the present invention connects the data output port of the output slave device to the data input port of the master device by a single line, connects the data input port of the input slave device to the data output port of the master device by a single line, and the output slave device and the input slave device share a clock port, thereby achieving the situation that when the number of I2S interfaces of the master device is less than the number of slave devices, the connection requirements of the slave devices can still be met, thereby reducing the system cost, and by setting a confirmation module in the audio processor, confirmation is performed before sending information, thereby improving the accuracy of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a schematic diagram of the vehicle audio system of the present invention;
[0040] Figure 2It is a flow chart of the vehicle audio system control method of the present invention. DETAILED DESCRIPTION
[0041] The following specifically describes the embodiments of the present invention in conjunction with the accompanying drawings, which are only for reference and illustration and do not constitute a limitation on the scope of patent protection of the present invention.
[0042] In the process described in the specification, claims or drawings of the present invention, the serial numbers of each step (such as step 10, 20, etc.) are included. The serial numbers are only used to distinguish the steps, and the serial numbers themselves do not represent any execution order. It should be noted that the descriptions such as "first" and "second" in this article are only used to distinguish the description objects, etc., and do not represent the order of precedence, nor do they mean that "first", "second", etc. are different types.
[0043] Example 1
[0044] like Figure 1 As shown, this embodiment provides a vehicle audio system, including:
[0045] An audio processor and several I2S external devices connected thereto, wherein the audio processor is a master device and the external devices are slave devices, the master device has at least one I2S interface, and the number of I2S interfaces of the master device is less than the number of slave devices, and the slave devices include at least one output device as a first slave device and one input device as a second slave device; the slave device at least connects an I2S data output port of one of the output devices to an I2S data input port of the master device, and the slave device at least connects an I2S output input port of one of the input devices to an I2S data output port of the master device, and the output device and the input device's bit clock port and left and right clock ports are respectively connected in parallel to the corresponding I2S ports of the master device.
[0046] In another embodiment of the present invention, the audio processor comprises:
[0047] An audio processing module and an I2S interface, an input mode module, a repeat module, a confirmation module, and a transceiver module connected thereto, wherein the confirmation module is also connected to the repeat module and the transceiver module, and the repeat module is also connected to a data output port of the I2S interface;
[0048] The input mode module is used to receive a selection instruction input by a user to determine an interaction mode, wherein the interaction mode includes a text mode and a voice mode;
[0049] The audio processing module is used to process the input voice signal according to a first preset rule to generate first interaction information, or send the second interaction information obtained by processing the information received by the transceiver module to the output device for output, wherein the first preset rule includes: if the interaction mode is a text mode, the voice signal is converted into text and then converted into a digital signal and output to the repeat module; if the interaction mode is a voice mode, the voice signal is pre-processed and converted into a digital signal and output to the repeat module;
[0050] The repeating module is used to send the processed text or voice to the I2S data output port of the master device;
[0051] The confirmation module is used to receive a sending confirmation instruction input by a user and send the processed text or voice to the transceiver module;
[0052] The transceiver module is used to send the first interaction information to the recipient after receiving the sending confirmation instruction; or receive text or voice information sent by the other party and send it to the audio processing module for processing.
[0053] In this embodiment, the text mode is to convert the voice input by the user into text and send it out, and the voice mode is to send the voice input by the user in the form of voice.
[0054] In this embodiment, the confirmation module is one or more of a key command input module, a gesture command input module, and a voice command input module.
[0055] Correspondingly, the confirmation instruction may be a key instruction, a gesture instruction, or a voice instruction.
[0056] In this embodiment, the first slave device is a microphone, and the second slave device is a power amplifier chip.
[0057] Example 2
[0058] like Figure 2 As shown, this embodiment provides a control method for the vehicle audio system based on Embodiment 1, including:
[0059] Step 1: The audio processing module configures the I2S data output port and the I2S data input port of the master device according to the working mode.
[0060] Step 2: The audio processing module generates corresponding first interaction information according to the interaction mode.
[0061] Step 3: The confirmation module performs corresponding operations on the first interaction information according to the user's confirmation instruction.
[0062] In this embodiment, step 1 includes:
[0063] Step 101, the audio processing module determines whether to enable the text or voice input mode, if yes, the I2S data output port of the master device is configured to be invalid and proceed to the next step, otherwise, proceed to the next step.
[0064] Step 102: The audio processing module determines whether the play mode is turned on, and if so, enables the I2S data output port of the master device and shields the I2S data input port of the master device.
[0065] In this embodiment, step 2 includes:
[0066] Step 201: Control the audio processing module to receive an audio signal input from a first slave device through its data input port.
[0067] Step 202: The audio processing module processes the audio signal according to the first preset rule according to the current input mode to generate first interaction information, sends the first interaction information to the repetition module as repetition content, and enables the I2S data output port.
[0068] In this embodiment, step 3 includes:
[0069] Step 301, the repeat module processes according to the second preset rule based on the type of the received repeat content, and the second preset rule includes: if the repeat content type is text information, the text information is converted into an I2S audio signal and sent to the second slave device; if the repeat content type is voice information, the voice information is directly sent to the second slave device.
[0070] Step 302: The re-reading module determines whether the re-reading content has been sent. If yes, it proceeds to the next step; otherwise, it loops through this step.
[0071] Step 303: The confirmation module determines whether a sending confirmation instruction is received. If yes, the audio processing module sends the first interaction information to the transceiver module; otherwise, the first interaction information is deleted.
[0072] In this embodiment, if the confirmation module is a voice input module, whether the sending confirmation instruction is received includes:
[0073] Step a: determine whether the voice message is received within the preset time, if yes, proceed to the next step, otherwise, determine that the preset confirmation instruction is not received.
[0074] Step b: preprocess the voice information, and divide the processed voice into a preset number of segments and save them as unit voices.
[0075] In this embodiment, the preprocessing includes processing measures such as noise reduction to improve the signal-to-noise ratio of the original speech.
[0076] Step c: obtaining the unit mel-frequency cepstral coefficient corresponding to the unit speech, and calculating the average value of all the unit mel-frequency cepstral coefficients to obtain the global mel-frequency cepstral coefficient average value.
[0077] For example, if the processed original speech is divided into 10 unit speech, 10 unit Mel-frequency cepstral coefficients are obtained, and the average value of the 10 unit Mel-frequency cepstral coefficients is calculated.
[0078] Step d, calculating a first similarity, and determining whether the first similarity exceeds a first threshold, if so, proceeding to the next step, otherwise determining that no preset confirmation instruction has been received, the first similarity being the similarity between the average value of the global Mel-frequency cepstral coefficients and the preset Mel-frequency cepstral coefficients.
[0079] In this embodiment, the preset Mel-frequency cepstral coefficients are Mel-frequency cepstral coefficients of a preset target (eg, a car owner) comparison sound sample.
[0080] Step e: performing a first-order difference operation on the unit Mel-frequency cepstrum coefficients to obtain unit differential Mel-frequency cepstrum coefficients.
[0081] In this embodiment, a first-order difference operation is creatively performed on the unit Mel-frequency cepstral coefficients to obtain the transition characteristics of the resonance peak, which makes up for the defect that the global Mel-frequency cepstral coefficients cannot reflect the transition characteristics of the resonance peak, thereby further improving the accuracy of the judgment.
[0082] Step f, calculating a second similarity, where the second similarity is the similarity between the unit differential Mel-frequency cepstral coefficient and the preset Mel-frequency cepstral coefficient, and determining whether the difference between the first similarity and the second similarity is less than a second threshold value, if so, determining that a preset confirmation instruction has been received, otherwise determining that the preset confirmation instruction has not been received.
[0083] The above disclosure is only a preferred embodiment of the present invention, which cannot be used to limit the scope of protection of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention are still within the scope covered by the present invention.
Claims
1. A car audio system, characterized in that: include: An audio processor and several I2S external devices connected thereto, wherein the audio processor is a master device and the external devices are slave devices, the master device has at least one I2S interface, and the number of I2S interfaces of the master device is less than the number of slave devices, and the slave devices include at least one output device as a first slave device and one input device as a second slave device; the slave device at least connects an I2S data output port of one of the output devices to an I2S data input port of the master device, and the slave device at least connects an I2S output input port of one of the input devices to an I2S data output port of the master device, and the output device and the input device's bit clock port and left and right clock ports are respectively connected in parallel to the corresponding I2S ports of the master device.
2. The vehicle audio system according to claim 1, characterized in that: The audio processor comprises: an audio processing module and an I2S interface connected thereto, an input mode module, a repeat module, a confirmation module, and a transceiver module, wherein the confirmation module is also connected to the repeat module and the transceiver module, and the repeat module is also connected to a data output port of the I2S interface; The input mode module is used to receive a selection instruction input by a user to determine an interaction mode, wherein the interaction mode includes a text mode and a voice mode; The audio processing module is used to process the input voice signal according to a first preset rule to generate first interaction information, or send the second interaction information obtained by processing the information received by the transceiver module to the output device for output, wherein the first preset rule includes: if the interaction mode is a text mode, the voice signal is converted into text and then converted into a digital signal and output to the repeat module; if the interaction mode is a voice mode, the voice signal is pre-processed and converted into a digital signal and output to the repeat module; The repeating module is used to send the processed text or voice to the I2S data output port of the master device; The confirmation module is used to receive a sending confirmation instruction input by a user and send the processed text or voice to the transceiver module; The transceiver module is used to send the first interaction information to the recipient after receiving the sending confirmation instruction; or receive text or voice information sent by the other party and send it to the audio processing module for processing.
3. The vehicle audio system according to claim 2, characterized in that: The confirmation module is one or more of a key command input module, a gesture command input module, and a voice command input module.
4. The vehicle audio system according to claim 1, characterized in that: The first slave device is a microphone.
5. The vehicle audio system according to claim 1, characterized in that: The second slave device is a power amplifier chip.
6. A method for controlling a vehicle audio system, characterized in that: include: Step 1, the audio processing module configures the I2S data output port and the I2S data input port of the master device according to the working mode; Step 2: The audio processing module generates corresponding first interaction information according to the interaction mode; Step 3: The confirmation module performs corresponding operations on the first interaction information according to the user's confirmation instruction.
7. The vehicle audio system control method according to claim 6, characterized in that: The step 1 comprises: Step 101, the audio processing module determines whether to enable the text or voice input mode, if yes, the I2S data output port of the master device is configured to be invalid and proceed to the next step, otherwise, proceed to the next step; Step 102: The audio processing module determines whether the play mode is turned on, and if so, enables the I2S data output port of the master device and shields the I2S data input port of the master device.
8. The vehicle audio system control method according to claim 7, characterized in that: The step 2 comprises: Step 201, controlling the audio processing module to receive an audio signal input from a first slave device from its data input port; Step 202: The audio processing module processes the audio signal according to the first preset rule according to the current input mode to generate first interaction information, sends the first interaction information to the repetition module as repetition content, and enables the I2S data output port.
9. The vehicle audio system control method according to claim 8, characterized in that: The step 3 comprises: Step 301, the repetition module processes the received repetition content type according to the second preset rule, the second preset rule comprising: if the repetition content type is text information, converting the text information into an I2S audio signal and sending it to the second slave device; if the repetition content type is voice information, directly sending the voice information to the second slave device; Step 302: the re-reading module determines whether the re-reading content has been sent. If yes, it proceeds to the next step, otherwise, it loops through the steps; Step 303: The confirmation module determines whether a sending confirmation instruction is received. If yes, the audio processing module sends the first interaction information to the transceiver module; otherwise, the first interaction information is deleted.
10. The vehicle audio system control method according to claim 9, characterized in that: If the confirmation module is a voice input module, whether the sending confirmation instruction is received includes: Step a, determining whether the voice message is received within the preset time, if yes, proceeding to the next step, otherwise determining that the preset confirmation instruction is not received; Step b, preprocessing the voice information, and dividing the processed voice into a preset number of segments, and saving them as unit voices; Step c, obtaining the unit Mel-frequency cepstral coefficient corresponding to the unit speech, and calculating the average value of all the unit Mel-frequency cepstral coefficients to obtain the global Mel-frequency cepstral coefficient average value; Step d, calculating a first similarity, and determining whether the first similarity exceeds a first threshold, if yes, proceeding to the next step, otherwise determining that no preset confirmation instruction has been received, the first similarity being the similarity between the average value of the global Mel-frequency cepstral coefficients and the preset Mel-frequency cepstral coefficients; Step e, performing a first-order difference operation on the unit Mel-frequency cepstrum coefficient to obtain a unit differential Mel-frequency cepstrum coefficient; Step f, calculating a second similarity, where the second similarity is the similarity between the unit differential Mel-frequency cepstral coefficient and the preset Mel-frequency cepstral coefficient, and determining whether the difference between the first similarity and the second similarity is less than a second threshold value, if so, determining that a preset confirmation instruction has been received, otherwise determining that the preset confirmation instruction has not been received.