CN102467909A - Network sound mixing method - Google Patents

Network sound mixing method Download PDF

Info

Publication number
CN102467909A
CN102467909A CN2010105488403A CN201010548840A CN102467909A CN 102467909 A CN102467909 A CN 102467909A CN 2010105488403 A CN2010105488403 A CN 2010105488403A CN 201010548840 A CN201010548840 A CN 201010548840A CN 102467909 A CN102467909 A CN 102467909A
Authority
CN
China
Prior art keywords
sound
software
mixing
voice
sound card
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
CN2010105488403A
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.)
Hangzhou Bianfeng Network Technology Co., Ltd.
Original Assignee
Shengle Information Technolpogy Shanghai 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 Shengle Information Technolpogy Shanghai Co Ltd filed Critical Shengle Information Technolpogy Shanghai Co Ltd
Priority to CN2010105488403A priority Critical patent/CN102467909A/en
Publication of CN102467909A publication Critical patent/CN102467909A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a network sound mixing method, which comprises the following steps: 1. invoking a system application program interface (API) function, analyzing sound card characteristics, and detecting whether the input option of the sound card has a stereo sound mixing option; 2. mixing the sound of accompaniment with voice; for the sound card with the stereo sound mixing option, adopting a hardware sound mixing method; and for the sound card without the stereo sound mixing option, adopting a software sound mixing method. In the network sound mixing method, different sound mixing methods are adopted by aiming at different sound cards, and the network sound mixing method is suitable for various types of sound cards to realize the function of a network karaoke so as to satisfy any harsh requirements of users.

Description

The network sound mixing method
Technical field
The present invention relates to a kind of network multimedia amusing method, be specifically related to a kind of network sound mixing method.
Background technology
Along with networks development, the user is more and more stronger to the demand of network multimedia amusement.Traditional entertainment way is like Karaoke, and expense is higher, and the number of participating in simultaneously is limited, is difficult to satisfy popular demand.Though most network entertainment software provides the network karaoke function, because at the WINDOWS platform, Microsoft does not formulate unified sound card and drives standard, the interface that some specific sound card is opened Kara OK function is very obscure; And partly integrated HD sound card is not supported Kara OK function, and therefore existing multi-person speech software is supported very imperfection of Kara OK function.Need the user manually to select the hardware audio mixing to play Karaoka and play Karaoka with the software audio mixing, under the unsupported situation of hardware, can't accomplish Kara OK function.For part voice entertainment software, the player software of soft audio mixing is that voice software is built-in, does not support the main flow player such as player software such as KuGoo, QQ music, can not satisfy user's demand.
Summary of the invention
Technical matters to be solved by this invention provides a kind of network sound mixing method, and it can use various types of sound cards to realize the network karaoke function.
For solving the problems of the technologies described above, the technical solution of network sound mixing method of the present invention does, may further comprise the steps:
Step 1, the calling system api function, whether the characteristic of analysis sound card has stereo-mixing or identity function option in the input option of inspection sound card;
Step 2 will be accompanied and voice carries out audio mixing, for the sound card that the stereo-mixing option is arranged, adopt the hardware sound mixing method; For the sound card of no stereo-mixing option, adopt the software sound mixing method.
The hardware sound mixing method that adopts is:
The first step is provided with sound card, gets into hardware audio mixing pattern;
Second step, the audio mixing operation; The start-up system media-player software; Sound card is gathered the voice data that comes from microphone simultaneously, and the voice data that comes from system's media player; Sound card will come from the voice data of microphone and the voice data of system's media player carries out the audio mixing processing, send Talk Client voice software to, realize the network karaoke function.
The software sound mixing method that adopts is:
The first step, the registration table of analysis user system is found out user's default player software;
Second step started default player software, loaded HOOK DLL at the default player software process simultaneously; HOOK DLL follows the tracks of system's api function of default player software transfer, obtains the pcm audio data that player software is play, and sends Talk Client voice software to through Inter-Process Communication; Simultaneously, the sound card collection comes from the voice data of microphone, and sends Talk Client voice software to; The voice data that the TalkClient voice software the obtains player software line data of going forward side by side is handled; Talk Client voice software carries out the audio mixing processing with the voice data of treated player software with the voice data that comes from microphone, realizes the network karaoke function.
Talk Client voice software to the method that the voice data of player software carries out data processing is: for the pcm audio data of player and user's sampling rate condition of different, resample; Perhaps adjust channel number.
The technique effect that the present invention can reach is:
The present invention is directed to different sound cards and adopt different sound mixing methods,, realize the network karaoke function, to satisfy the demand of any harshness of user applicable to various types of sound cards.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed explanation:
Fig. 1 supports the sound card of Kara OK function to regulate the synoptic diagram of tab;
Fig. 2 does not support the sound card of Kara OK function to regulate the synoptic diagram of tab;
Fig. 3 is the process flow diagram that adopts the hardware sound mixing method to play Karaoka;
Fig. 4 is the process flow diagram that adopts the software sound mixing method to play Karaoka.
Embodiment
Network sound mixing method of the present invention may further comprise the steps:
Step 1, calling system API (Application Programming Interface, API) function, whether the characteristic of analysis sound card has stereo-mixing or identity function option in the input option of inspection sound card;
Be about to sound card and be divided into two kinds, a kind of such sound card is supported Kara OK function in order the sound card of stereo-mixing option to be arranged, and another kind ofly be that the sound card of no stereo-mixing option, such sound card do not support Kara OK function perhaps to support the Kara OK function defectiveness;
The input end of sound card has various input patterns, and according to the condition code analysis, the sound card that condition code is arranged is with regard to the support hardware audio mixing;
Step 2 will be accompanied and voice carries out audio mixing, for the sound card that the stereo-mixing option is arranged, adopt the hardware sound mixing method; For the sound card of no stereo-mixing option, adopt the software sound mixing method.
(1) for the sound card that the stereo-mixing option is arranged, this sound card possesses the function of resampling, adjustment sample bits, sound channel conversion, stereo-mixing, and sound card is set, and gets into hardware audio mixing pattern;
The method that sound card is set is as shown in Figure 1, selects microphone volume control, and the mute microphone (MIC) mute function promptly uses the stereo-mixing function of sound card, gets into karaoke mode;
The audio mixing operation:
As shown in Figure 3, the start-up system media-player software; Sound card is gathered the voice data (voice) that comes from microphone simultaneously, and the voice data (accompaniment) that comes from system's media player; Sound card will come from the voice data of microphone and the voice data of system's media player carries out the audio mixing processing, send the TalkClient voice software to, realize the network karaoke function.
(2) for the sound card of no stereo-mixing option, the adjusting tab of this sound card is as shown in Figure 2, no hardware audio mixing pattern, and the registration table of analysis user system is found out user's default player software; Start default player software, load HOOK DLL (hook dynamic base) at the default player software process simultaneously; HOOKDLL follows the tracks of system's api function of default player software transfer; Obtain PCM (the Pulse Code Modulation that player software is play; Pulse-code modulation recording) voice data, and send Talk Client voice software to through Inter-Process Communication; Talk Client voice software possesses the function of resampling, adjustment sample bits, sound channel conversion, stereo-mixing, and Talk Client voice software is a prior art, does not do at this and gives unnecessary details;
Meanwhile, the sound card collection comes from the voice data of microphone, and sends Talk Client voice software to;
Talk Client voice software obtains the data line data of going forward side by side and handles, if the pcm audio data of player and user's sampling rate is different then resample, also can adjust channel number; Talk Client voice software carries out audio mixing with treated voice data and the voice data that comes from microphone to be handled, and encoding at last sends, and realizes the network karaoke function, as shown in Figure 4.
Adopt the present invention to realize that the embodiment of network karaoke function is following:
The sound card of user A has the stereo-mixing option, and the support hardware audio mixing is as shown in Figure 1, regulates the output of tab at sound card, and stereo-mixing option (, the sound that can with other noun such as you hear or the like different according to sound card) is arranged; User A clicks the Karaoke button, and program is chosen stereo-mixing through the calling system api function, starts player software; After the sound of the sound of player software and user's microphone was all gathered by Talk Client voice software, encoding sent to the take over party, plays Karaoka.
The sound card of user B does not have the stereo-mixing option, and the support hardware audio mixing is not as shown in Figure 2, regulates the output of tab at sound card, no stereo-mixing option (according to the sound card difference, the sound that can hear such as you with other noun or the like); User B clicks the Karaoke button, and Talk Client voice software starts player, when starting player, loads the pcm audio data that Hook DLL obtains player; The TalkClient voice software gets access to and carries out audio mixing with the data of microphone after the pcm audio data of player and handle, and realizes Kara OK function.

Claims (4)

1. a network sound mixing method is characterized in that, may further comprise the steps:
Step 1, the calling system api function, whether the characteristic of analysis sound card has the stereo-mixing option in the input option of inspection sound card;
Step 2 will be accompanied and voice carries out audio mixing, for the sound card that the stereo-mixing option is arranged, adopt the hardware sound mixing method; For the sound card of no stereo-mixing option, adopt the software sound mixing method.
2. network sound mixing method according to claim 1 is characterized in that: the hardware sound mixing method that said step 2 adopts is:
The first step is provided with sound card, gets into hardware audio mixing pattern;
Second step, the audio mixing operation; The start-up system media-player software; Sound card is gathered the voice data that comes from microphone simultaneously, and the voice data that comes from system's media player; Sound card will come from the voice data of microphone and the voice data of system's media player carries out the audio mixing processing, send Talk Client voice software to, realize the network karaoke function.
3. network sound mixing method according to claim 1 is characterized in that: the software sound mixing method that said step 2 adopts is:
The first step, the registration table of analysis user system is found out user's default player software;
Second step started default player software, loaded HOOK DLL at the default player software process simultaneously; HOOK DLL follows the tracks of system's api function of default player software transfer, obtains the pcm audio data that player software is play, and sends Talk Client voice software to through Inter-Process Communication; Simultaneously, the sound card collection comes from the voice data of microphone, and sends Talk Client voice software to; The voice data that the TalkClient voice software the obtains player software line data of going forward side by side is handled; Talk Client voice software carries out the audio mixing processing with the voice data of treated player software with the voice data that comes from microphone, realizes the network karaoke function.
4. network sound mixing method according to claim 3; It is characterized in that: the said second step TalkClient voice software to the method that the voice data of player software carries out data processing is: for the pcm audio data of player and user's sampling rate condition of different, resample; Perhaps adjust channel number.
CN2010105488403A 2010-11-18 2010-11-18 Network sound mixing method Pending CN102467909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105488403A CN102467909A (en) 2010-11-18 2010-11-18 Network sound mixing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105488403A CN102467909A (en) 2010-11-18 2010-11-18 Network sound mixing method

Publications (1)

Publication Number Publication Date
CN102467909A true CN102467909A (en) 2012-05-23

Family

ID=46071467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105488403A Pending CN102467909A (en) 2010-11-18 2010-11-18 Network sound mixing method

Country Status (1)

Country Link
CN (1) CN102467909A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932567A (en) * 2012-11-19 2013-02-13 东莞宇龙通信科技有限公司 Terminal and audio processing method
CN103198826A (en) * 2013-03-29 2013-07-10 贵阳朗玛信息技术股份有限公司 Accompany method and accompany device of audio chatting room
CN104392744A (en) * 2014-08-27 2015-03-04 贵阳朗玛信息技术股份有限公司 Method and apparatus for recording voice frequency
CN108111474A (en) * 2016-11-25 2018-06-01 北京视联动力国际信息技术有限公司 A kind of sound mixing method and device
CN109375892A (en) * 2018-10-12 2019-02-22 北京微播视界科技有限公司 Method and apparatus for playing audio

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0770983A1 (en) * 1995-10-23 1997-05-02 Yamaha Corporation Sound generation method using hardware and software sound sources
EP1087372A2 (en) * 1996-08-30 2001-03-28 Yamaha Corporation Sound source system based on computer software and method of generating acoustic data
CN101165772A (en) * 2006-10-18 2008-04-23 安凯(广州)软件技术有限公司 Method for expanding synthesizer tone
CN101599285A (en) * 2009-07-02 2009-12-09 深圳市万兴软件有限公司 A kind of audio recording method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0770983A1 (en) * 1995-10-23 1997-05-02 Yamaha Corporation Sound generation method using hardware and software sound sources
EP1087372A2 (en) * 1996-08-30 2001-03-28 Yamaha Corporation Sound source system based on computer software and method of generating acoustic data
CN101165772A (en) * 2006-10-18 2008-04-23 安凯(广州)软件技术有限公司 Method for expanding synthesizer tone
CN101599285A (en) * 2009-07-02 2009-12-09 深圳市万兴软件有限公司 A kind of audio recording method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马云升等: "VC++下声卡低层音频服务的编程技术", 《计算机应用》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932567A (en) * 2012-11-19 2013-02-13 东莞宇龙通信科技有限公司 Terminal and audio processing method
CN102932567B (en) * 2012-11-19 2015-05-13 东莞宇龙通信科技有限公司 Terminal and audio processing method
CN103198826A (en) * 2013-03-29 2013-07-10 贵阳朗玛信息技术股份有限公司 Accompany method and accompany device of audio chatting room
CN104392744A (en) * 2014-08-27 2015-03-04 贵阳朗玛信息技术股份有限公司 Method and apparatus for recording voice frequency
CN108111474A (en) * 2016-11-25 2018-06-01 北京视联动力国际信息技术有限公司 A kind of sound mixing method and device
CN109375892A (en) * 2018-10-12 2019-02-22 北京微播视界科技有限公司 Method and apparatus for playing audio
CN109375892B (en) * 2018-10-12 2021-12-07 北京微播视界科技有限公司 Method and apparatus for playing audio

Similar Documents

Publication Publication Date Title
CN104392712B (en) A kind of method and device for realizing Kara OK function
KR101442312B1 (en) Open architecture based domain dependent real time multi-lingual communication service
US20170127145A1 (en) System and method for using multiple audio input devices for synchronized and position-based audio
CN102932567B (en) Terminal and audio processing method
CN105208189B (en) Audio-frequency processing method and mobile terminal
CN102467909A (en) Network sound mixing method
CN106210943A (en) A kind of wireless K sings microphone
CN105280212A (en) Audio mixing and playing method and device
CN108141498A (en) A kind of interpretation method and terminal
CN109144464A (en) A kind of method, apparatus and Android device of audio output
WO2018152679A1 (en) Audio file transmitting method and apparatus, audio file receiving method and apparatus, devices and system
CN102568513A (en) Audio data processing method and interacting method
CN108446027A (en) The control system and its control method of a kind of multiple virtual roles interactive performance simultaneously
US20150304375A1 (en) Method and system for coordinating the reproduction of user selected audio or video content during a telephone call
CN107911361A (en) Support voice management method, apparatus, terminal device and the storage medium of more sessions
US7395208B2 (en) Integrating external voices
CN101184061B (en) Prompting method, device and instant communication terminal in instant communication
CN108510997A (en) Electronic equipment and echo cancel method applied to electronic equipment
TW200738310A (en) Communication game system, communication game control method, and information recording medium
CN105989824A (en) Karaoke system of mobile device and mobile device
CN110767203B (en) Audio processing method and device, mobile terminal and storage medium
US20130137480A1 (en) Background sound removal for privacy and personalization use
CN113225574B (en) Signal processing method and device
CN113192526B (en) Audio processing method and audio processing device
CN101247558A (en) Method and system for implementing incremental value service for converting words note to voice telephone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: HANGZHOU BIANFENG NETWORK TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SHENGYUE INFORMATION TECHNOLOGY (SHANGHAI) CO., LTD.

Effective date: 20130531

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 201203 PUDONG NEW AREA, SHANGHAI TO: 313200 HANGZHOU, ZHEJIANG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20130531

Address after: 313200 C building B, 2f, Paradise Software Park, 3 West Road, Hangzhou, Zhejiang, Xihu District

Applicant after: Hangzhou Bianfeng Network Technology Co., Ltd.

Address before: Shanghai city Pudong New Area 201203 GuoShouJing Road No. 356

Applicant before: Shengle Information Technology (Shanghai) Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120523