CN111787462A - Audio stream processing method, system, device, and medium - Google Patents

Audio stream processing method, system, device, and medium Download PDF

Info

Publication number
CN111787462A
CN111787462A CN202010919240.7A CN202010919240A CN111787462A CN 111787462 A CN111787462 A CN 111787462A CN 202010919240 A CN202010919240 A CN 202010919240A CN 111787462 A CN111787462 A CN 111787462A
Authority
CN
China
Prior art keywords
volume parameter
audio stream
real
parameter value
audio streams
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.)
Granted
Application number
CN202010919240.7A
Other languages
Chinese (zh)
Other versions
CN111787462B (en
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.)
Mushroom Car Union Information Technology Co Ltd
Original Assignee
Mushroom Car Union Information Technology 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 Mushroom Car Union Information Technology Co Ltd filed Critical Mushroom Car Union Information Technology Co Ltd
Priority to CN202010919240.7A priority Critical patent/CN111787462B/en
Publication of CN111787462A publication Critical patent/CN111787462A/en
Application granted granted Critical
Publication of CN111787462B publication Critical patent/CN111787462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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

Abstract

The embodiment of the invention provides an audio stream processing method, a system, equipment and a medium, which are used for acquiring N real-time audio streams; searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship; the N real-time audio streams are subjected to sound mixing processing according to the corresponding volume parameter values to obtain the synthesized audio streams, compared with the situation that the same volume parameter value is intelligently used by each audio stream in the prior art, the volume parameter value of each audio stream can be specifically set, so that a user can set the volume parameter value of the sound which needs to be noticed particularly greatly, the defect that the sound is covered mutually in the prior art is overcome, and the sound which needs to be noticed particularly by the user can be clearly heard.

Description

Audio stream processing method, system, device, and medium
Technical Field
The present invention relates to the field of vehicle-mounted device technologies, and in particular, to a method, a system, a device, and a medium for processing an audio stream.
Background
At present, on the android system and the iOS system, the volume is classified and controlled according to the type of audio stream, including media volume, alarm volume, ring volume, etc., however, once the media volume is increased, the volume of all media applications is increased accordingly. For example, on an intelligent vehicle-mounted terminal, a user may install an audio-video application and a navigation application, a scene that navigation voice broadcasting is started while listening to music may occur, and at this time, the navigation voice broadcasting sound is hidden by the sound of the music, so that the navigation voice cannot be clearly heard.
Therefore, how to provide a sound control scheme to enable a sound that a user needs to pay special attention to be clearly heard is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
Embodiments of the present invention provide an audio stream processing method, system, device, and medium, so as to solve the defect of mutual masking of sounds in the prior art, and enable a sound that a user needs to pay special attention to be clearly heard.
In a first aspect, an embodiment of the present invention provides an audio stream processing method, including:
acquiring N real-time audio streams, wherein N is a positive integer;
searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship;
carrying out sound mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream;
the searching for the corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams includes:
analyzing the N real-time audio streams to obtain corresponding port identity information;
searching an application program package name corresponding to the port identity information in a volume parameter package;
if the corresponding application program package name is found, the volume parameter value corresponding to the application program package name is found in the volume parameter package, and the volume parameter values corresponding to the N real-time audio streams are obtained; if the corresponding application package name is not found, the default volume parameter value is used.
Preferably, the correspondence between the application package name and the port identity information is a first correspondence; the corresponding relation between the volume parameter value and the application program package name is a second corresponding relation;
the first corresponding relation is obtained as follows: when an application program system acquires an audio focus, storing a first corresponding relation between an application program package name corresponding to the application program system and port identity information into the volume parameter package;
the second corresponding relation is obtained as follows: receiving a second corresponding relation between the volume parameter value set by the user and the name of the application program package; and storing the second correspondence to the volume parameter packet.
Preferably, the mixing the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream includes:
multiplying the N real-time audio streams by corresponding volume parameter values respectively to obtain N weighted audio streams;
the N weighted audio streams are summed to obtain a composite audio stream.
Preferably, the method further comprises the following steps:
and receiving one or more of an adding request, an updating request, a removing request and a querying request of the volume parameter packet to execute corresponding operations.
Preferably, the method further comprises the following steps:
saving the volume parameter packet to a setting storage area;
and when the computer is started, calling the volume parameter packet from the setting storage area to a preset storage position so as to mix sound.
Preferably, the method is applied to the intelligent vehicle-mounted terminal, and N is 2;
the 2 real-time audio streams are navigation broadcast audio streams and music broadcast audio streams;
and the volume parameter value of the navigation broadcasting audio stream is greater than that of the music playing audio stream.
In a second aspect, an embodiment of the present invention further provides an audio stream processing system, including:
the real-time audio stream acquisition module is used for acquiring N real-time audio streams, wherein N is a positive integer;
the volume parameter searching module is used for searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship;
and the sound mixing processing module is used for carrying out sound mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the audio stream processing methods when executing the program.
In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the audio stream processing methods described above.
According to the audio stream processing method, the system, the device and the medium provided by the embodiment of the invention, the corresponding volume parameter values are respectively set for the real-time audio streams; the volume setting that makes things convenient for the user to specialize is compared with the volume parameter value that each audio stream intelligence used the same among the prior art, and the user can oneself the volume parameter value setting of the sound that needs special attention great to solve the defect that the sound covers each other among the prior art, can make the sound that the user needs special attention can clearly be heard.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an audio stream processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a flow of querying a volume parameter value of an audio stream processing method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a power-on setting of a volume parameter packet in an audio stream processing method according to an embodiment of the present invention;
fig. 4 is a flowchart of an intelligent vehicle terminal of an audio stream processing method according to an embodiment of the present invention;
FIG. 5 is a block diagram of an audio stream processing system according to an embodiment of the present invention;
fig. 6 is a schematic composition diagram of an intelligent vehicle-mounted terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart illustrating an audio stream processing method according to an embodiment of the present invention; fig. 2 is a schematic diagram of a flow of querying a volume parameter value of an audio stream processing method according to an embodiment of the present invention.
In a specific implementation manner of the present invention, an embodiment of the present invention provides an audio stream processing method, including:
step S11: acquiring N real-time audio streams, wherein N is a positive integer;
in this embodiment, first, a currently active real-time audio stream needs to be acquired, for example, for a mobile phone, a plurality of applications (for example, map navigation voice prompt, music playing of music software, prompt tone of communication software such as WeChat, and the like) may be in an active state at the same time, and may drive a speaker to make a sound, and at this time, all active audio streams (track audio tracks) in a mobile phone system may be found out in a traversal manner.
Step S12: searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship;
after the current N real-time audio streams are found, these audio streams need to be sounded by the same speaker, and thus, these audio streams need to be mixed to be able to drive the speaker. In the prior art, a uniform sound parameter is used to mix audio streams, but in the present application, there is a volume parameter packet in which volume parameter values corresponding to respective audio streams are stored, for example, if there are two tracks: the method comprises the steps of receiving a music audio stream and a navigation audio stream, wherein the music audio stream and the navigation audio stream are received by a user, and the navigation audio stream is received by the user. At this time, the volume parameter value corresponding to the music audio stream can be set to 60%, and the volume parameter value corresponding to the navigation audio stream can be set to 80%, so that when a user drives, the user can listen to music without obstructing clear listening to the navigation broadcast sound.
For the audio stream, the port identity information (PID, port ID) input by the audio stream can be determined, so that the corresponding volume parameter value can be found when the volume parameter value is needed, as long as the corresponding relationship between the port identity information and the volume parameter value is determined in the volume parameter packet.
Of course, the volume parameter value herein does not only refer to the volume, but also refers to the playing mode of the sound, for example, for the sound of the navigation broadcast, the parameter may be set as the parameter of the human voice mode, so that the signal of the human voice frequency band of the navigation broadcast may be enhanced.
It should be noted that, for the setting of the volume parameter packet, in a specific practice, the setting may be a data packet, which includes a group of port identity information and volume parameter values with a corresponding relationship; for example, for APP1, there is first port identity information and a first volume parameter value in the volume parameter packet, for APP2, there is second port identity information and a second volume parameter value in the volume parameter packet, and for APPn, there is nth port identity information and nth volume parameter value in the volume parameter packet. In practice, of course, a separate volume parameter packet may be set for each APP, for example, a first volume parameter packet is set for APP1, a second volume parameter packet is set for APP2, and an nth volume parameter packet is set for APPn.
That is to say, the volume parameter of each APP can be placed in a data packet, and can also be stored in a packet manner, accordingly, when searching, if the volume parameter packet is one, the volume parameters of all APPs are stored in the data packet, then the search can be directly performed in the volume parameter packet, if each APP has a corresponding volume parameter packet, then the corresponding volume parameter packet can be searched according to the corresponding name of the volume parameter packet, and the data in the volume parameter packet is read to perform subsequent mixing processing.
Step S13: and carrying out sound mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream.
After the volume parameter values corresponding to the real-time audio streams are found, the audio streams can be mixed, so that a synthesized audio stream is obtained. Specifically, if the volume parameter value refers to a volume value, N real-time audio streams may be multiplied by the corresponding volume parameter value, respectively, to obtain N weighted audio streams; the N weighted audio streams are summed to obtain a composite audio stream.
That is, the volume parameter values corresponding to the N real-time audio streams may be weighted and summed, and the obtained result is the synthesized audio stream. Outputting the synthesized audio stream to a hardware interface to drive an audio hardware utterance.
After the synthesized audio stream is obtained, the synthesized audio stream can be output to a hardware interface, so that the magnitude of the current flowing through the loudspeaker can be driven to change, and the loudspeaker can generate sound. When the method is applied to electronic equipment of an android system, the audio track data of the synthetic audio stream can be output to a hardware interface of an audio HAL layer to drive hardware to sound.
Further, in order to search for a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams, the following steps may be specifically performed:
step S21: analyzing the N real-time audio streams to obtain corresponding port identity information;
in practice, when an application program requests an audio focus, the corresponding relationship between the packet name of the application program, that is, the packet name of the application program and port identity information PID is written into a Native layer core system service audiomaker (abbreviated as AF) for managing an audio module in an android system, and when a PID member variable is added to an audio stream object Track in the AF, and the AF creates the audio stream object Track each time, the PID transmitted by the application program is stored in the member variable PID of the Track. So that corresponding port identity information is present in the real-time audio stream.
Step S22: and searching an application program package name corresponding to the port identity information in a volume parameter package according to the first corresponding relation.
Since the port identity information and the application package name have the first corresponding relationship, the corresponding application package name can be found in the AF. The application program package name corresponds to the corresponding application program, and the user realizes that the volume parameter value is already set in the application program, so that the application program package name corresponds to the volume parameter value.
Step S23: if the corresponding application program package name is found, searching a volume parameter value corresponding to the application program package name in a volume parameter package according to a second corresponding relation to obtain volume parameter values corresponding to the N real-time audio streams; if the corresponding application program package name cannot be found, using a default volume parameter value; the volume parameter packet comprises a first corresponding relation between the application program packet name and the port identity information and a second corresponding relation between the volume parameter value and the application program packet name.
Of course, in practice, not every application user has set a corresponding volume parameter value, and if no corresponding British two parameter value is found, a default volume parameter value may be used.
Specifically, the corresponding relationship between the application package name and the port identity information is a first corresponding relationship; the corresponding relation between the volume parameter value and the application program package name is a second corresponding relation; when storing the first corresponding relationship and the second corresponding relationship, the process of acquiring the first corresponding relationship may be as follows: when an application program system acquires an audio focus, storing a first corresponding relation between an application program package name corresponding to the application program system and port identity information into the volume parameter package; the second corresponding relation is obtained as follows: receiving a second corresponding relation between the volume parameter value set by the user and the name of the application program package; and storing the second correspondence to the volume parameter packet. Therefore, the first corresponding relation and the second corresponding relation in the volume parameter packet are obtained.
Of course, in order to implement the operation on the volume parameter packet, an adding, updating, moving, and querying port may be further provided, so that when one or more of an adding request, an updating request, a removing request, and a querying request for the volume parameter packet is received, a corresponding action may be performed to add, update, remove, and query a new volume parameter value corresponding relationship.
Referring to fig. 3, fig. 3 is a flow chart illustrating a power-on setting of a volume parameter packet of an audio stream processing method according to an embodiment of the present invention.
On the basis of the foregoing embodiment, in this embodiment, taking the android system as an example, since the volume set for the application program is written by a code during running, the volume set is only valid during running of the android device this time, in order to achieve the purpose of persistence, after the volume is set for the application, the package name/volume information is stored in a settingspovider (setting storage area) database, and after the android device is started up again, the volume of each application is read from the settingspovider database and written into AF.
Of course, in addition to the android system, the following steps may be performed in other operating systems, such as the iOS system:
step S31: saving the volume parameter packet to a setting storage area;
step S32: and when the computer is started, calling the volume parameter packet from the setting storage area to a preset storage position so as to mix sound.
That is to say, in the embodiment of the present application, when the device is powered off, the volume parameter packet is stored in the setting storage area, so that when the device is powered on, data is directly read from the setting storage area and the volume parameter packet is rewritten in the AF, thereby facilitating subsequent call of the volume parameter packet for audio mixing processing.
Referring to fig. 4, fig. 4 is a flowchart of an intelligent vehicle-mounted terminal of an audio stream processing method according to an embodiment of the present invention.
In practice, it is often the case that a user listens to music and listens to a navigation broadcast while driving. Therefore to this condition, can be specifically for navigation broadcast audio stream, music broadcast audio stream with N real-time audio stream, be applicable to the driving in-process, specific audio stream processing step is as follows:
step S41: acquiring currently active navigation broadcast audio streams and music play audio streams;
step S42: searching a corresponding volume parameter value in a volume parameter packet according to the port identity information of the navigation broadcast audio stream and the music play audio stream; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship, and the volume parameter value of the navigation broadcast audio stream is greater than the volume parameter value of the music play audio stream;
step S43: and carrying out sound mixing processing on the navigation broadcast audio stream and the music play audio stream according to the corresponding volume parameter values to obtain a synthesized audio stream.
For specific details, reference may be made to the foregoing embodiment, and in this embodiment, the data processing is performed on the real-time audio stream, specifically, the navigation broadcast audio stream and the music broadcast audio stream.
Compared with the method for processing the audio stream, which uses the same volume parameter value intelligently for each audio stream in the prior art, the method for processing the audio stream provided by the embodiment of the invention has the advantages that the volume parameter value of each audio stream can be specifically set, so that a user can set a larger volume parameter value of a sound which needs to be paid special attention by himself, the defect that the sounds in the prior art are mutually covered is overcome, and the sounds which need to be paid special attention by the user can be clearly heard.
The following describes an audio stream processing system provided by an embodiment of the present invention, and the audio stream processing system described below and the audio stream processing method described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an audio stream processing system according to an embodiment of the present invention.
An embodiment of the present invention further provides an audio stream processing system 500, including:
a real-time audio stream obtaining module 510, configured to obtain N real-time audio streams, where N is a positive integer;
a volume parameter searching module 520, configured to search, according to the port identity information of the N real-time audio streams, a corresponding volume parameter value in the volume parameter packet; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship;
and the audio mixing processing module 530 is configured to perform audio mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream.
Referring to fig. 6, fig. 6 is a schematic composition diagram of an intelligent vehicle-mounted terminal according to an embodiment of the present invention.
In an embodiment of the present invention, for the foregoing intelligent vehicle-mounted terminal, a description is given here, and an embodiment of the present invention further provides an intelligent vehicle-mounted terminal 600, including:
the dual audio acquisition module 610 is configured to acquire a currently active navigation broadcast audio stream and a music broadcast audio stream;
a dual volume parameter searching module 620, configured to search a corresponding volume parameter value in a volume parameter packet according to the port identity information of the navigation broadcast audio stream and the music broadcast audio stream; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship, and the volume parameter value of the navigation broadcast audio stream is greater than the volume parameter value of the music play audio stream;
a dual audio mixing processing module 630, configured to perform audio mixing processing on the navigation broadcast audio stream and the music play audio stream according to corresponding volume parameter values to obtain a synthesized audio stream
The intelligent vehicle-mounted terminal can be a vehicle-mounted navigation terminal, and certainly, the vehicle-mounted current terminal can be provided with navigation software and other software which needs to sound, such as music playing software and the like, so that the condition that the music and the navigation broadcast sound at the same time is frequently generated when a driver drives the vehicle. The user starts the navigation voice broadcast while listening to music, but wants the authority of the navigation application to be higher than that of the audio-video application (after all, it is too bad to miss the voice navigation when driving a car | let you go to a place where you do not want to go |), then the volume of the navigation voice broadcast needs to be set to be larger than that of the multimedia.
According to the embodiment of the invention, before the audio mixer mixes the audio stream Track, the volume parameter value of the audio stream Track to which the application program belongs is set, so that the purpose that the volumes of the application programs are mutually independent is achieved, namely the sound sizes of music and navigation broadcasting can be respectively set, the requirement that the volume diversification cannot be realized when a vehicle-mounted user uses a plurality of media applications simultaneously is met, and the experience of multi-audio interaction of the user is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface 720, a memory (memory)730 and a bus 750, wherein the processor 710, the communication Interface 720 and the memory 730 communicate with each other via the bus 750. Processor 710 may invoke logic instructions in memory 730 to perform a method of audio stream processing, the method comprising: acquiring N real-time audio streams, wherein N is a positive integer; searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship; carrying out sound mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream; outputting the synthesized audio stream to a hardware interface to drive an audio hardware utterance.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In yet another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute an audio stream processing method provided in the foregoing embodiments, and the method includes: acquiring N real-time audio streams, wherein N is a positive integer; searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship; carrying out sound mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream; outputting the synthesized audio stream to a hardware interface to drive an audio hardware utterance.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. An audio stream processing method, comprising:
acquiring N real-time audio streams, wherein N is a positive integer;
searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship;
carrying out sound mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream;
the searching for the corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams includes:
analyzing the N real-time audio streams to obtain corresponding port identity information;
searching an application program package name corresponding to the port identity information in a volume parameter package;
if the corresponding application program package name is found, the volume parameter value corresponding to the application program package name is found in the volume parameter package, and the volume parameter values corresponding to the N real-time audio streams are obtained; if the corresponding application package name is not found, the default volume parameter value is used.
2. The audio stream processing method according to claim 1,
the corresponding relation between the application program package name and the port identity information is a first corresponding relation; the corresponding relation between the volume parameter value and the application program package name is a second corresponding relation;
the first corresponding relation is obtained as follows: when an application program system acquires an audio focus, storing a first corresponding relation between an application program package name corresponding to the application program system and port identity information into the volume parameter package;
the second corresponding relation is obtained as follows: receiving a second corresponding relation between the volume parameter value set by the user and the name of the application program package; and storing the second correspondence to the volume parameter packet.
3. The audio stream processing method according to claim 1,
the mixing the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream includes:
multiplying the N real-time audio streams by corresponding volume parameter values respectively to obtain N weighted audio streams;
the N weighted audio streams are summed to obtain a composite audio stream.
4. The audio stream processing method according to claim 1, further comprising:
and receiving one or more of an adding request, an updating request, a removing request and a querying request of the volume parameter packet to execute corresponding operations.
5. The audio stream processing method according to any one of claims 1 to 4, further comprising:
saving the volume parameter packet to a setting storage area;
and when the computer is started, calling the volume parameter packet from the setting storage area to a preset storage position so as to mix sound.
6. The audio stream processing method according to any one of claims 1 to 4, wherein, when applied to an intelligent vehicle-mounted terminal, N is 2;
the 2 real-time audio streams are navigation broadcast audio streams and music broadcast audio streams;
and the volume parameter value of the navigation broadcasting audio stream is greater than that of the music playing audio stream.
7. An audio stream processing system, comprising:
the real-time audio stream acquisition module is used for acquiring N real-time audio streams, wherein N is a positive integer;
the volume parameter searching module is used for searching a corresponding volume parameter value in the volume parameter packet according to the port identity information of the N real-time audio streams; the volume parameter packet comprises port identity information and a volume parameter value which have a corresponding relationship;
and the sound mixing processing module is used for carrying out sound mixing processing on the N real-time audio streams according to the corresponding volume parameter values to obtain a synthesized audio stream.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the audio stream processing method according to any of claims 1 to 6 are implemented when the processor executes the program.
9. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the audio stream processing method according to any one of claims 1 to 6.
CN202010919240.7A 2020-09-04 2020-09-04 Audio stream processing method, system, device, and medium Active CN111787462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010919240.7A CN111787462B (en) 2020-09-04 2020-09-04 Audio stream processing method, system, device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010919240.7A CN111787462B (en) 2020-09-04 2020-09-04 Audio stream processing method, system, device, and medium

Publications (2)

Publication Number Publication Date
CN111787462A true CN111787462A (en) 2020-10-16
CN111787462B CN111787462B (en) 2021-01-26

Family

ID=72762271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010919240.7A Active CN111787462B (en) 2020-09-04 2020-09-04 Audio stream processing method, system, device, and medium

Country Status (1)

Country Link
CN (1) CN111787462B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112542183A (en) * 2020-12-09 2021-03-23 北京百度网讯科技有限公司 Audio data processing method, device, equipment and storage medium
CN113873475A (en) * 2021-09-16 2021-12-31 阿波罗智联(北京)科技有限公司 Vehicle-mounted interconnected audio data processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070083365A1 (en) * 2005-10-06 2007-04-12 Dts, Inc. Neural network classifier for separating audio sources from a monophonic audio signal
CN107071174A (en) * 2017-04-14 2017-08-18 维沃移动通信有限公司 A kind of method of speech processing and mobile terminal
CN107087241A (en) * 2016-02-16 2017-08-22 森海塞尔通信公司 Communication system for transmitting audio signal between multiple control devices
CN109117110A (en) * 2018-07-10 2019-01-01 苏州车萝卜汽车电子科技有限公司 Data processing method and device for voice dynamic fusion
CN109918042A (en) * 2019-03-19 2019-06-21 常州卡灵克软件有限公司 A kind of vehicle device application sound channel control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070083365A1 (en) * 2005-10-06 2007-04-12 Dts, Inc. Neural network classifier for separating audio sources from a monophonic audio signal
CN107087241A (en) * 2016-02-16 2017-08-22 森海塞尔通信公司 Communication system for transmitting audio signal between multiple control devices
CN107071174A (en) * 2017-04-14 2017-08-18 维沃移动通信有限公司 A kind of method of speech processing and mobile terminal
CN109117110A (en) * 2018-07-10 2019-01-01 苏州车萝卜汽车电子科技有限公司 Data processing method and device for voice dynamic fusion
CN109918042A (en) * 2019-03-19 2019-06-21 常州卡灵克软件有限公司 A kind of vehicle device application sound channel control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112542183A (en) * 2020-12-09 2021-03-23 北京百度网讯科技有限公司 Audio data processing method, device, equipment and storage medium
JP2021184607A (en) * 2020-12-09 2021-12-02 アポロ インテリジェント コネクティビティ (ベイジン) テクノロジー カンパニー リミテッドApollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Audio data processing method, apparatus, device, storage media and program
US11626140B2 (en) 2020-12-09 2023-04-11 Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Audio data processing method, electronic device, and storage medium
CN113873475A (en) * 2021-09-16 2021-12-31 阿波罗智联(北京)科技有限公司 Vehicle-mounted interconnected audio data processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN111787462B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN111787462B (en) Audio stream processing method, system, device, and medium
CN106910510A (en) Vehicle-mounted power amplifying device, vehicle and its audio play handling method
CN105530171A (en) Method and apparatus for playing instant message sound on vehicle-mounted terminal
CN112542183B (en) Audio data processing method, device, equipment and storage medium
WO2011079758A1 (en) Management method and manager for audio application conflict
WO2018223608A1 (en) Navigation-based audio processing method and device
JP7311707B2 (en) Human-machine interaction processing method
US8768494B1 (en) System and method for generating policy-based audio
WO2023051293A1 (en) Audio processing method and apparatus, and electronic device and storage medium
CN113225716A (en) Vehicle-mounted karaoke realization method, system, equipment and storage medium
EP3657821B1 (en) Method and device for playing back audio, and terminal
US20100216511A1 (en) Mobile wireless communications device with novelty voice alteration and related methods
CN112533188A (en) Output processing method and device of playing source
CN108492826A (en) Audio processing method and device, intelligent equipment and medium
CN112053699A (en) Method and device for processing game card voice change
CN111464902A (en) Information processing method, information processing device, earphone and storage medium
CN108184193B (en) Play control method of Bluetooth play terminal, Bluetooth device and computer storage medium
CN114802029A (en) Vehicle-mounted multi-screen control method, device and system and vehicle
JP2022095689A (en) Voice data noise reduction method, device, equipment, storage medium, and program
CN115022773A (en) Bluetooth device audio control method, device and storage medium
CN110246517B (en) Radio station music identification method, vehicle-mounted system and vehicle
CN110502207B (en) Background sound silencing method, system, equipment and storage medium
US20050262256A1 (en) Method and device for multimedia processing
CN109542388B (en) Multi-channel audio stream output method and related product
CN112307161A (en) Method and apparatus for playing audio

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
GR01 Patent grant
GR01 Patent grant