CN117395570A - Sound playing method and device and computer readable storage medium - Google Patents

Sound playing method and device and computer readable storage medium Download PDF

Info

Publication number
CN117395570A
CN117395570A CN202311331938.7A CN202311331938A CN117395570A CN 117395570 A CN117395570 A CN 117395570A CN 202311331938 A CN202311331938 A CN 202311331938A CN 117395570 A CN117395570 A CN 117395570A
Authority
CN
China
Prior art keywords
sound box
external
external sound
audio
output power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311331938.7A
Other languages
Chinese (zh)
Inventor
谢杰
包楠
于红超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Seres New Energy Automobile Design Institute Co Ltd
Original Assignee
Chongqing Seres New Energy Automobile Design Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Seres New Energy Automobile Design Institute Co Ltd filed Critical Chongqing Seres New Energy Automobile Design Institute Co Ltd
Priority to CN202311331938.7A priority Critical patent/CN117395570A/en
Publication of CN117395570A publication Critical patent/CN117395570A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The application relates to the technical field of intelligent cabins and provides a sound playing method, a sound playing device and a computer readable storage medium. The method comprises the following steps: detecting that an interface of a vehicle end is connected with an external sound box, and determining the audio to be played of each external sound box; acquiring an interface attribute of each external sound box access, wherein the interface attribute comprises an interface position; determining a corresponding current power amplification efficiency output power value in a preset power amplification efficiency output power meter, wherein the power amplification efficiency output power value comprises vehicle end power amplification efficiency output power values respectively corresponding to each vehicle end sound box and external power amplification efficiency output power values respectively corresponding to each external sound box based on an interface position; and outputting the output power value of the external power amplifier efficiency and the audio to be played to the corresponding external sound box so that the external sound box plays the audio to be played at the output power value of the external power amplifier efficiency. According to the sound playing method, a playing effect of more stereoscopic surrounding can be achieved, and sound field experience of a user is improved.

Description

Sound playing method and device and computer readable storage medium
Technical Field
The present disclosure relates to the field of intelligent cabins, and in particular, to a sound playing method, a sound playing device, and a computer readable storage medium.
Background
In the prior art, the vehicle-mounted sound source system can meet the requirements of users for playing music, media programs, voice calls and the like in the driving process, the number of sound boxes included in the vehicle-mounted sound source system is large, a plurality of sound boxes included in the sound source system are arranged around a vehicle body, and the three-dimensional surrounding effect of sound effect playing can be guaranteed.
However, with the development of technology, the requirement for stereo surround effect of audio playing is increased, the cost of iterating purchased vehicles is high, and the hardware updating is difficult and heavy, so that a better and more stereo surround audio system cannot be provided for the user who has purchased the vehicles, thereby reducing the vehicle experience of the user.
Disclosure of Invention
In view of the foregoing, embodiments of the present application provide a sound playing method, apparatus and computer readable storage medium, so as to solve the problem that the prior art cannot provide a better and more stereo surrounding sound source system for users who have purchased vehicles.
In a first aspect of an embodiment of the present application, a sound playing method is provided, which is applied to a vehicle end, and includes:
detecting that an interface of a vehicle end is connected with an external sound box, and determining the audio to be played of each external sound box;
acquiring an interface attribute of each external sound box access, wherein the interface attribute comprises an interface position;
Determining a corresponding current power amplification efficiency output power value in a preset power amplification efficiency output power meter, wherein the power amplification efficiency output power value comprises vehicle end power amplification efficiency output power values respectively corresponding to each vehicle end sound box and external power amplification efficiency output power values respectively corresponding to each external sound box based on an interface position;
and outputting the output power value of the external power amplifier efficiency and the audio to be played to the corresponding external sound box so that the external sound box plays the audio to be played at the output power value of the external power amplifier efficiency.
In a second aspect of the embodiments of the present application, a sound playing method is provided, which is applied to an external speaker, and includes:
detecting that an interface of an external sound box is connected to an interface of a vehicle end in a wired mode, and performing power amplification digital mutual recognition with the vehicle end to obtain a power amplification digital mutual recognition result;
when the digital mutual recognition result of the power amplifier is successful, the audio processing function of the power amplifier is closed, and the external power amplifier efficiency output power value and the audio to be played sent by the vehicle end are received;
decoding the audio to be played, and playing the audio to be played according to the output power value of the external power amplifier efficiency.
In a third aspect of the embodiments of the present application, a sound playing device is provided, and is applied to a vehicle end, including:
The first processing module is configured to detect that an interface of a vehicle end is connected with an external sound box, and determine audio to be played of each external sound box;
the second processing module is configured to acquire the interface attribute of each external sound box access, wherein the interface attribute comprises an interface position;
the third processing module is configured to determine a corresponding current power amplification efficiency output power value in a preset power amplification efficiency output power meter, wherein the power amplification efficiency output power value comprises a vehicle end power amplification efficiency output power value respectively corresponding to each vehicle end sound box and an external power amplification efficiency output power value respectively corresponding to each external sound box based on an interface position;
the output module is configured to output the output power value of the external power amplifier efficiency and the audio to be played to the corresponding external sound box, so that the external sound box plays the audio to be played at the output power value of the external power amplifier efficiency.
In a fourth aspect of the embodiments of the present application, a sound playing device is provided, and the sound playing device is applied to an external sound box, and includes:
the verification module is configured to detect that an interface of the external sound box is connected to an interface of the vehicle end in a wired mode, and perform power amplification digital mutual recognition with the vehicle end to obtain a power amplification digital mutual recognition result;
the receiving module is configured to close the audio processing function of the receiving module when the digital mutual recognition result of the power amplifier is successful, and receives the output power value of the external power amplifier efficiency and the audio to be played, which are sent by the vehicle end;
The playing module is configured to decode the audio to be played and play the audio to be played according to the output power value of the external power amplification efficiency.
In a fifth aspect of the embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a sixth aspect of the embodiments of the present application, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above method.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the external sound box can be connected to the vehicle end through the interface of the vehicle end, when the vehicle end detects that the external sound box is connected to the vehicle end through the interface, the audio to be played of each external sound box is determined, the vehicle end can acquire the interface position of the connected external sound box, and the current power amplification efficiency output power is determined in the preset power amplification efficiency output power meter according to the interface position, so that the audio to be played can be processed according to the position of the external sound box, the audio to be played is obtained, the external power amplification efficiency output power value corresponding to each external sound box and the audio to be played are sent to the corresponding external sound box, more sound channels can be provided through the connected external sound box, the playing effect of more three-dimensional surrounding is achieved, and the sound field experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a sound playing method according to an embodiment of the present application;
fig. 2 is a flowchart of another sound playing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a sound playing device according to an embodiment of the present application;
fig. 4 is a schematic diagram of another sound playing device according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Along with development of technology, users have increased demands for sound box layouts in vehicles, and sound source systems can be roughly divided into a plurality of channel layouts such as mono, stereo, quasi-stereo, four-channel, 5.1 channel, 7.1 channel and the like according to channels. When the layout sound box corresponding to 5.1 sound channels and more is adopted, a centrally-arranged sound generating unit is required to be added on the basis of four sound channels so as to achieve a stereo surrounding sound source system with 5.1 sound channels and more. In the prior art, the centrally-mounted sounding units are all fixed units and cannot be used independently.
A sound playing method and apparatus according to embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a sound playing method according to an embodiment of the present application. As shown in fig. 1, the sound playing method includes the following steps:
s101, detecting that an interface of a vehicle end is connected with an external sound box, and determining audio to be played of each external sound box;
s102, acquiring an interface attribute of each external sound box;
s103, determining the corresponding current power amplifier efficiency output power value in a preset power amplifier efficiency output power meter;
and S104, outputting the output power value of the external power amplifier efficiency and the audio to be played to the corresponding external sound box so that the external sound box plays the audio to be played at the output power value of the external power amplifier efficiency.
The interface attribute comprises an interface position, and the power amplification efficiency output power value comprises a vehicle end power amplification efficiency output power value corresponding to each vehicle end sound box respectively, and an external power amplification efficiency output power value corresponding to each external sound box based on the interface position respectively.
In an exemplary embodiment of the present application, when an external sound box is connected to an interface of a vehicle end, audio to be played of each external sound box is determined, where an upper limit of the number of external sound boxes is an upper limit of the number of interfaces that can be connected to the vehicle end, and one or more external sound boxes can be connected to the vehicle end interface at the same time.
The interface attribute includes an interface position, for example, the interface position that has been connected to the external speaker is located near the main driver, or near the auxiliary driver, or near the trunk and the main driver, and there may be a combination of multiple interface positions among multiple interface positions.
When the external sound box is connected with the interfaces of the vehicle end, the vehicle end obtains all interface positions, and determines the current power amplification efficiency output power value in a preset power amplification efficiency output power meter, wherein the power amplification efficiency output power value comprises the vehicle end power amplification efficiency output power value respectively corresponding to each vehicle end sound box, and each external sound box is connected with the interfaces of the vehicle end in a wired mode according to the external power amplification efficiency output power value corresponding to the interface position.
For example, the number of the vehicle-end sound boxes is 6, wherein the vehicle-end sound boxes comprise one centrally-arranged sound unit, the number of the external sound boxes is 2, the sound channels corresponding to the sound source system of the vehicle end are 5.1 sound channels when the external sound boxes are not connected, the vehicle-end sound boxes are distributed according to the mode of 5.1 sound channels when the power amplification efficiency output power value of each vehicle-end sound box is distributed, and the vehicle-end sound boxes are distributed according to the mode of 7.1 sound channels after the external sound boxes are connected.
If the vehicle end is connected with an external sound box, the external sound box is used as a central sound unit by default, or whether to adjust the central sound unit before connection and the central sound unit after adjustment is determined according to a control instruction sent by a user through terminal equipment. If the vehicle end is connected with a plurality of external sound boxes, a centrally-mounted sound unit is determined in a plurality of interfaces, and the sound unit can be adjusted through a control instruction of the terminal equipment, can be adjusted according to a preset mode, and can be not adjusted.
And outputting the output power value of the external power amplifier efficiency and the audio to be played to the corresponding external sound box, so that the external sound box plays the audio to be played at the output power value of the external power amplifier efficiency.
The external sound box is a sound box capable of receiving audio frequency and adjusting the output power value of the power amplification efficiency, such as a Bluetooth sound box or a wireless sound box. Taking an external sound box as a Bluetooth sound box as an example, the structure of the external sound box is illustrated in an example way:
A shell: the design is coordinated with the environment in the vehicle as much as possible, and is convenient to fix in the internal space of the vehicle, the Bluetooth sound box at least comprises an integrated Bluetooth module, an audio processor and a loudspeaker unit, so that the function of the independent Bluetooth sound box can be realized, and meanwhile, the design of dust prevention, water prevention and shock resistance is considered, so that the Bluetooth sound box is suitable for the use of the Bluetooth sound box under different environmental conditions;
and (3) integrating a Bluetooth module: the proper Bluetooth chip is selected, most Bluetooth versions and configurations can be supported, and the integrated Bluetooth module is ensured to support an audio transmission protocol (such as an A2DP protocol) and a control protocol (such as an AVRCP protocol);
speaker unit: selecting a proper loudspeaker unit according to design requirements, wherein the requirements of sound quality and power are considered;
an audio processor: integrating a proper audio processor for sound field conversion, equalization and sound effect processing;
wired connection and wireless switching: when the Bluetooth sound box is detected to be connected to the vehicle in a wired mode, the audio processing function of the Bluetooth sound box is suspended, and the vehicle end is directly used for sending the audio to be played to the external power amplifier efficiency output power value.
According to the technical scheme provided by the embodiment of the application, the current power amplification efficiency output power value can be determined according to the interface position of the external sound box connected with the vehicle end, audio to be played is processed, the external power amplification efficiency output power value corresponding to each external sound box and the audio to be played are sent to the corresponding external sound box, more sound channel output can be provided in the vehicle, the playing effect of three-dimensional surrounding is achieved, and the sound field experience and feeling of a user are improved.
In some embodiments, after detecting that the interface of the vehicle end is connected to the external sound box and determining the audio to be played of each external sound box, the method further includes:
sending authentication information to each external sound box, and receiving feedback information of each external sound box based on the authentication information;
based on the feedback information, judging whether the external sound box of the access interface is a pre-authenticated external sound box or not;
when the external sound box is a pre-authenticated external sound box, the vehicle end power amplification unit at the vehicle end and the external power amplification unit of the external sound box are controlled to carry out power amplification digital mutual recognition, and a power amplification digital mutual recognition result is obtained;
and when the digital mutual recognition result of the power amplifier is successful, executing the step of acquiring the accessed interface attribute of each external sound box.
A physical connection detection mechanism is designed between the external sound box and sound power amplifier equipment at the vehicle end, so that the audio source and sound field configuration can be automatically switched when the external sound box is connected in a wired mode, a wireless mode or a non-connected mode. For example, it is detected that the external sound box is connected to the vehicle end in a wired connection mode, the sound stage conversion mode is automatically switched to, the external sound box is detected to be connected to the vehicle end in a wireless connection mode, audio to be played of the vehicle end is automatically sent to the external sound box to be played, the external sound box is detected to be not connected to the vehicle end, and the audio to be played is automatically played according to a default conventional sound stage mode of the vehicle end.
The physical connection detection can be to use a plug detection switch or a sensor, so that the external sound box can be accurately detected to be connected to the vehicle end in a wired connection mode, and the sensitivity of the plug detection needs to be capable of accurately detecting the change when the wired connection and the disconnection of the wired connection are met. And a microcontroller or a processor is used for managing the connection state and the switching logic in the external sound box so as to ensure the stability and the flexibility of software control. The connection state comprises wired connection, wireless connection and unconnected connection. Meanwhile, an automatic algorithm can be used in the external sound box, the connection mode corresponding to the connection state is switched in a walking mode according to the plug detection connection state and the wireless connection state, seamless switching experience is provided for a user, a switching protection mechanism is provided, the connection mode is prevented from being switched in error due to unexpected or malicious operation, the plug detection and switching mechanism can be ensured to be stable and reliable in long-time use, and environmental interference is not easy to receive.
The protection mechanism comprises interface verification, mutual recognition of the vehicle-end integral controller and the external sound box equipment and digital mutual recognition of the power amplifier, wherein the interface verification is that the vehicle-end sends authentication information to each external sound box and receives feedback information of the external sound box according to the authentication information, namely, the interface connected with the vehicle-end and the physical connection interface of the external sound box carry out signal mutual recognition, so that the access equipment of the two parties can be ensured to be correct equipment, and the equipment inserted into the vehicle-end integral controller after the verification passes.
After the interface verification, the vehicle-end integral controller and the external sound box equipment mutually recognize, and then the digital power amplification mutually recognize is carried out through the vehicle-end integral controller and the external sound box equipment, specifically, whether the external sound box connected with the interface is a pre-authenticated external sound box or not is judged according to feedback information, when the external sound box is the pre-authenticated external sound box, the vehicle-end power amplification unit of the vehicle-end and the external power amplification unit of the external sound box are controlled to carry out power amplification digital mutually recognize, a power amplification digital mutually recognize result is obtained, and when the power amplification digital mutually recognize result is successful, the step of obtaining the interface attribute connected with each external sound box is carried out. When the vehicle-end integral controller detects that the external sound box is the external sound box with the pre-authentication function, the external sound box is fed back to the vehicle-end power amplification unit, so that the vehicle-end power amplification unit and the external power amplification unit carry out digital power amplification mutual recognition, the digital power amplification mutual recognition result is successful, the vehicle-end power amplification unit starts the power amplification control of the external sound box, and the external sound box synchronously outputs the power value of the external power amplification efficiency sent by the vehicle end.
When the result of the mutual recognition of the power amplifier numbers is unsuccessful, the working state of the sound box at each vehicle end before the external sound box is connected is maintained.
The power amplification digital mutual recognition (Digital Amplifier Mutual Recognition) refers to an acoustic amplification technology for amplifying and replaying by digital signals. The purpose is to make the connection between the power amplifier equipment and the sound box more stable and reliable, and to realize more accurate audio signal transmission.
In the implementation of digital mutual recognition of power amplifiers, a digital signal interface, such as HDMI, displayPort, USB, is generally used to transmit audio signals. These digital interfaces may provide higher audio resolution and lower signal noise, thereby making the transmission of audio signals more stable and reliable. Multiple advanced functions such as audio format recognition, level matching, delay setting, etc. can also be implemented by power amplification digital mutual recognition. The functions can help the power amplifier device and the loudspeaker box to be compatible better, so that more accurate audio signal transmission and more realistic sound effect expression are realized.
According to the technical scheme provided by the embodiment of the application, the external sound box connected to the vehicle-end interface can be determined to be the external sound box with pre-authentication, and verification is performed for a plurality of times before the corresponding external power amplification efficiency output power value and the content to be played are sent to the external sound box, so that the safety of the vehicle-mounted system connected to the external sound box is protected, meanwhile, the physical connection detection mechanism is added, the audio source and the sound field configuration can be switched automatically more sensitively, the sound field effect is improved, and the use experience of a user for playing sound by using the external sound box is improved.
In some embodiments, detecting that an interface of a vehicle end is connected to an external sound box, determining audio to be played of each external sound box includes:
Determining the number of accessed external sound boxes, and acquiring performance parameters of the external sound boxes;
determining each output channel type according to the access number and the performance parameters;
and carrying out audio track separation on the audio to be played at the vehicle end according to the type of each output sound channel to obtain the audio to be played of each external sound box.
The method comprises the steps of determining the access number of all accessed external sound boxes and obtaining the performance parameters of all external sound boxes, wherein the access number of the accessed external sound boxes can be one or a plurality of. The above-mentioned process can be implemented by the interface of vehicle end and related control unit, in which the performance parameters can include the power, frequency response and other audio characteristics of sound box, and the communication protocol and data format information of interface with vehicle.
After the performance parameters of all the external speakers are obtained, determining the type of the output channel of each external speaker according to the number of accesses and the corresponding performance parameters of each external speaker, where the above process may be performed according to a preset rule or algorithm, for example, determining an optimal type of the output channel according to an average value or a weighted average value of the performance parameters, or selecting according to user-defined configuration.
And according to the determined type of each output sound channel, audio track separation is carried out on the audio to be played at the vehicle end through an audio processing algorithm or software, for example, audio signals are separated according to different sound channel types, so that the audio to be played of each external sound box is obtained.
According to the technical scheme provided by the embodiment of the application, audio to be played can be distributed for each external sound box and each vehicle-end sound box according to the performance parameters when one or more external sound boxes are connected to the interfaces of the vehicle-end, so that each external sound box and each vehicle-end sound box can play independent partial audio according to the sound field effect, the sound field effect is improved, and clearer and three-dimensional hearing experience is provided for passengers.
In some embodiments, determining, in the preset power amplifier efficiency output power meter, a corresponding current power amplifier efficiency output power value based on the interface position includes:
when all the interface positions are distributed in the same pre-divided space region of the vehicle end, determining the current power amplification efficiency output power value in a preset power amplification efficiency output power meter according to the pre-divided space region and the access number of all the accessed external sound boxes;
when the interface positions are distributed in different pre-divided space areas, the distribution proportion of each pre-divided space area is determined, and the current power amplifier efficiency output power value is determined in a preset power amplifier efficiency output power meter according to the distribution proportion and the corresponding access number of each pre-divided space area.
The sound power amplifier device is designed for the vehicle-end sound box system, an external sound box in wired connection can be supported, a vehicle-end power amplifier unit and decoding logic of the external power amplifier unit are developed, and when the external unit is not linked in a wired mode, other vehicle-end sound boxes need to be ensured to work normally, so that a specific sound field mode is formed. The high-quality power capacitor and the high-quality filter can be used, the interference of power noise to audio signals is reduced, overload protection, overheat protection and short-circuit protection circuits can be integrated, and damage to a vehicle-end power amplifier and a vehicle-end sound box under abnormal conditions is prevented. Meanwhile, the car end power amplifier is ensured to be matched with a corresponding loudspeaker unit so as to optimize audio output and tone quality. The impedance characteristics of the loudspeaker are considered corresponding to the loudspeaker unit, so that load matching of the vehicle-end power amplifier is ensured, the vehicle-end power amplifier unit can work stably under different loads and working conditions, the problem caused by load change is solved, the vehicle-end power amplifier unit is required to meet the related electromagnetic compatibility (EMC) standard, the interference of the vehicle-end power amplifier unit to other electronic equipment is reduced, the safety standard is complied with, and the vehicle-end power amplifier unit is ensured not to generate danger or potential safety hazard under the condition of normal use.
In an exemplary embodiment of the present application, taking four areas as default on a five-seat vehicle, the number of accesses to an external sound box is a single example, and performing exemplary explanation:
dividing four areas into a main driving area, a secondary driving area, a left rear row area and a right rear row area respectively, arranging wired interfaces of an external sound box in the four areas respectively, wherein each interface can be matched with the fixed direction of the external sound box, so that the area where the external sound box is positioned after wired connection can form an effective sound field environment of 5.1 sound channels or 7.1 sound channels, and meanwhile, the sound field conversion and the wired play can be carried out by matching with a whole car power amplifier and a zoned car end sound box, and the specific conversion mode can be as follows:
when the external sound box is detected to be arranged at the interface of the main driving area, the vehicle-mounted power amplifier unit adjusts the vehicle-mounted sound box and the external sound box, determines the current power amplifier efficiency output power value according to a preset power amplifier efficiency output power meter, controls the power amplifier unit of the external sound box to pause output, and receives the transmitted external power amplifier efficiency output power value and the content to be played of the vehicle-mounted power amplifier unit, so that a user of the main driving area can be in a sound field environment with strong stereoscopic surrounding sense formed by taking the main driving area as the center;
When the external sound box is detected to be arranged at the interface of the secondary driving area, the vehicle-mounted power amplifier unit adjusts the vehicle-mounted sound box and the external sound box, determines the current power amplifier efficiency output power value according to a preset power amplifier efficiency output power meter, controls the power amplifier unit of the external sound box to pause output, and receives the transmitted external power amplifier efficiency output power value and the content to be played of the vehicle-mounted power amplifier unit, so that a user of the secondary driving area can be in a sound field environment with strong stereoscopic surrounding sense formed by taking the secondary driving area as the center;
when the external sound box is detected to be arranged at the interface of the left back row area, the vehicle-mounted power amplifier unit adjusts the vehicle-mounted sound box and the external sound box, determines the current power amplifier efficiency output power value according to a preset power amplifier efficiency output power meter, controls the power amplifier unit of the external sound box to pause output, and receives the transmitted external power amplifier efficiency output power value and content to be played of the vehicle-mounted power amplifier unit, so that a user of the left back row area can be in a sound field environment with strong stereoscopic surrounding sense formed by taking the left back row area as the center;
when the external sound box is detected to be arranged at the interface of the right back row area, the vehicle-mounted power amplifier unit adjusts the vehicle-mounted sound box and the external sound box, determines the current power amplifier efficiency output power value according to a preset power amplifier efficiency output power meter, controls the power amplifier unit of the external sound box to pause output, and receives the transmitted external power amplifier efficiency output power value and content to be played of the vehicle-mounted power amplifier unit, so that a user in the right back row area can be in a sound field environment with strong stereoscopic surrounding sense formed by taking the right back row area as the center;
When the external sound box is detected to be not connected with the interface, the vehicle-mounted power amplification unit adjusts the vehicle-end sound box, so that the vehicle-end sound box is ensured to output an effect according to the sound field effect set by the user, and all users in the vehicle are in the sound field environment set by the user.
The space region in the vehicle can be divided again by a user, and the current power amplification efficiency output power value is readjusted according to the pre-divided space region and the preset power amplification efficiency output power meter after the space region is divided again.
When the number of the external sound boxes connected to the vehicle end is multiple, determining whether all interface positions are in the same pre-divided space area, if yes, distributing external power amplification efficiency output power values and audio to be played to all external sound boxes according to a mode that a single external sound box is connected to the vehicle end and performance parameters of all external sound boxes, or determining a weight related to the space area according to the number of all connected external sound boxes and characteristics of the pre-divided space area. The weight can be considered as the distribution condition of each external sound box in each pre-divided space area and the relative position of each external sound box relative to the preset space area, and the power amplification efficiency output power value corresponding to the weight is determined in a preset power amplification efficiency output power meter and used as the current power amplification efficiency output power value;
If not, determining the distribution proportion of each pre-divided space region in the whole vehicle, wherein the proportion can be determined according to the distribution condition of the interface position and the size of the pre-divided space region, determining a weight related to each region of the pre-divided space according to the distribution proportion and the access number of each pre-divided space region, and determining the power amplifier efficiency output power value corresponding to the weights in a preset power amplifier efficiency output power meter as the current power amplifier efficiency output power value.
According to the technical scheme provided by the embodiment of the application, the current power amplification efficiency output power value can be more accurately determined based on the interface position, the pre-divided space region and the access number of the external sound boxes included in the pre-divided space region, so that a sound source system in a vehicle is better controlled, a better sound field effect is provided for a user, and the user experience is improved.
In some embodiments, further comprising:
receiving a control instruction sent by terminal equipment;
updating playing parameters based on the control instruction, wherein the playing parameters comprise division, volume, sound effect and connection mode of the pre-divided space region;
and updating the current power amplifier efficiency output power value corresponding to each external sound box according to the playing parameters.
The user can send a control instruction through the terminal equipment to update the playing parameters, wherein the playing parameters comprise division, volume, sound effect, connection mode and the like of the pre-divided space region, and can also switch audio sources and configure sound field modes. Meanwhile, when the terminal equipment is a vehicle, physical buttons, knobs or touch areas can be provided, so that a user can directly control sound effects, volume, connection states and the like. The integrated voice recognition technology can also be provided for the terminal equipment, so that a user can control functions and settings by using voice instructions, and the consistency of control interfaces on the terminal equipment is maintained, so that the user can easily find and use similar control elements in different operation modes.
According to the technical scheme provided by the embodiment of the application, the user can conveniently control or adjust the sound field effect, and the user experience is improved.
Fig. 2 is a flowchart of another sound playing method according to an embodiment of the present application. As shown in fig. 2, the sound playing method includes the following steps:
s201, detecting that an interface of an external sound box is connected to an interface of a vehicle end in a wired mode, and performing power amplification digital mutual recognition with the vehicle end to obtain a power amplification digital mutual recognition result;
S202, when the digital mutual recognition result of the power amplifier is successful, the audio processing function of the power amplifier is closed, and the output power value of the external power amplifier efficiency and the audio to be played, which are sent by a vehicle end, are received;
s203, decoding the audio to be played, and playing the audio to be played according to the external power amplification efficiency output power value.
In some embodiments, a system in the external sound box detects that an interface of the external sound box is connected to an interface of the vehicle end in a wired mode, and after the connection is successful, the external sound box and the vehicle end perform power amplification digital mutual recognition so as to confirm the compatibility of digital interfaces between the external sound box and the vehicle, and obtain a power amplification digital mutual recognition result.
When the power amplification digital mutual recognition result is successful, the external sound box closes the audio processing function of the external sound box, so that the audio signal is ensured not to be interfered or modified, an external power amplification efficiency output power value and audio to be played, which are sent by a vehicle end, are received, and the external power amplification efficiency output power value is calculated by the vehicle according to the performance parameters of the external sound box and an audio system in the vehicle.
Decoding the audio to be played so as to ensure that the audio signal can be correctly played in the vehicle, and playing the audio to be played according to the external power amplifier efficiency output power value.
When the external sound box is connected to the vehicle end in a wired mode, the external sound box can be regarded as a part of the sound box at the vehicle end so as to provide a more stereoscopic sound field effect.
The external sound box is detected to be connected to the vehicle end in other modes, such as Bluetooth, wireless and the like, the audio to be played is received, the audio to be played is decoded, the decoded audio to be played is played according to the audio processing function of the external sound box, namely, when the external sound box is connected to the vehicle end in other modes different from a wired mode, the external sound box is used as the audio of the vehicle end to be played by an independent sound box, and a playing mode with higher volume and longer transmission can be provided when a user performs outdoor activities such as camping and picnic.
According to the technical scheme provided by the embodiment of the application, after the automobile end is successfully connected, the external sound box closes the audio processing function, so that the external sound box can be better adapted to the environment of the automobile, meanwhile, the audio signal can be ensured to be played in the automobile in an optimal mode, clear and three-dimensional hearing experience is provided for a user, the external sound box can better receive audio to be played and the output power value of the external power amplifier, which are sent by the automobile end, in a wired connection mode, the clamping feeling is greatly reduced when the audio to be played is played by the external sound box, and the user experience is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 3 is a schematic diagram of a sound playing device according to an embodiment of the present application. As shown in fig. 3, the sound playing device is applied to a vehicle end, and includes: a first processing module 301, a second processing module 302, a third processing module 303, and an output module 304. Wherein:
the first processing module 301 is configured to detect that an interface of a vehicle end is connected to an external sound box, and determine audio to be played of each external sound box;
the second processing module 302 is configured to obtain an interface attribute of each external sound box access, where the interface attribute includes an interface position;
the third processing module 303 is configured to determine a corresponding current power amplifier efficiency output power value in a preset power amplifier efficiency output power meter, where the power amplifier efficiency output power value includes a vehicle end power amplifier efficiency output power value corresponding to each vehicle end sound box respectively, and an external power amplifier efficiency output power value corresponding to each external sound box based on an interface position respectively;
The output module 304 is configured to output the output power value of the external power amplifier efficiency and the audio to be played to the corresponding external speaker, so that the external speaker plays the audio to be played at the output power value of the external power amplifier efficiency.
In some embodiments, the first processing module 301 is configured to detect that an interface of the vehicle end is connected to an external sound box, and after determining audio to be played of each external sound box, the first processing module is further configured to:
sending authentication information to each external sound box, and receiving feedback information of each external sound box based on the authentication information;
based on the feedback information, judging whether the external sound box of the access interface is a pre-authenticated external sound box or not;
when the external sound box is a pre-authenticated external sound box, the vehicle end power amplification unit at the vehicle end and the external power amplification unit of the external sound box are controlled to carry out power amplification digital mutual recognition, and a power amplification digital mutual recognition result is obtained;
and when the digital mutual recognition result of the power amplifier is successful, executing the step of acquiring the accessed interface attribute of each external sound box.
In some embodiments, the first processing module 301 is configured to detect that an interface of the vehicle end is connected to an external sound box, determine audio to be played of each external sound box, and determine that the audio to be played of each external sound box is used for:
determining the number of accessed external sound boxes, and acquiring performance parameters of the external sound boxes;
Determining each output channel type according to the access number and the performance parameters;
and carrying out audio track separation on the audio to be played at the vehicle end according to the type of each output sound channel to obtain the audio to be played of each external sound box.
In some embodiments, the third processing module 303 is configured to determine, in the preset power amplifier efficiency output power table, a corresponding current power amplifier efficiency output power value based on the interface position, for:
when all the interface positions are distributed in the same pre-divided space region of the vehicle end, determining the current power amplification efficiency output power value in a preset power amplification efficiency output power meter according to the pre-divided space region and the access number of all the accessed external sound boxes;
when the interface positions are distributed in different pre-divided space areas, the distribution proportion of each pre-divided space area is determined, and the current power amplifier efficiency output power value is determined in a preset power amplifier efficiency output power meter according to the distribution proportion and the corresponding access number of each pre-divided space area.
In some embodiments, the third processing module 303 is further configured to:
receiving a control instruction sent by terminal equipment;
updating playing parameters based on the control instruction, wherein the playing parameters comprise division, volume, sound effect and connection mode of the pre-divided space region;
And updating the current power amplifier efficiency output power value corresponding to each external sound box according to the playing parameters.
Fig. 4 is a schematic diagram of another sound playing device according to an embodiment of the present application. As shown in fig. 3, the sound playing device is applied to an external sound box, and includes: the device comprises a verification module 401, a receiving module 402 and a playing module 403. Wherein:
the verification module 401 is configured to detect that an interface of the external sound box is connected to an interface of the vehicle end in a wired mode, and perform power amplification digital mutual recognition with the vehicle end to obtain a power amplification digital mutual recognition result;
the receiving module 402 is configured to close the audio processing function of the receiving module when the digital mutual recognition result of the power amplifier is successful, and receive the output power value of the external power amplifier efficiency and the audio to be played, which are sent by the vehicle end;
the playing module 403 is configured to decode the audio to be played, and play the audio to be played according to the output power value of the external power amplification efficiency.
In some embodiments, the verification module 401 is further configured to:
detecting that the external sound box is connected to the vehicle end in other modes different from the wired mode, and receiving audio to be played;
decoding the audio to be played, and playing the decoded audio to be played according to the audio processing function.
Fig. 5 is a schematic diagram of an electronic device 5 provided in an embodiment of the present application. As shown in fig. 5, the electronic apparatus 5 of this embodiment includes: a processor 501, a memory 502 and a computer program 503 stored in the memory 502 and executable on the processor 501. The steps of the various method embodiments described above are implemented by processor 501 when executing computer program 503. Alternatively, the processor 501, when executing the computer program 503, performs the functions of the modules/units in the above-described apparatus embodiments.
The electronic device 5 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the electronic device 5 and is not limiting of the electronic device 5 and may include more or fewer components than shown, or different components.
The processor 501 may be a central processing unit (Central Processing Unit, CPU) or other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or a memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the electronic device 5. Memory 502 may also include both internal storage units and external storage devices of electronic device 5. The memory 502 is used to store computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium (e.g., a computer readable storage medium). Based on such understanding, the present application implements all or part of the flow in the methods of the above embodiments, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program may implement the steps of the respective method embodiments described above when executed by a processor. The computer program may comprise computer program code, which may be in source code form, object code form, executable file or in some intermediate form, etc. The computer readable storage medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The sound playing method is characterized by being applied to a vehicle end and comprising the following steps of:
detecting that an interface of the vehicle end is connected with an external sound box, and determining the audio to be played of each external sound box;
acquiring an interface attribute of each external sound box access, wherein the interface attribute comprises an interface position;
determining a corresponding current power amplification efficiency output power value in a preset power amplification efficiency output power meter, wherein the power amplification efficiency output power value comprises a vehicle end power amplification efficiency output power value respectively corresponding to each vehicle end sound box, and an external power amplification efficiency output power value respectively corresponding to each external sound box based on the interface position;
and outputting the output power value of the external power amplifier efficiency and the audio to be played to the corresponding external sound box, so that the external sound box plays the audio to be played at the output power value of the external power amplifier efficiency.
2. The method of claim 1, wherein after detecting that the interface of the vehicle end is connected to an external sound box, determining audio to be played of each external sound box further comprises:
sending authentication information to each external sound box, and receiving feedback information of each external sound box based on the authentication information;
Based on the feedback information, judging whether the external sound box connected to the interface is the external sound box with pre-authentication;
when the external sound box is the external sound box with the pre-authentication function, controlling a vehicle end power amplification unit at the vehicle end and the external power amplification unit of the external sound box to carry out power amplification digital mutual recognition so as to obtain a power amplification digital mutual recognition result;
and when the power amplifier digital mutual recognition result is successful, executing the step of acquiring the interface attribute of each external sound box.
3. The method of claim 1, wherein determining audio to be played for each external speaker detected that the vehicle-side interface is connected to the external speaker comprises:
determining the number of accessed external sound boxes, and acquiring performance parameters of the external sound boxes;
determining each output channel type according to the access number and the performance parameters;
and carrying out audio track separation on the audio to be played at the vehicle end according to each output channel type to obtain the audio to be played of each external sound box.
4. The method of claim 1, wherein determining the corresponding current power amplifier efficiency output power value based on the interface position in a preset power amplifier efficiency output power meter comprises:
When all the interface positions are distributed in the same pre-divided space region of the vehicle end, determining the current power amplification efficiency output power value in a preset power amplification efficiency output power meter according to the pre-divided space region and the accessed number of all the external sound boxes;
when the interface positions are distributed in different pre-divided space regions, determining the distribution proportion of each pre-divided space region, and determining the current power amplification efficiency output power value in a preset power amplification efficiency output power meter according to the distribution proportion and the access number corresponding to each pre-divided space region.
5. The method as recited in claim 4, further comprising:
receiving a control instruction sent by terminal equipment;
updating playing parameters based on the control instruction, wherein the playing parameters comprise division, volume, sound effect and connection mode of the pre-divided space region;
and updating the current power amplifier efficiency output power value corresponding to each external sound box according to the playing parameters.
6. The sound playing method is characterized by being applied to an external sound box and comprising the following steps of:
detecting that an interface of the external sound box is connected to an interface of a vehicle end in a wired mode, and performing power amplification digital mutual recognition with the vehicle end to obtain a power amplification digital mutual recognition result;
When the digital mutual recognition result of the power amplifier is successful, the self audio processing function is closed, and the external power amplifier efficiency output power value and the audio to be played sent by the vehicle end are received;
decoding the audio to be played, and playing the audio to be played according to the output power value of the external power amplifier efficiency.
7. The method as recited in claim 6, further comprising:
detecting that the external sound box is connected to a vehicle end in other modes different from the wired mode, and receiving the audio to be played;
decoding the audio to be played, and playing the decoded audio to be played according to the audio processing function.
8. A sound playing device, characterized by being applied to a vehicle end, comprising:
the first processing module is configured to detect that an interface of the vehicle end is connected with an external sound box, and determine audio to be played of each external sound box;
the second processing module is configured to acquire an interface attribute of each external sound box access, wherein the interface attribute comprises an interface position;
the third processing module is configured to determine a corresponding current power amplification efficiency output power value in a preset power amplification efficiency output power meter, wherein the power amplification efficiency output power value comprises a vehicle end power amplification efficiency output power value respectively corresponding to each vehicle end sound box, and an external power amplification efficiency output power value respectively corresponding to each external sound box based on the interface position;
The output module is configured to output the external power amplification efficiency output power value and the audio to be played to the corresponding external sound box, so that the external sound box plays the audio to be played at the external power amplification efficiency output power value.
9. The utility model provides a sound play device which characterized in that is applied to external audio amplifier, includes:
the verification module is configured to detect that the interface of the external sound box is connected to the interface of the vehicle end in a wired mode, and perform power amplification digital mutual recognition with the vehicle end to obtain a power amplification digital mutual recognition result;
the receiving module is configured to close the audio processing function of the receiving module when the digital mutual recognition result of the power amplifier is successful, and receive the output power value of the external power amplifier efficiency and the audio to be played, which are sent by the vehicle end;
and the playing module is configured to decode the audio to be played and play the audio to be played according to the external power amplification efficiency output power value.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
CN202311331938.7A 2023-10-13 2023-10-13 Sound playing method and device and computer readable storage medium Pending CN117395570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311331938.7A CN117395570A (en) 2023-10-13 2023-10-13 Sound playing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311331938.7A CN117395570A (en) 2023-10-13 2023-10-13 Sound playing method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117395570A true CN117395570A (en) 2024-01-12

Family

ID=89469507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311331938.7A Pending CN117395570A (en) 2023-10-13 2023-10-13 Sound playing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117395570A (en)

Similar Documents

Publication Publication Date Title
US9099967B2 (en) Increasing ground noise rejection in audio systems
US20070177741A1 (en) Batteryless noise canceling headphones, audio device and methods for use therewith
CN105323678B (en) Signal processing circuit
CN110049428B (en) Method, playing device and system for realizing multi-channel surround sound playing
EP3056020B1 (en) Headset with source detection and volume control
US11144277B2 (en) Electronic device for controlling volume level of audio signal on basis of states of multiple speakers
CN106792365B (en) Audio playing method and device
KR20150027699A (en) Method and apparatus for reducing crosstalk in an integrated headset
JP2016187141A (en) Information processing apparatus and information processing method of the same
US20190122687A1 (en) Method for processing audio signal and electronic device for supporting the same
CN103813228A (en) Earphones and activation method thereof
CN116074679B (en) Method, device, equipment and storage medium for determining left and right states of intelligent earphone
CN117395570A (en) Sound playing method and device and computer readable storage medium
US11654835B2 (en) Rear seat display device
CN213846995U (en) Microphone signal processing circuit and electronic device
JP2019186764A (en) Electric device and acoustic system
KR20200017702A (en) Electronic device and method for adjusting the output intensity of a speaker based on distance from an external electronic device
CN111510847B (en) Micro loudspeaker array, in-vehicle sound field control method and device and storage device
US11974087B2 (en) Headphone system
CN112752181A (en) Acoustic device
KR20220125026A (en) Audio processing method and electronic device including the same
CN113689890A (en) Method and device for converting multi-channel signal and storage medium
US11689853B2 (en) Vehicle and operation method thereof
CN112954548B (en) Method and device for combining sound collected by terminal microphone and headset
US20240132002A1 (en) Vehicle-mounted audio playing method and apparatus, multimedia host, and storage medium

Legal Events

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