CN117008867A - Vehicle audio playing method and device, electronic equipment and medium - Google Patents

Vehicle audio playing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN117008867A
CN117008867A CN202310972098.6A CN202310972098A CN117008867A CN 117008867 A CN117008867 A CN 117008867A CN 202310972098 A CN202310972098 A CN 202310972098A CN 117008867 A CN117008867 A CN 117008867A
Authority
CN
China
Prior art keywords
audio
sound
sound particle
vehicle
determining
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
CN202310972098.6A
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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech 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 Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202310972098.6A priority Critical patent/CN117008867A/en
Publication of CN117008867A publication Critical patent/CN117008867A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/008Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Acoustics & Sound (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The invention discloses a vehicle audio playing method, a device, electronic equipment and a medium. The method comprises the following steps: acquiring the number of the audio channels of the vehicle and the middle sound particle library determined in the sound particle pool; when the current state information of the vehicle meets the audio prompt condition, determining an audio stream to be played corresponding to each audio channel in the vehicle according to the current state information, each intermediate sound particle library and the number of the audio channels; the method comprises the steps of playing corresponding audio streams to be played through each audio channel, providing multiple choices for a user through the established sound particle pool by utilizing the method, splicing the selected intermediate sound particle pools according to requirements to obtain the audio streams to be played, and playing the audio streams to be played through different audio channels. The input and output of the multichannel audio are realized, the customized requirement of a user is met, and the diversity of audio playing is realized.

Description

Vehicle audio playing method and device, electronic equipment and medium
Technical Field
The present invention relates to the field of audio playback control technologies, and in particular, to a vehicle audio playback method, device, electronic apparatus, and medium.
Background
An acoustic vehicle alert system (Acoustic vehicle alarm system, AVAS) is designed to sound a vehicle alert and alert pedestrians to the presence of an electric vehicle. Including Hybrid-Electric Vehicle (HEV), plug-in Hybrid-in Hybrid Electric Vehicle (PHEV), and full-battery Electric vehicles (Battery Electric Vehicle, BEV), particularly in the lowest speed range beyond which noise generated by rolling tires is easily heard.
At present, in the low-speed alert sound technology of an automobile, mainly, a software program is run on an MCU microprocessor, a DSP and the like to generate an AVAS audio signal which changes along with the change of the state of the automobile through tracking the state of the automobile, and the AVAS audio signal is transmitted to a low-speed alert sound speaker positioned outside the automobile through a special audio channel of the low-speed alert sound.
The sound emitted by the technology is single, and the different requirements of users on the sound cannot be met.
Disclosure of Invention
The invention provides a vehicle audio playing method, a device, electronic equipment and a medium, which are used for realizing multi-channel audio playing.
According to a first aspect of the present invention, there is provided a vehicle audio playing method, comprising:
acquiring the number of the audio channels of the vehicle and the middle sound particle library determined in the sound particle pool;
when the current state information of the vehicle meets audio prompt conditions, determining audio streams to be played corresponding to all audio channels in the vehicle according to the current state information, all the intermediate sound particle libraries and the number of the audio channels;
and playing the corresponding audio stream to be played through each audio channel.
According to a second aspect of the present invention, there is provided a vehicle audio playback apparatus comprising:
the information acquisition module is used for acquiring the number of the middle sound particle library and the number of the audio channels of the vehicle, which are determined in the sound particle pool;
the audio stream determining module is used for determining audio streams to be played corresponding to all audio channels in the vehicle according to the current state information, the intermediate sound particle library and the number of the audio channels;
and the audio playing module is used for playing the corresponding audio stream to be played through each audio channel.
According to a third aspect of the present invention, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the audio playing method according to any one of the embodiments of the present invention.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the audio playing method according to any one of the embodiments of the present invention.
According to the technical scheme, the number of the middle sound particle library and the number of the audio channels of the vehicle are determined in the sound particle pool; when the current state information of the vehicle meets the audio prompt condition, determining an audio stream to be played corresponding to each audio channel in the vehicle according to the current state information, each intermediate sound particle library and the number of the audio channels; the method comprises the steps of playing corresponding audio streams to be played through each audio channel, providing multiple choices for a user through the established sound particle pool by utilizing the method, splicing the selected intermediate sound particle pools according to requirements to obtain the audio streams to be played, and playing the audio streams to be played through different audio channels. The input and output of the multichannel audio are realized, the customized requirement of a user is met, and the diversity of audio playing is realized.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a vehicle audio playing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a vehicle audio playing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a vehicle audio playing device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a vehicle audio playing method according to an embodiment of the present invention, where the method may be applied to a case of playing audio through multiple audio channels, and the method may be performed by an audio playing device, where the audio playing device may be implemented in a form of hardware and/or software, and the audio playing device may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, acquiring the number of the intermediate sound particle library and the audio channels of the vehicle, which are determined in the sound particle pool.
In this embodiment, the sound particle pool may be understood as comprising a plurality of sound particle libraries. The middle sound particle library can be understood as a sound particle library selected by a user, the sound particle library can comprise a plurality of sound particles, different sample sounds can be designed for different frequency ranges according to AVAS regulations, and different sample sounds can be designed on one frequency range section; each sample sound may be divided into sound fragments having a granularity of 20-100ms, each sound fragment having a granularity as a sound particle, and sound particle libraries comprising a combination of several (one or more) sound particles are created separately in the form of a linked list, for example by means of mapping each sound particle to each sound particle library.
A vehicle may be understood as a vehicle for which audio playback is to be performed. The number of audio channels may be understood as the number of audio channels configured in the vehicle.
It should be noted that, the relevant personnel can configure the sound particle pool in the vehicle in advance, display the sound particle pool in a form of central control of the vehicle, etc., the user or the research personnel of the vehicle can select any audio stream formed by the sound particle pool to play through the corresponding button, and select the sound particle pool of the heart instrument as the middle sound particle pool.
Specifically, the controller may acquire an intermediate sound particle library determined in the sound particle pool and transmitted by a bus or the like, and may acquire current vehicle state information transmitted in the vehicle, such as information of a vehicle speed, depths of a brake pedal and an accelerator pedal, a gear position where the vehicle is located, a vehicle engine type, and the like, by using the bus or the like. The controller can acquire the preset number of audio channels from the corresponding storage medium, and can also acquire the number through inquiry.
S120, when the current state information of the vehicle meets the audio prompt condition, determining audio streams to be played corresponding to all audio channels in the vehicle according to the current state information, all the intermediate sound particle libraries and the number of the audio channels.
In the present embodiment, the current state information may be understood as information for reflecting the current running state of the vehicle. The audio alert condition may be understood as a condition for judging whether the vehicle is currently required to alert nearby personnel and vehicles through audio, and the determination of the audio alert condition may be made through AVAS regulations. An audio channel may be understood as a channel for playing sound signals of different frequencies. An audio stream to be played may be understood as a played audio stream.
Specifically, the controller may compare the current vehicle state information with a corresponding item in the audio prompt condition, determine the frequency shift and the volume of each intermediate sound particle library according to the current vehicle state information, a preset audio comparison table and the audio requirement when the current vehicle state information meets the audio prompt condition, form a modified intermediate sound particle library, mix the modified intermediate sound particle library according to the number of audio channels, and determine the audio stream to be played corresponding to each audio channel in the vehicle.
The vehicle has 2 audio channels, and the user selects 4 intermediate sound particle libraries, and after correction, 4 corrected intermediate sound particle libraries, 1, 2, 3 and 4, respectively, can be formed, for example, by mixing 1 with 3 and 2 with 4 according to the needs or settings of the user, so as to form two audio streams to be played.
S130, playing the corresponding audio stream to be played through each audio channel.
Specifically, the controller may send the audio stream to be played to the corresponding audio channel, so as to play the corresponding audio stream to be played through each audio channel.
According to the technical scheme, the number of the middle sound particle library and the number of the audio channels of the vehicle are determined in the sound particle pool; when the current state information of the vehicle meets the audio prompt condition, determining an audio stream to be played corresponding to each audio channel in the vehicle according to the current state information, each intermediate sound particle library and the number of the audio channels; the method comprises the steps of playing corresponding audio streams to be played through each audio channel, providing multiple choices for a user through the established sound particle pool by utilizing the method, splicing the selected intermediate sound particle pools according to requirements to obtain the audio streams to be played, and playing the audio streams to be played through different audio channels. The input and output of the multichannel audio are realized, the customized requirement of a user is met, and the diversity of audio playing is realized.
As a first alternative embodiment of the first embodiment, the step of determining the sound particle pool may further include, on the basis of the above-described embodiment:
and determining the sound particle pool according to the collected sound of each sample by the sound design equipment.
In the present embodiment, the sound design apparatus may be understood as an apparatus for processing sound, such as a PC side or the like. The sample sound may be understood as a sound obtained by collection.
Further, the step of determining the sound particle pool from the collected respective sample sounds by the sound design apparatus may be optimized as: dividing each sample sound according to preset granularity to obtain sound particles with each granularity; forming a plurality of sound particle libraries according to the combination of the sound particles; and forming a sound particle pool based on each sound particle library.
Specifically, the sound design device may design different sample sounds for different frequency ranges according to AVAS regulations, or may design different sample sounds on one frequency range, such as different waves, different background sounds, and the like. And then dividing each sample sound into sound particles according to preset granularity, for example, sound particles with the granularity of 20-100ms, respectively creating corresponding sound particle libraries in a linked list mode, wherein all sound particles cut by each sample sound can be formed to form a plurality of sound particle libraries, and all sound particle libraries are used as sound particle pools.
According to the first optional embodiment of the first embodiment, the sound design device processes the sample sound to form the sound particle library, and the sound particle library is used for forming the sound particle pool, so that the sound particle pool is constructed, and support is provided for selection of subsequent users.
Example two
Fig. 2 is a flowchart of a vehicle audio playing method according to a second embodiment of the present invention, where the present embodiment is further refined based on the foregoing embodiment. As shown in fig. 2, the method includes:
s210, acquiring the number of the intermediate sound particle library and the audio channels of the vehicle, which are determined in the sound particle pool.
And S220, when the current state information of the vehicle meets the audio prompt condition, performing audio adjustment on the sound particles in the intermediate sound particle library according to the current state information to obtain a final sound particle library.
Specifically, when the current state information meets the audio prompt condition, the controller may obtain a preset audio comparison table stored in the corresponding audio comparison table in advance, determine adjusted audio and sound size information according to the preset audio comparison table and the current state information, and adjust sound particles in the intermediate sound particle library according to the audio and sound size information to obtain an adjusted final sound particle library.
And S230, carrying out weight adjustment on the final sound particle library according to the preset vehicle type information to obtain a weight audio stream.
In the present embodiment, the preset vehicle type information may be understood as model information of a vehicle predetermined by a user or a developer, for example, model information of each model of a car, an off-road vehicle, a van, or the like set by each of factories, or the like. Weighted audio streams may be understood as audio streams modified according to weights.
Specifically, the controller can adjust the weight of the audio stream under the corresponding frequency of each final sound particle library through preset vehicle type information to obtain a weighted audio stream.
Further, on the basis of the above embodiment, the step of performing audio adjustment on the sound particles in the intermediate sound particle library according to the current state information to obtain the final sound particle library may be optimized as follows:
a1, determining frequency adjustment information and volume adjustment information matched with the current state information from a preset audio comparison table.
In this embodiment, the preset audio look-up table may be understood as a frequency value and a sound volume value corresponding to different pre-established vehicle status information, for example, the vehicle speed is 0-20 km/h, the sound volume is a, the frequency is a, the vehicle speed is 21-30 km/h, the sound volume is B, the frequency is B, and so on. The frequency adjustment information may be understood as information for adjusting the frequency of the sound particles. The volume adjustment information may be understood as information for adjusting the volume of sound particles.
Specifically, the controller may compare the current vehicle state information with a preset audio comparison table, determine a frequency shift amount and a volume corresponding to the current vehicle state information, and use the frequency shift amount and the volume as frequency adjustment information and volume adjustment information, respectively.
b1, aiming at the intermediate sound particle library, carrying out audio adjustment on each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information, and determining a final sound particle library.
Specifically, for the intermediate sound particle library, the controller may perform frequency and volume processing on each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information, and determine a final sound particle library.
On the basis of the above embodiment, the step of determining the final sound particle library may be optimized by performing audio adjustment on each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information with respect to the intermediate sound particle library:
b11, adjusting the volume of each intermediate sound particle included in the intermediate sound particle library according to the volume adjustment information to obtain a first sound particle.
In this embodiment, the first sound particles may be understood as sound particles after volume adjustment.
Specifically, the controller may perform gain/suppression of the volume of each intermediate sound particle included in the intermediate sound particle library according to the corresponding volume value or the like in the volume adjustment information, to obtain the first sound particle.
b12, determining the sound particles to be frequency modulated and other sound particles from the first sound particles according to the frequency adjustment information.
In this embodiment, the sound particles to be tuned can be understood as sound particles requiring frequency adjustment. Other sound particles may be understood as sound particles of all first sound particles except the sound particles to be tuned.
Specifically, the controller may determine, from the first sound particles, sound particles to be frequency-modulated and other sound particles not requiring frequency adjustment, where frequency adjustment is required, according to the frequency adjustment information.
And b13, processing each sound particle to be modulated based on the frequency adjustment information to obtain second sound particles.
In the present embodiment, the second sound particles may be understood as sound particles after adjusting the frequency.
Specifically, the controller may shift the frequency of each sound particle to be tuned based on the frequency adjustment information, to obtain a second sound particle.
b14, determining a final sound particle library according to each second sound particle and each other sound particle.
Specifically, the controller may sort the second sound particles and the other sound particles according to the original order, to obtain a final sound particle library.
On the basis of the foregoing embodiment, the step of obtaining a weighted audio stream may further include:
a2, determining the corresponding audio streams of each final sound particle library.
In this embodiment, the audio stream may be understood as an audio stream formed by the final sound particle library.
Specifically, the controller may determine the audio stream corresponding to each final sound particle library.
b2, determining a mixing weight value corresponding to each audio stream according to the preset vehicle type information.
In the present embodiment, the mixing weight value may be understood as a value for determining the weight of each audio stream.
Specifically, the controller may extract a weight value corresponding to each frequency in the audio demand information, for example, the weight corresponding to the audio demand information may be 50 at A1Hz-A4Hz, the weight corresponding to the audio demand information may be 20 at A5Hz-A8Hz, and the like, and by determining the frequency corresponding to each audio stream, the mixing weight value corresponding to the audio stream frequency may be found in the preset vehicle type information.
And c2, carrying out weight adjustment on the corresponding audio stream according to each mixing weight value to obtain a weighted audio stream.
Specifically, the controller may perform weight adjustment according to the mixing weight value corresponding to each audio stream, and the audio stream is weighted.
S240, mixing the weighted audio streams according to the number of the audio channels, and determining the audio streams to be played corresponding to the audio channels.
Specifically, the controller can determine the number of audio streams to be played, which are formed after mixing, according to the number of audio channels, can determine which weighted audio streams are mixed according to the requirements of a user, and mix the weighted audio streams in a preset audio algorithm to determine the audio streams to be played corresponding to the audio channels in the vehicle.
S250, playing the corresponding audio stream to be played through each audio channel.
According to the technical scheme, frequency adjustment information and volume adjustment information matched with current state information are determined through a preset audio comparison table, the intermediate sound particle library is adjusted through the frequency adjustment information and the volume adjustment information to obtain a final sound particle library, finally, audio streams formed by the final sound particle library are determined and mixed according to the number of audio channels and preset vehicle type information, audio streams to be played corresponding to all the audio channels are obtained, and the audio streams to be played are played through different audio channels. The input and output of the multichannel audio are realized, the customized requirement of a user is met, and the diversity of audio playing is realized.
Example III
Fig. 3 is a schematic structural diagram of a vehicle audio playing device according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: an information acquisition module 31, an audio stream determination module 32, and an audio playback module 33. Wherein,
an information acquisition module 31 for acquiring the number of audio channels of the vehicle and the intermediate sound particle library determined in the sound particle pool;
the audio stream determining module 32 is configured to determine, when the current state information of the vehicle meets an audio prompt condition, an audio stream to be played corresponding to each audio channel in the vehicle according to the current state information, each intermediate sound particle library, and the number of audio channels;
and the audio playing module 33 is configured to play the corresponding audio stream to be played through each audio channel.
According to the technical scheme, the number of the middle sound particle library and the number of the audio channels of the vehicle are determined in the sound particle pool; when the current state information of the vehicle meets the audio prompt condition, determining an audio stream to be played corresponding to each audio channel in the vehicle according to the current state information, each intermediate sound particle library and the number of the audio channels; the method comprises the steps of playing corresponding audio streams to be played through each audio channel, providing multiple choices for a user through the established sound particle pool by utilizing the method, splicing the selected intermediate sound particle pools according to requirements to obtain the audio streams to be played, and playing the audio streams to be played through different audio channels. The input and output of the multichannel audio are realized, the customized requirement of a user is met, and the diversity of audio playing is realized.
Further, the audio stream determining module 32 includes:
the particle library determining unit is used for carrying out audio adjustment on sound particles in the intermediate sound particle library according to the current state information to obtain a final sound particle library;
the first determining unit is used for carrying out weight adjustment on the final sound particle library according to preset vehicle type information to obtain a weight audio stream;
and the second determining unit is used for carrying out audio mixing processing on the weighted audio streams according to the number of the audio channels and determining the audio streams to be played corresponding to the audio channels.
Wherein the particle library determination unit includes:
the information determining subunit is used for determining frequency adjustment information and volume adjustment information matched with the current state information from a preset audio comparison table;
and the particle library determining subunit is used for aiming at the intermediate sound particle library, carrying out audio adjustment on each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information, and determining a final sound particle library.
The first determining subunit is specifically configured to:
according to the volume adjustment information, adjusting the volume of each intermediate sound particle included in the intermediate sound particle library to obtain a first sound particle;
determining sound particles to be frequency modulated and other sound particles from the first sound particles according to the frequency adjustment information;
processing each sound particle to be modulated based on the frequency adjustment information to obtain a second sound particle;
and determining a final sound particle library according to each second sound particle and each other sound particle.
Further, the audio stream determining unit is specifically configured to:
determining the corresponding audio streams of the final sound particle libraries;
determining a mixing weight value corresponding to each audio stream according to preset vehicle type information;
and carrying out weight adjustment on the corresponding audio streams according to the mixing weight values to obtain weighted audio streams.
Optionally, the apparatus further comprises: and a particle pool determination module.
The particle pool determining module is used for determining the sound particle pool according to the collected sample sounds through the sound design equipment.
Further, the particle pool determining module is specifically configured to:
dividing each sample sound according to preset granularity to obtain sound particles with each granularity;
forming a plurality of sound particle libraries according to the combination of the sound particles;
and forming the sound particle pool based on each sound particle library.
The audio playing device provided by the embodiment of the invention can execute the audio playing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 4 is an electronic device provided in an embodiment of the present invention, as shown in fig. 4, where the electronic device is configured to implement operations corresponding to the electronic device in any of the above method embodiments, and the electronic device 20 includes: at least one processor 22, and a memory 21 communicatively coupled to the processor 22;
the memory 21 stores a computer program executable by the at least one processor 22, the computer program being executable by the at least one processor 22 to enable the at least one processor 22 to perform the vehicle audio playback method of any one of the embodiments described above.
A memory 21 for storing computer instructions. The Memory 21 may include a high-speed random access Memory (Random Access Memory, RAM), and may further include a Non-Volatile Memory (NVM), such as at least one magnetic disk Memory, and may also be a U-disk, a removable hard disk, a read-only Memory, a magnetic disk, or an optical disk.
The processor 22 is configured to execute a computer program stored in the memory to implement the vehicle audio playing method in the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above. The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
In the alternative, the memory may be separate or integrated with the processor.
The communication interface 23 may be connected to the processor 22. The processor 22 may control the communication interface 23 to perform the functions of receiving and transmitting information.
The electronic device provided in this embodiment may be used to execute the above-mentioned vehicle audio playing method, and its implementation manner and technical effects are similar, and this embodiment will not be repeated here.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a vehicle audio playback method, the method comprising:
acquiring the number of the audio channels of the vehicle and the middle sound particle library determined in the sound particle pool;
when the current state information of the vehicle meets audio prompt conditions, determining audio streams to be played corresponding to all audio channels in the vehicle according to the current state information, all the intermediate sound particle libraries and the number of the audio channels;
and playing the corresponding audio stream to be played through each audio channel.
According to the current state information, each intermediate sound particle library and the number of the audio channels, determining an audio stream to be played corresponding to each audio channel in the vehicle comprises the following steps: performing audio adjustment on sound particles in the intermediate sound particle library according to the current state information to obtain a final sound particle library; performing weight adjustment on the final sound particle library according to preset vehicle type information to obtain a weight audio stream; and carrying out audio mixing processing on each weighted audio stream according to the number of the audio channels, and determining the audio stream to be played corresponding to each audio channel.
The audio adjustment is performed on the sound particles in the intermediate sound particle library according to the current state information to obtain a final sound particle library, which comprises the following steps: determining frequency adjustment information and volume adjustment information matched with the current state information from a preset audio comparison table; and aiming at the intermediate sound particle library, carrying out audio adjustment on each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information, and determining a final sound particle library.
The step of performing audio adjustment on each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information to determine a final sound particle library includes: according to the volume adjustment information, adjusting the volume of each intermediate sound particle included in the intermediate sound particle library to obtain a first sound particle; determining sound particles to be frequency modulated and other sound particles from the first sound particles according to the frequency adjustment information; processing each sound particle to be modulated based on the frequency adjustment information to obtain a second sound particle; and determining a final sound particle library according to each second sound particle and each other sound particle.
The method for adjusting the weight of the final sound particle library according to the preset vehicle type information to obtain a weighted audio stream comprises the following steps: determining the corresponding audio streams of the final sound particle libraries; determining a mixing weight value corresponding to each audio stream according to preset vehicle type information; and carrying out weight adjustment on the corresponding audio streams according to the mixing weight values to obtain weighted audio streams.
Wherein, the step of determining the sound particle pool comprises the following steps: and determining the sound particle pool according to the collected sound of each sample by the sound design equipment.
Wherein, according to each sample sound of gathering, confirm the sound particle pool, include: dividing each sample sound according to preset granularity to obtain sound particles with each granularity; forming a plurality of sound particle libraries according to the combination of the sound particles; and forming the sound particle pool based on each sound particle library. Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the audio playing method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the audio playing device, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A vehicle audio playback method, characterized by comprising:
acquiring the number of the audio channels of the vehicle and the middle sound particle library determined in the sound particle pool;
when the current state information of the vehicle meets audio prompt conditions, determining audio streams to be played corresponding to all audio channels in the vehicle according to the current state information, all the intermediate sound particle libraries and the number of the audio channels;
and playing the corresponding audio stream to be played through each audio channel.
2. The method of claim 1, wherein determining the audio stream to be played corresponding to each audio channel in the vehicle according to the current state information, each intermediate sound particle library, and the number of audio channels comprises:
performing audio adjustment on sound particles in the intermediate sound particle library according to the current state information to obtain a final sound particle library;
performing weight adjustment on the final sound particle library according to preset vehicle type information to obtain a weight audio stream;
and carrying out audio mixing processing on each weighted audio stream according to the number of the audio channels, and determining the audio stream to be played corresponding to each audio channel.
3. The method according to claim 2, wherein the performing audio adjustment on the sound particles in the intermediate sound particle library according to the current state information to obtain a final sound particle library includes:
determining frequency adjustment information and volume adjustment information matched with the current state information from a preset audio comparison table;
and aiming at the intermediate sound particle library, carrying out audio adjustment on each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information, and determining a final sound particle library.
4. A method according to claim 3, wherein said audio adjusting each intermediate sound particle included in the intermediate sound particle library according to the frequency adjustment information and the volume adjustment information, determining a final sound particle library, comprises:
according to the volume adjustment information, adjusting the volume of each intermediate sound particle included in the intermediate sound particle library to obtain a first sound particle;
determining sound particles to be frequency modulated and other sound particles from the first sound particles according to the frequency adjustment information;
processing each sound particle to be modulated based on the frequency adjustment information to obtain a second sound particle;
and determining a final sound particle library according to each second sound particle and each other sound particle.
5. The method of claim 2, wherein the weighting adjustment is performed on the final sound particle library according to preset vehicle type information to obtain a weighted audio stream, and the method comprises:
determining the corresponding audio streams of the final sound particle libraries;
determining a mixing weight value corresponding to each audio stream according to preset vehicle type information;
and carrying out weight adjustment on the corresponding audio streams according to the mixing weight values to obtain weighted audio streams.
6. The method of claim 1, wherein the step of determining the pool of sound particles comprises:
and determining the sound particle pool according to the collected sound of each sample by the sound design equipment.
7. The method of claim 6, wherein said determining the pool of sound particles from each sample sound collected comprises:
dividing each sample sound according to preset granularity to obtain sound particles with each granularity;
forming a plurality of sound particle libraries according to the combination of the sound particles;
and forming the sound particle pool based on each sound particle library.
8. A vehicle audio playback apparatus, characterized by comprising:
the information acquisition module is used for acquiring the number of the middle sound particle library and the number of the audio channels of the vehicle, which are determined in the sound particle pool;
the audio stream determining module is used for determining audio streams to be played corresponding to all audio channels in the vehicle according to the current state information, the intermediate sound particle library and the number of the audio channels;
and the audio playing module is used for playing the corresponding audio stream to be played through each audio channel.
9. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the processor;
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the vehicle audio playback method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a controller to implement the vehicle audio playback method of any one of claims 1-7 when executed.
CN202310972098.6A 2023-08-03 2023-08-03 Vehicle audio playing method and device, electronic equipment and medium Pending CN117008867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310972098.6A CN117008867A (en) 2023-08-03 2023-08-03 Vehicle audio playing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310972098.6A CN117008867A (en) 2023-08-03 2023-08-03 Vehicle audio playing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN117008867A true CN117008867A (en) 2023-11-07

Family

ID=88570570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310972098.6A Pending CN117008867A (en) 2023-08-03 2023-08-03 Vehicle audio playing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN117008867A (en)

Similar Documents

Publication Publication Date Title
CN109192203B (en) Multi-sound-zone voice recognition method, device and storage medium
CN106910510A (en) Vehicle-mounted power amplifying device, vehicle and its audio play handling method
CN103188587B (en) Sound system with independent broadcast area
EP2715935B1 (en) Vehicular audio system
CN110610723B (en) Method, device, equipment and storage medium for evaluating sound quality in vehicle
CN112435682B (en) Vehicle noise reduction system, method and device, vehicle and storage medium
CN114312558B (en) System for realizing low-speed prompt tone AVAS and active sound enhanced ASE on automobile
US7460919B2 (en) Music contents reproducing apparatus
CN114148254B (en) Automobile low-speed prompt tone realization system
CN113055783A (en) Vehicle audio output method and device, electronic equipment and storage medium
CN109849786A (en) Method, system, device and the readable storage medium storing program for executing of music are played based on speed
CN114103850B (en) System for realizing active sound enhancement of automobile
CN108694935B (en) New energy vehicle and active noise reduction method and system thereof
CN110539693A (en) Warning sounding method and device for electric automobile
CN117008867A (en) Vehicle audio playing method and device, electronic equipment and medium
CN107889026A (en) Vehicle sounds system and the vehicles
CN114422913A (en) Volume adjusting method and device, central control equipment, vehicle and storage medium
US10552117B1 (en) Vehicle audio settings management
CN115878070B (en) Vehicle-mounted audio playing method, device, equipment and storage medium
WO2019176356A1 (en) Onboard device, traveling state estimation method, server device, information processing method, and traveling state estimation system
CN111833889A (en) Multi-rail sound mixing method for pedestrian warning sound of electric vehicle
JP5267970B2 (en) Sound field control device
CN114932857B (en) Engine audio adjusting method, system and device
CN117041858B (en) Space audio playing optimization method and device
CN114584911B (en) Power amplifier debugging method, sound generation method, device, equipment and 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