Movatterモバイル変換


[0]ホーム

URL:


CN109767777A - A kind of mixing method of live broadcast software - Google Patents

A kind of mixing method of live broadcast software
Download PDF

Info

Publication number
CN109767777A
CN109767777ACN201910098731.7ACN201910098731ACN109767777ACN 109767777 ACN109767777 ACN 109767777ACN 201910098731 ACN201910098731 ACN 201910098731ACN 109767777 ACN109767777 ACN 109767777A
Authority
CN
China
Prior art keywords
audio
accompaniment
function
data source
audio data
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
CN201910098731.7A
Other languages
Chinese (zh)
Inventor
李尔卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Thunder Computer (shenzhen) Co Ltd
Original Assignee
Thunder Computer (shenzhen) 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 Thunder Computer (shenzhen) Co LtdfiledCriticalThunder Computer (shenzhen) Co Ltd
Priority to CN201910098731.7ApriorityCriticalpatent/CN109767777A/en
Publication of CN109767777ApublicationCriticalpatent/CN109767777A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

Translated fromChinese

本发明公开了一种直播软件的混音方法,在混音时能够获取播放的伴奏音频的音频数据源,并对音频数据源和利用麦克风采集到的用户音频进行混音处理。本发明还提供了一种直播软件的混音设备、系统及计算机可读存储介质。可见,本发明在进行混音时,并非像传统混音方法一样采集扬声器输出的音频并对其进行回声消除等处理,而是直接获取播放的伴奏音频的音频数据源,因此,一方面避免了采集扬声器输出音频时噪声较大的问题,另一方面还避免了采集过程中一并采集到连麦用户音频的问题,所以混音过程中无需对伴奏音频进行回声消除、背景噪声抑制等处理,提升了混音音频的品质。

The invention discloses a sound mixing method of live broadcast software, which can obtain the audio data source of the playing accompaniment audio during sound mixing, and perform sound mixing processing on the audio data source and the user audio collected by the microphone. The present invention also provides a sound mixing device, a system and a computer-readable storage medium for live broadcast software. It can be seen that the present invention does not collect the audio output from the speaker and perform processing such as echo cancellation as in the traditional sound mixing method, but directly obtains the audio data source of the played accompaniment audio. Therefore, on the one hand, it avoids The problem of high noise when collecting the audio output from the speaker, on the other hand, also avoids the problem of collecting the audio of the connected microphone users during the acquisition process, so there is no need to perform echo cancellation and background noise suppression on the accompaniment audio during the mixing process. Improved the quality of mixed audio.

Description

A kind of sound mixing method that software is broadcast live
Technical field
The present invention relates to computer field more particularly to a kind of sound mixing method, equipment, system and computers that software is broadcast liveReadable storage medium storing program for executing.
Background technique
Carried out in the even live scene of wheat using PC, generally require to the audio of audio accompaniment and active user intoRow audio mixing, so that remixed audio is pushed to Lian Maizhe.Traditional audio mixing scheme is mainly to obtain computer loudspeaker respectively firstThe audio (mixing of audio accompaniment and Lian Mai audio) and the collected audio of microphone of output;Then in order to eliminate echo,Audio and the collected audio of microphone to loudspeaker output carry out 3A processing (i.e. AGC automatic gain compensation, ANS back respectivelyScape noise suppression, AEC Echo Canceller), wherein the audio of loudspeaker output obtains audio accompaniment, microphone after being handledThe audio of acquisition obtains audio user after treatment;Audio accompaniment and audio user are finally subjected to audio mixing, live streaming software intoAnd the audio coding after audio mixing is pushed to real transport networks at audio stream.
However, by 3A treated audio there are high pitchs to be suppressed, sound quality reduces, audio distortions the disadvantages of, cause to mixThe sound quality of sound audio is poor, the serious company wheat experience for reducing user.
Summary of the invention
The sound mixing method of software, equipment, system and computer-readable is broadcast live the main purpose of the present invention is to provide a kind ofStorage medium, it is intended to solve traditional sound mixing method and need to carry out the operation such as echo cancellor, cause high pitch to be suppressed, sound quality dropIt is low, the technical issues of audio distortions.
To achieve the above object, the present invention provides a kind of sound mixing methods that software is broadcast live, comprising:
Obtain the audio data sources of the audio accompaniment played;
Stereo process is carried out to the audio data sources and using the collected audio user of microphone.
Optionally, the audio data sources for obtaining the audio accompaniment played, specifically include:
In response to playing the instruction of audio accompaniment, the jump instruction in system audio play function is obtained, wherein the systemSystem audio play function is for executing the function for playing audio accompaniment operation, and the jump instruction is to be previously implanted the audioThe instruction of play function, the jump instruction jump to objective function when the system audio play function is called for making;
According to the jump instruction, the objective function is jumped to from the system audio play function, and described in callingObjective function obtains the audio data sources of the audio accompaniment.
Optionally, described according to the jump instruction, the objective function is jumped to from the system audio play function,And the objective function is called to obtain the audio data sources of the audio accompaniment, it specifically includes:
According to the jump instruction, the objective function is jumped to from the waveout function of windows system;
The objective function is called, audio data sources are obtained by the waveoutwrite function in waveout functionPCM audio data.
Optionally, stereo process is carried out described to the audio data sources and using the collected audio user of microphoneLater, further includes:
The target audio that stereo process obtains is encoded, obtains audio code stream data, and by the audio code fluxionAccording to being pushed to real transport networks.
Optionally, the audio data sources for obtaining the audio accompaniment played, specifically include:
The audio data sources for the audio accompaniment that the accompaniment module and/or accompaniment software for obtaining live streaming software play.
Optionally, stereo process is carried out described to the audio data sources and using the collected audio user of microphoneBefore, further includes:
While playing audio accompaniment using earphone, audio user is acquired by microphone.
To achieve the above object, invention further provides a kind of audio mixing equipment that software is broadcast live, the equipment includesMemory and processor are stored with the computer program that can be run on the processor, the computer on the memoryProgram realizes following method when being executed by the processor:
Obtain the audio data sources of the audio accompaniment played;
Stereo process is carried out to the audio data sources and using the collected audio user of microphone.
Optionally, it is implemented when the computer program is executed by the processor:
In response to playing the instruction of audio accompaniment, the jump instruction in system audio play function is obtained, wherein the systemSystem audio play function is for executing the function for playing audio accompaniment operation, and the jump instruction is to be previously implanted the audioThe instruction of play function, the jump instruction jump to objective function when the system audio play function is called for making;
According to the jump instruction, the objective function is jumped to from the system audio play function, and described in callingObjective function obtains the audio data sources of the audio accompaniment.
Optionally, it is also realized when the computer program is executed by the processor:
The target audio that stereo process obtains is encoded, obtains audio code stream data, and by the audio code fluxionAccording to being pushed to real transport networks.
To achieve the above object, the present invention also provides it is a kind of be broadcast live software mixer system, the system comprises:
Audio data sources acquiring unit: for obtaining the audio data sources of the audio accompaniment played;
Downmixing unit: for being carried out at audio mixing to the audio data sources and using the collected audio user of microphoneReason.
To achieve the above object, described computer-readable to deposit the present invention also provides a kind of computer readable storage mediumComputer program is stored on storage media, the computer program can be executed by one or more processor, as above to realizeA kind of sound mixing method of the live streaming software.
A kind of sound mixing method that software is broadcast live provided by the present invention, the audio accompaniment of broadcasting can be obtained in audio mixingAudio data sources, and stereo process is carried out to the audio data sources and using the collected audio user of microphone.As it can be seen that shouldMethod when carrying out audio mixing, not as traditional sound mixing method acquire loudspeaker output audio and to collected audio intoThe processing such as row echo cancellor, but the audio data sources of the audio accompaniment of broadcasting are directly acquired, therefore, on the one hand avoid acquisitionNoise larger problem when loudspeaker exports audio, the problem of on the other hand avoiding company of collecting wheat audio user, so mixingIt is not necessarily to carry out audio accompaniment the processing such as echo cancellor, ambient noise inhibition during sound, improves the quality of remixed audio.
In addition, the present invention also provides a kind of audio mixing equipment, system and computer readable storage medium that software is broadcast live,Effect corresponds to the above method, and which is not described herein again.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior artAttached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hairBright some embodiments for those of ordinary skill in the art without creative efforts, can be with rootOther attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of implementation flow chart of sound mixing method embodiment one that software is broadcast live provided by the invention;
Fig. 2 is a kind of implementation flow chart of sound mixing method embodiment two that software is broadcast live provided by the invention;
Fig. 3 is a kind of implementation process schematic diagram of sound mixing method embodiment two that software is broadcast live provided by the invention;
Fig. 4 is a kind of structural schematic diagram of audio mixing apparatus embodiments that software is broadcast live provided by the invention;
Fig. 5 is a kind of functional block diagram of mixer system embodiment that software is broadcast live provided by the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, rightThe present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, notFor limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative workEvery other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawingThe (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manageThe data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating hereinOr the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended thatCover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limitIn step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produceThe other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannotIt is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " theOne ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodimentArt scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solutionWill be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claimsProtection scope within.
The present invention provides a kind of sound mixing methods that software is broadcast live.
Referring to Fig. 1, Fig. 1 is a kind of implementation flow chart of sound mixing method embodiment one that software is broadcast live provided by the invention.
As shown in Figure 1, this method specifically includes in embodiment one:
Step S11: the audio data sources of the audio accompaniment of broadcasting are obtained.
The present embodiment, which is mainly used in, connects the scene of wheat in live streaming software, and Lian Mai refers to two or more useFamily in the same place, can not be combined together sound by network the process of singing, chat.In the present embodiment, with twoThe implementation process of the present embodiment is described, for aspect description, the present embodiment divides two users for company's wheat process of userIt is also known as the company wheat user of active user and distal end, the present embodiment is described from the angle of active user.
Specifically, needing to carry out at audio mixing the audio and audio accompaniment of active user in live streaming software running processReason, and then remixed audio is pushed to Lian Maizhe, wherein audio accompaniment may be that the accompaniment software of terminal where active user is broadcastIt puts, it is also possible to what the accompaniment module being broadcast live in software played.In the present embodiment, when software progress audio mixing is broadcast live, pass throughMicrophone acquires the audio of active user, and obtains the audio data sources of the audio accompaniment of broadcasting, it should be noted that companion hereIt plays audio and refers to the audio data that active user one end plays, audio data sources refer to that loudspeaker or earphone play the accompanimentThe source data of audio is not the audio data for record or other operations obtain to the sound of loudspeaker output.In addition,In actual application scenarios, terminal where active user often receives the audio data of real-time network transmission, and according to the soundFrequency data playback Lian Maizhe audio, the audio accompaniment in the present embodiment does not include above-mentioned Lian Maizhe audio.
Step S12: stereo process is carried out to audio data sources and using the collected audio user of microphone.
Audio mixing, which refers to, mixes two-way or reproduction of multiple audio streams, forms the operation of audio stream all the way.It needs to illustrate, in the present embodiment, the collected audio of microphone includes but is not limited to the audio of active user, can also include current useOther audios of environment where family, for example, microphone can when user plays audio accompaniment, Lian Maizhe audio using loudspeakerThe sound, audio accompaniment and Lian Maizhe audio of active user can be collected simultaneously, and when user plays accompaniment tone using earphoneWhen frequency and Lian Maizhe audio, the main collected sound for active user of microphone.As a preferred embodiment, working asPreceding user can play audio accompaniment and Lian Maizhe audio by earphone, in this case, it is believed that microphone is collectedThe only audio of active user, it can thus be avoided carrying out 3A processing to the collected audio of microphone, that is to say, that mixedWhen sound, not only without carrying out 3A processing, audio user can also be handled audio accompaniment to avoid 3A, thus it is guaranteed that accompanimentThe quality of audio and audio user finally realizes the purpose for promoting the quality of remixed audio.
A kind of sound mixing method that software is broadcast live, the audio accompaniment of broadcasting can be obtained in audio mixing provided by the present embodimentAudio data sources, and to audio data sources and the collected audio user of microphone is utilized to carry out stereo process.As it can be seen that the partyMethod the processing such as not acquires the audio of output as traditional sound mixing method and carries out echo cancellor when carrying out audio mixing, butThe audio data sources of the accompaniment of broadcasting are directly found, therefore, noise is larger when on the one hand avoiding acquisition loudspeaker output audioThe problem of, on the other hand also avoid in collection process can together the company of collecting wheat audio user the problem of, so mix processIn without carry out echo cancellor, ambient noise inhibit etc. processing, improve the quality of remixed audio.
Referring to fig. 2, Fig. 2 is a kind of sound mixing method embodiment two that software is broadcast live provided by the invention.
As shown in Fig. 2, in example 2, this method specifically includes:
Step S21: the instruction in response to playing accompaniment obtains the jump instruction in system audio play function.
Wherein, above system audio play function is the function operated in current system for executing broadcasting accompaniment, above-mentionedJump instruction is to be previously implanted the instruction of audio play function, and the jump instruction is for when making system audio play function be calledObjective function is jumped to, is specifically as follows the system plays function by the accompaniment module of live streaming software or accompaniment software transferWhen jump to objective function.
Step S22: according to jump instruction, objective function, and invocation target function are jumped to from system audio play functionObtain the audio data sources of audio accompaniment.
That is, live streaming software obtains the audio data sources of accompaniment using code injection mode.Specifically, live streaming softwareIt can be by calling SetWindowsHookEx function by the accompaniment software of objective function (dll file) injection broadcasting music, moreSpecifically, it is that injection accompaniment software is playing the system audio play function called when accompaniment, makes system audio play functionEntrance be directed toward objective function (goal function is pre-created, and the function of objective function will refer to below).When system audio play function is by accompaniment software transfer, objective function is immediately hopped to, objective function carries out incoming parameterProcessing appropriate, so that it may obtain the PCM data and PCM format of audio data to be played, then pass through process communication for audioData are returned to live streaming software, in order to carry out subsequent stereo process.
Step S23: audio user is acquired by microphone.
Specifically, as shown in figure 3, the present embodiment is suitable for following application scenarios: active user wears earphone, earphone connectionComputer, the audio for enabling active user to hear that the audio accompaniment of computer output and distal end Lian Maizhe are transmitted, therefore export sound notAmbient enviroment is traveled to again, to no longer be collected by microphone.Under this scene, the company wheat user of distal end can be effectively avoidedSound it is again collected after loudspeaker broadcasting, and return to after stereo process the company wheat user of distal end, cause to exist backSound problem.
In practical application scene, even if microphone does not acquire Lian Maizhe audio and audio accompaniment, but it is also possible to collect weekThe noise in collarette border, therefore, it is necessary to carry out ambient noise inhibition, the principle that background noise inhibits to the collected audio of microphoneIt is that the digital signal of real-time sampling is subjected to spectrum analysis, to analyze the intensity and spectrum distribution of ambient noise response, soA filter is designed according to these afterwards, the final frequency spectrum realized according to these background noises and user voice, filter, which allows, works asThe sound spectrum of preceding user passes through, and inhibits to the frequency spectrum of ambient noise, to realize the effect of noise suppression.
Step S24: stereo process is carried out to audio data sources and using the collected audio user of microphone.
It should be noted that the present embodiment do not limit step S24 execute sequence, as long as guaranteeing step S24 at audio mixingReason is completed before being step S25.
Step S25: encoding the target audio that stereo process obtains, and obtains audio code stream data, and by the soundFrequency code flow data is pushed to real transport networks.
The present embodiment specifically can be applied to the computer of windows system, and the interface of Windows system plays music hasWaveout interface, Directsound interface etc., below respectively to upper by taking Hook Waveout interface, Directsound as an exampleStep S22 is stated to be illustrated:
Firstly the need of explanation, Hook be provided in Windows it is a kind of to replace the System Computer interrupted under DOSSystem.After carrying out hook to specific system event, once hook event occurs, the program for carrying out hook to the event willThe notice of system is received, at this moment program can respond the event in first time.
For Hook Waveout interface, the waveOutOpen function of Hook Waveout interface is obtainedWAVEFORMATEX categorical data therefrom obtains the format of audio PCM data, the waveOutWrite of Hook Waveout interfaceFunction obtains LPWAVEHDR categorical data, therefrom obtains audio PCM data and data PCM length.
For Hook Directsound interface, since Directsound component is Com component, Com component Hook modeDifferent, the process with Hook export API are as follows: creation IDirectSound object utilizes IDirectSound Object Creation oneA IDirectSoundBuffer object obtains the empty letter of IDirectSoundBuffer from IDirectSoundBuffer objectNumber table, OnUnlock function address is taken from virtual table, is substituted for new interface function.Hook Directsound interfaceOnUnlock function, LPDIRECTSOUNDBUFFER categorical data can be obtained, the format of audio PCM data is therefrom obtained, takeIt obtains LPVOID data type and obtains audio PCM data.
To sum up, a kind of sound mixing method that software is broadcast live provided by the present embodiment, applied to the company wheat in live streaming softwareScene is all usually in the prior art scheme the sound for acquiring loudspeaker and releasing, and echo cancellor, gain compensation, background are made an uproarAudio mixing is carried out after the processing such as sound inhibition, these audio processings can seriously reduce sound quality, cause user experience poor.And this realityThe audio data sources that example directly finds the audio accompaniment of broadcasting are applied, specifically, the present embodiment is playing accompaniment tone in accompaniment softwareIt is filled with jump instruction in the system audio play function that can be called when frequency, so that accompaniment software plays letter in calling system audioObjective function can be automatic jumped to when number, then objective function can obtain the audio data sources of accompaniment, and audio data sources are passedLive streaming software is given, subsequent stereo process is carried out in order to which software is broadcast live, further, it is also possible to pass through on the basis of above schemeEarphone plays audio accompaniment and Lian Maizhe audio, and microphone is avoided to collect Lian Maizhe audio or companion while acquiring audio userAudio is played, to avoid carrying out 3A processing to the collected audio of microphone, therefore, on the one hand the present embodiment avoids acquisition and raisesNoise is big when sound device exports and there are problems that even wheat audio user, on the other hand avoids to the collected audio of microphoneThe processing such as echo cancellor is carried out, to ensure that the quality of audio accompaniment and audio user, finally improves the product of remixed audioMatter ensure that the company wheat experience of user.
Referring to fig. 4, Fig. 4 is a kind of structural schematic diagram of audio mixing apparatus embodiments that software is broadcast live provided in this embodiment.
As shown in figure 4, the audio mixing equipment 40 of the live streaming software specifically includes: memory 41 and processor 42, the storageThe computer program that can be run on the processor 42 is stored on device 41, the computer program is held by the processor 42Following method is realized when row:
Obtain the audio data sources of the accompaniment played;
Stereo process is carried out to the audio data sources and using the collected audio user of microphone.
In the present embodiment, the audio mixing equipment 40 that software is broadcast live can be PC (Personal Computer, personal electricityBrain), it is also possible to smart phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage are setStandby terminal device.
Wherein, memory 41 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 41It can be the internal storage unit of the audio mixing equipment 40 of live streaming software in some embodiments, such as the audio mixing of the live streaming software is setStandby 40 hard disk.The external storage that memory 41 is also possible to be broadcast live in further embodiments the audio mixing equipment 40 of software is setPlug-in type hard disk that is standby, such as being equipped in the audio mixing equipment 40 of live streaming software, intelligent memory card (Smart Media Card,SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Further, memory 41 may be used alsoWith the internal storage unit of the audio mixing equipment 40 both including live streaming software or including External memory equipment.Memory 41 not only can be withFor storing the application software and Various types of data that are installed on the audio mixing equipment 40 of live streaming software, such as the code of computer programDeng can be also used for temporarily storing the data that has exported or will export.
Processor 42 can be in some embodiments a central processing unit (Central Processing Unit,CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 41Code or processing data, such as execute computer program etc..
Bus between memory 41 and processor 42 can be Peripheral Component Interconnect standard (peripheralComponent interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industryStandard architecture, abbreviation EISA) bus etc..The bus can be divided into address bus, data/address bus, control alwaysLine etc..Only to be indicated with a thick line in Fig. 4, it is not intended that an only bus or a type of bus convenient for indicating.
As an alternative embodiment, the computer program implements when being executed by the processor 42:
In response to playing the instruction of audio accompaniment, the jump instruction in system audio play function is obtained, wherein the systemSystem audio play function is for executing the function for playing audio accompaniment operation, and the jump instruction is to be previously implanted the audioThe instruction of play function, the jump instruction jump to objective function when the system audio play function is called for making;
According to the jump instruction, the objective function is jumped to from the system audio play function, and described in callingObjective function obtains the audio data sources of the audio accompaniment.
As an alternative embodiment, the computer program is also realized when being executed by the processor 42:
The target audio that stereo process obtains is encoded, obtains audio code stream data, and by the audio code fluxionAccording to being pushed to real transport networks.
Further, the audio mixing equipment 40 that software is broadcast live can also include network interface, and network interface optionally can wrapWireline interface and/or wireless interface (such as WI-FI interface, blue tooth interface) are included, commonly used in setting in the audio mixing of the live streaming softwareIt establishes and communicates to connect between standby 40 and other electronic equipments.
Optionally, the audio mixing equipment 40 of the live streaming software can also include user interface, and user interface may include displayDevice (Display), input unit such as keyboard (Keyboard), optional user interface can also include that the wired of standard connectsMouth, wireless interface.Optionally, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch control type LCDDisplay and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Wherein, it showsDevice appropriate can also be known as display screen or display unit, the information handled in the audio mixing equipment 40 for being shown in live streaming softwareAnd for showing visual user interface.
Fig. 4 illustrates only the audio mixing equipment 40 of the live streaming software with memory 41 and processor 42, those skilled in the artMember it is understood that the structure shown in Fig. 4 do not constitute to live streaming software audio mixing equipment 40 restriction, may include than figureShow that less perhaps more components perhaps combine certain components or different component layouts.
Referring to Fig. 5, Fig. 5 is a kind of mixer system embodiment that software is broadcast live provided by the invention.
As shown in figure 5, the system specifically includes:
Audio data sources acquiring unit 51: for obtaining the audio data sources of the audio accompaniment played;
Downmixing unit 52: for being carried out at audio mixing to the audio data sources and using the collected audio user of microphoneReason.
Finally, being deposited on the computer readable storage medium the present invention also provides a kind of computer readable storage mediumComputer program is contained, the computer program can be executed by one or more processor, as described above a kind of to realizeThe sound mixing method of software is broadcast live.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof realIt is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meterWhen calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present invention.The computer canTo be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be depositedStorage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage mediumTransmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data centerSuch as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website,Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can depositAny usable medium of storage either includes that the data storages such as one or more usable mediums integrated server, data center are setIt is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly leadBody medium (such as solid state hard disk Solid State Disk (SSD)) etc.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be withIt realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unitIt divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or componentsIt can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown orThe mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unitIt closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unitThe component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multipleIn network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unitIt is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated listMember both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent productWhen, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantiallyThe all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other wordsIt embodies, which is stored in a storage medium, including some instructions are used so that a computerEquipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the applicationPortion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journeyThe medium of sequence code.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.AndThe terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packetProcess, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listedOther element, or further include for this process, device, article or the intrinsic element of method.Do not limiting moreIn the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the elementOr there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.

Claims (11)

Translated fromChinese
1.一种直播软件的混音方法,其特征在于,包括:1. a sound mixing method of live broadcast software, is characterized in that, comprises:获取播放的伴奏音频的音频数据源;Get the audio data source of the played accompaniment audio;对所述音频数据源和利用麦克风采集到的用户音频进行混音处理。Mixing processing is performed on the audio data source and the user audio collected by the microphone.2.如权利要求1所述的方法,其特征在于,所述获取播放的伴奏的音频数据源,具体包括:2. The method of claim 1, wherein the acquisition of the audio data source of the playing accompaniment specifically comprises:响应于播放伴奏音频的指令,获取系统音频播放函数中的跳转指令,其中,所述系统音频播放函数为用于执行播放伴奏音频操作的函数,所述跳转指令为预先注入所述音频播放函数的指令,所述跳转指令用于使所述系统音频播放函数被调用时跳转到目标函数;In response to the instruction of playing the accompaniment audio, the jump instruction in the system audio playback function is obtained, wherein the system audio playback function is a function for performing an operation of playing the accompaniment audio, and the jump instruction is pre-injected into the audio playback The instruction of the function, the jump instruction is used to jump to the target function when the system audio playback function is called;根据所述跳转指令,从所述系统音频播放函数跳转到所述目标函数,并调用所述目标函数获取所述伴奏音频的音频数据源。According to the jump instruction, jump from the system audio playback function to the target function, and call the target function to obtain the audio data source of the accompaniment audio.3.如权利要求2所述的方法,其特征在于,所述根据所述跳转指令,从所述系统音频播放函数跳转到所述目标函数,并调用所述目标函数获取所述伴奏音频的音频数据源,具体包括:3. method as claimed in claim 2 is characterized in that, described according to described jump instruction, jump to described target function from described system audio playing function, and call described target function to obtain described accompaniment audio audio data sources, including:根据所述跳转指令,从windows系统的waveout函数跳转到所述目标函数;According to the jump instruction, jump from the waveout function of the windows system to the target function;调用所述目标函数,通过waveout函数中的waveoutwrite函数获取音频数据源的PCM音频数据。The target function is called, and the PCM audio data of the audio data source is obtained through the waveoutwrite function in the waveout function.4.如权利要求1所述的方法,其特征在于,在所述对所述音频数据源和利用麦克风采集到的用户音频进行混音处理之后,还包括:4. The method according to claim 1, characterized in that, after the audio mixing processing is performed on the audio data source and the user audio collected by using a microphone, the method further comprises:对混音处理得到的目标音频进行编码,得到音频码流数据,并将所述音频码流数据推送到实时传输网络。The target audio obtained by the mixing process is encoded to obtain audio code stream data, and the audio code stream data is pushed to the real-time transmission network.5.如权利要求1-4任意一项所述的方法,其特征在于,所述获取播放的伴奏音频的音频数据源,具体包括:5. The method according to any one of claims 1-4, wherein the acquisition of the audio data source of the played accompaniment audio specifically includes:获取直播软件的伴奏模块和/或伴奏软件播放的伴奏音频的音频数据源。Obtain the audio data source of the accompaniment module of the live software and/or the accompaniment audio played by the accompaniment software.6.如权利要求5所述的方法,其特征在于,在所述对所述音频数据源和利用麦克风采集到的用户音频进行混音处理之前,还包括:6. The method according to claim 5, wherein before the audio mixing processing is performed on the audio data source and the user audio collected by using a microphone, the method further comprises:在利用耳机播放伴奏音频的同时,通过麦克风对用户音频进行采集。While playing the accompaniment audio through the earphone, the user audio is collected through the microphone.7.一种直播软件的混音设备,其特征在于,所述设备包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如下方法:7. A sound mixing device of live broadcast software, wherein the device comprises a memory and a processor, and the memory is stored with a computer program that can be run on the processor, and the computer program is processed by the processor implements the following methods when executing:获取播放的伴奏音频的音频数据源;Get the audio data source of the played accompaniment audio;对所述音频数据源和利用麦克风采集到的用户音频进行混音处理。Mixing processing is performed on the audio data source and the user audio collected by the microphone.8.如权利要求7所述的设备,其特征在于,所述计算机程序被所述处理器执行时具体实现:8. The device according to claim 7, wherein, when the computer program is executed by the processor, it specifically implements:响应于播放伴奏音频的指令,获取系统音频播放函数中的跳转指令,其中,所述系统音频播放函数为用于执行播放伴奏音频操作的函数,所述跳转指令为预先注入所述音频播放函数的指令,所述跳转指令用于使所述系统音频播放函数被调用时跳转到目标函数;In response to the instruction of playing the accompaniment audio, the jump instruction in the system audio playback function is obtained, wherein the system audio playback function is a function for performing an operation of playing the accompaniment audio, and the jump instruction is pre-injected into the audio playback The instruction of the function, the jump instruction is used to jump to the target function when the system audio playback function is called;根据所述跳转指令,从所述系统音频播放函数跳转到所述目标函数,并调用所述目标函数获取所述伴奏音频的音频数据源。According to the jump instruction, jump from the system audio playback function to the target function, and call the target function to obtain the audio data source of the accompaniment audio.9.如权利要求7或8所述的设备,其特征在于,所述计算机程序被所述处理器执行时还实现:9. The device of claim 7 or 8, wherein the computer program further implements when executed by the processor:对混音处理得到的目标音频进行编码,得到音频码流数据,并将所述音频码流数据推送到实时传输网络。The target audio obtained by the mixing process is encoded to obtain audio code stream data, and the audio code stream data is pushed to the real-time transmission network.10.一种直播软件的混音系统,其特征在于,所述系统包括:10. A mixing system for live broadcast software, wherein the system comprises:音频数据源获取单元:用于获取播放的伴奏音频的音频数据源;Audio data source acquisition unit: used to acquire the audio data source of the playing accompaniment audio;混音单元:用于对所述音频数据源和利用麦克风采集到的用户音频进行混音处理。Mixing unit: used for mixing and processing the audio data source and the user audio collected by the microphone.11.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序可被一个或者多个处理器执行,以实现如权利要求1至6中任一项所述的一种直播软件的混音方法。11. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and the computer program can be executed by one or more processors to realize as in claims 1 to 6 A sound mixing method of any one of the live broadcast software.
CN201910098731.7A2019-01-312019-01-31 A kind of mixing method of live broadcast softwarePendingCN109767777A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910098731.7ACN109767777A (en)2019-01-312019-01-31 A kind of mixing method of live broadcast software

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910098731.7ACN109767777A (en)2019-01-312019-01-31 A kind of mixing method of live broadcast software

Publications (1)

Publication NumberPublication Date
CN109767777Atrue CN109767777A (en)2019-05-17

Family

ID=66454654

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910098731.7APendingCN109767777A (en)2019-01-312019-01-31 A kind of mixing method of live broadcast software

Country Status (1)

CountryLink
CN (1)CN109767777A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110970045A (en)*2019-11-152020-04-07北京达佳互联信息技术有限公司Mixing processing method, mixing processing device, electronic equipment and storage medium
CN111445901A (en)*2020-03-262020-07-24北京达佳互联信息技术有限公司Audio data acquisition method and device, electronic equipment and storage medium
CN111510738A (en)*2020-04-262020-08-07北京字节跳动网络技术有限公司Method and device for transmitting audio in live broadcast
CN111583950A (en)*2020-04-212020-08-25珠海格力电器股份有限公司Audio processing method and device, electronic equipment and storage medium
CN111583952A (en)*2020-05-192020-08-25北京达佳互联信息技术有限公司Audio processing method and device, electronic equipment and storage medium
CN112365873A (en)*2020-11-102021-02-12北京百瑞互联技术有限公司Bluetooth audio relay sound mixing method and device and storage medium
CN112423104A (en)*2020-09-022021-02-26上海幻电信息科技有限公司Audio mixing method and system for multi-channel audio in live scene
CN112423009A (en)*2020-11-092021-02-26珠海格力电器股份有限公司Method and equipment for controlling live broadcast audio
CN112492338A (en)*2020-11-272021-03-12腾讯音乐娱乐科技(深圳)有限公司Online song room implementation method, electronic device and computer readable storage medium
CN112616087A (en)*2020-12-102021-04-06北京字节跳动网络技术有限公司Live audio processing method and device
WO2021103710A1 (en)*2019-11-282021-06-03北京达佳互联信息技术有限公司Live broadcast audio processing method and apparatus, and electronic device and storage medium
CN112911566A (en)*2019-12-252021-06-04华为终端有限公司Bluetooth communication method and device
CN113096674A (en)*2021-03-302021-07-09联想(北京)有限公司Audio processing method and device and electronic equipment
CN113132794A (en)*2021-05-132021-07-16北京字节跳动网络技术有限公司Live background sound processing method, device, equipment, medium and program product
CN113225574A (en)*2021-04-282021-08-06北京达佳互联信息技术有限公司Signal processing method and device
CN113259762A (en)*2021-04-072021-08-13广州虎牙科技有限公司Audio processing method and device, electronic equipment and computer readable storage medium
CN113286161A (en)*2021-05-192021-08-20广州虎牙科技有限公司Live broadcast method, device, equipment and storage medium
CN113470673A (en)*2020-03-302021-10-01阿里巴巴集团控股有限公司Data processing method, device, equipment and storage medium
CN113539287A (en)*2021-06-282021-10-22瑞芯微电子股份有限公司Echo cancellation method and storage medium
CN113542982A (en)*2021-06-282021-10-22瑞芯微电子股份有限公司Sound mixing method and storage medium
CN113613143A (en)*2021-07-082021-11-05北京小唱科技有限公司Audio processing method and device suitable for mobile terminal and storage medium
US11206453B2 (en)2020-04-142021-12-21International Business Machines CorporationCognitive broadcasting of an event
CN114237542A (en)*2021-11-172022-03-25浪潮金融信息技术有限公司 A command-line-based high-quality audio streaming recording method, system and medium
CN115357209A (en)*2022-06-242022-11-18广州播丫科技有限公司 An audio synthesis method for multiple recordings of a live broadcast machine
CN113542977B (en)*2021-07-152023-06-09深圳软牛科技有限公司Method, device and related assembly for synthesizing sound card and microphone sound

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2922049Y (en)*2006-04-172007-07-11邱德才 Headset Portable Can Play Mic Sound Digital Music Player
CN103354579A (en)*2013-05-282013-10-16广东翼卡车联网服务有限公司Method and system for DTMF (dual tone multifrequency) decoding based on recording synchronization
CN105245991A (en)*2015-10-262016-01-13汪国印Head-mounted karaoke singing earphone and karaoke singing processing method
CN105788582A (en)*2016-05-062016-07-20深圳芯智汇科技有限公司Portable karaoke sound box and karaoke method thereof
US20170286055A1 (en)*2014-07-252017-10-05Zte CorporationMethod and Apparatus for Audio Mixing and Playing
CN108259985A (en)*2018-01-092018-07-06武汉斗鱼网络科技有限公司Live audio sound mixing method, device, readable storage medium storing program for executing and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2922049Y (en)*2006-04-172007-07-11邱德才 Headset Portable Can Play Mic Sound Digital Music Player
CN103354579A (en)*2013-05-282013-10-16广东翼卡车联网服务有限公司Method and system for DTMF (dual tone multifrequency) decoding based on recording synchronization
US20170286055A1 (en)*2014-07-252017-10-05Zte CorporationMethod and Apparatus for Audio Mixing and Playing
CN105245991A (en)*2015-10-262016-01-13汪国印Head-mounted karaoke singing earphone and karaoke singing processing method
CN105788582A (en)*2016-05-062016-07-20深圳芯智汇科技有限公司Portable karaoke sound box and karaoke method thereof
CN108259985A (en)*2018-01-092018-07-06武汉斗鱼网络科技有限公司Live audio sound mixing method, device, readable storage medium storing program for executing and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
胡合松等: "《基于VC++的虚拟声卡示波器设计》", 《武汉理工大学学报·信息与管理工程版》*
钟玉琢主编: "《多媒体技术(中级)》", 31 August 1999, 清华大学出版社*

Cited By (37)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110970045B (en)*2019-11-152022-03-25北京达佳互联信息技术有限公司Mixing processing method, mixing processing device, electronic equipment and storage medium
CN110970045A (en)*2019-11-152020-04-07北京达佳互联信息技术有限公司Mixing processing method, mixing processing device, electronic equipment and storage medium
WO2021103710A1 (en)*2019-11-282021-06-03北京达佳互联信息技术有限公司Live broadcast audio processing method and apparatus, and electronic device and storage medium
US12047760B2 (en)2019-12-252024-07-23Huawei Technologies Co., Ltd.Bluetooth communication method and apparatus
CN112911566A (en)*2019-12-252021-06-04华为终端有限公司Bluetooth communication method and device
CN111445901A (en)*2020-03-262020-07-24北京达佳互联信息技术有限公司Audio data acquisition method and device, electronic equipment and storage medium
CN111445901B (en)*2020-03-262023-10-03北京达佳互联信息技术有限公司Audio data acquisition method and device, electronic equipment and storage medium
CN113470673A (en)*2020-03-302021-10-01阿里巴巴集团控股有限公司Data processing method, device, equipment and storage medium
US11206453B2 (en)2020-04-142021-12-21International Business Machines CorporationCognitive broadcasting of an event
CN111583950B (en)*2020-04-212024-05-03珠海格力电器股份有限公司Audio processing method and device, electronic equipment and storage medium
CN111583950A (en)*2020-04-212020-08-25珠海格力电器股份有限公司Audio processing method and device, electronic equipment and storage medium
CN111510738B (en)*2020-04-262023-08-11北京字节跳动网络技术有限公司Audio transmission method and device in live broadcast
CN111510738A (en)*2020-04-262020-08-07北京字节跳动网络技术有限公司Method and device for transmitting audio in live broadcast
CN111583952B (en)*2020-05-192024-05-07北京达佳互联信息技术有限公司Audio processing method, device, electronic equipment and storage medium
CN111583952A (en)*2020-05-192020-08-25北京达佳互联信息技术有限公司Audio processing method and device, electronic equipment and storage medium
CN112423104A (en)*2020-09-022021-02-26上海幻电信息科技有限公司Audio mixing method and system for multi-channel audio in live scene
CN112423009A (en)*2020-11-092021-02-26珠海格力电器股份有限公司Method and equipment for controlling live broadcast audio
CN112365873A (en)*2020-11-102021-02-12北京百瑞互联技术有限公司Bluetooth audio relay sound mixing method and device and storage medium
CN112492338A (en)*2020-11-272021-03-12腾讯音乐娱乐科技(深圳)有限公司Online song room implementation method, electronic device and computer readable storage medium
CN112492338B (en)*2020-11-272023-10-13腾讯音乐娱乐科技(深圳)有限公司Online song house implementation method, electronic equipment and computer readable storage medium
US20240040191A1 (en)*2020-12-102024-02-01Beijing Bytedance Network Technology Co., Ltd.Livestreaming audio processing method and device
CN112616087A (en)*2020-12-102021-04-06北京字节跳动网络技术有限公司Live audio processing method and device
WO2022121727A1 (en)*2020-12-102022-06-16北京字节跳动网络技术有限公司Livestreaming audio processing method and device
CN113096674A (en)*2021-03-302021-07-09联想(北京)有限公司Audio processing method and device and electronic equipment
CN113096674B (en)*2021-03-302023-02-17联想(北京)有限公司Audio processing method and device and electronic equipment
CN113259762A (en)*2021-04-072021-08-13广州虎牙科技有限公司Audio processing method and device, electronic equipment and computer readable storage medium
CN113225574B (en)*2021-04-282023-01-20北京达佳互联信息技术有限公司Signal processing method and device
CN113225574A (en)*2021-04-282021-08-06北京达佳互联信息技术有限公司Signal processing method and device
WO2022237463A1 (en)*2021-05-132022-11-17北京字节跳动网络技术有限公司Livestreaming background sound processing method and apparatus, device, medium, and program product
CN113132794A (en)*2021-05-132021-07-16北京字节跳动网络技术有限公司Live background sound processing method, device, equipment, medium and program product
CN113286161A (en)*2021-05-192021-08-20广州虎牙科技有限公司Live broadcast method, device, equipment and storage medium
CN113542982A (en)*2021-06-282021-10-22瑞芯微电子股份有限公司Sound mixing method and storage medium
CN113539287A (en)*2021-06-282021-10-22瑞芯微电子股份有限公司Echo cancellation method and storage medium
CN113613143A (en)*2021-07-082021-11-05北京小唱科技有限公司Audio processing method and device suitable for mobile terminal and storage medium
CN113542977B (en)*2021-07-152023-06-09深圳软牛科技有限公司Method, device and related assembly for synthesizing sound card and microphone sound
CN114237542A (en)*2021-11-172022-03-25浪潮金融信息技术有限公司 A command-line-based high-quality audio streaming recording method, system and medium
CN115357209A (en)*2022-06-242022-11-18广州播丫科技有限公司 An audio synthesis method for multiple recordings of a live broadcast machine

Similar Documents

PublicationPublication DateTitle
CN109767777A (en) A kind of mixing method of live broadcast software
US20170293465A1 (en)Playback manager
US9858916B2 (en)Sound processing method and terminal device
US20150149173A1 (en)Controlling Voice Composition in a Conference
CN110827858B (en) Voice endpoint detection method and system
CN105404642B (en)Audio playing method and user terminal
WO2019071808A1 (en)Video image display method, apparatus and system, terminal device, and storage medium
CN110138650A (en)Sound quality optimization method, device and the equipment of instant messaging
CN110517708B (en)Audio processing method and device and computer storage medium
CN108124114A (en)A kind of audio/video conference sound collection method and device
CN109976697A (en) Method and apparatus, device, and computer-readable storage medium for acquiring audio data
CN111833883B (en) Voice control method, device, electronic device and storage medium
CN110086941B (en)Voice playing method and device and terminal equipment
CN111277697A (en) Audio processing method, device, storage medium and electronic device
CN113129909B (en) Single-microphone voice data processing method, device and computer storage medium
CN112565668B (en)Method for sharing sound in network conference
CN106506325A (en)Picture sharing method and device
CN102426838A (en)Voice signal processing method and user equipment
CN111796794B (en)Voice data processing method, system and virtual machine
CN103024710B (en)A kind of method of online broadcasting music
CN208094741U (en)A kind of intelligent microphone based on speech recognition technology
CN110149528A (en)A kind of process method for recording, device, system, electronic equipment and storage medium
CN113571032B (en)Audio data transmission method, device, computer equipment and storage medium
CN114979344A (en)Echo cancellation method, device, equipment and storage medium
CN109243413B (en) 3D sound effect processing method and related products

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20190517


[8]ページ先頭

©2009-2025 Movatter.jp