CN105657561A - System and method for realizing karaoke application - Google Patents

System and method for realizing karaoke application Download PDF

Info

Publication number
CN105657561A
CN105657561A CN201410627793.XA CN201410627793A CN105657561A CN 105657561 A CN105657561 A CN 105657561A CN 201410627793 A CN201410627793 A CN 201410627793A CN 105657561 A CN105657561 A CN 105657561A
Authority
CN
China
Prior art keywords
karaoke
audio
signal
equipment
module
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
CN201410627793.XA
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201410627793.XA priority Critical patent/CN105657561A/en
Publication of CN105657561A publication Critical patent/CN105657561A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a system and method for realizing a karaoke application, relating to the technical field of electronic communication. The system comprises karaoke equipment and an Android karaoke system platform, wherein the karaoke equipment is provided with a microphone MIC interface and a universal serial bus USB interface and used for obtaining a sound signal input through a MIC, synthesizing the sound signal with a karaoke accompaniment signal in the karaoke equipment to obtain a karaoke audio signal, and dividing the karaoke audio signal into two ways; the first karaoke audio signal is stored in the karaoke equipment; the second karaoke audio signal is output through a speaker of terminal equipment; and the Android karaoke system platform is arranged in the terminal equipment and used for obtaining the first karaoke audio signal stored in the karaoke equipment, and recording and scoring the first karaoke audio signal. Multiple functions are realized in the invention; and the realization effect is good.

Description

Realize the system and method for Karaoke application
Technical field
The present invention relates to electronic communication field, be specifically related to a kind of system that realizes Karaoke applicationAnd method.
Background technology
Karaoke is a kind of accompanying system, and user can participate in singing under the musical background of prerecording.Karaoke can make user's sound obtain beautifying and retouching by acoustic processing, when having with musical background againMachine in conjunction with time, just become the stereo song of one integrated mass. The accompaniment mode of Karaoke, gives userBringing great convenience with joyful, is a kind of usual way of people's amusement and recreation.
Tradition Karaoke needs professional karaoke equipment, and cost of equipment is high, and uses inconvenient.Along with the development of electronic communication, at present, can be at terminal devices such as television set, computer, mobile phonesUpper installation Karaoke application program, realizes Karaoke application.
But the existing terminal devices such as television set, computer, mobile phone that pass through are realized while playing Karaoka application,The function that can realize is few, and realizes weak effect.
Summary of the invention
Technical problem to be solved by this invention is existing by terminals such as television set, computer, mobile phonesWhen equipment is realized Karaoke application, the function that can realize is few, and realizes weak effect. In order to solve thisTechnical problem, the invention provides a kind of system and method for realizing Karaoke application, can realize companionPlay, record and the function such as marking, the function of realization is many; And there is special Karaoke hardware device,Realize effective.
In order to address the above problem, the invention provides a kind of system that realizes Karaoke application, described inSystem comprises:
Karaoke equipment, is provided with microphone MIC interface and general-purpose serial bus USB interface,Be connected with MIC, be connected with terminal device by described USB interface by described MIC interface,For obtaining the voice signal of inputting by described MIC, described voice signal and described Karaoke are establishedKaraoke accompaniment signal in standby synthesizes and obtains the audio signal of playing Karaoka, by described KaraokeAudio signal is divided into two tunnels, and first via Karaoke audio signal is stored in described karaoke equipment,The second tunnel Karaoke audio signal is by the loudspeaker speaker output of described terminal device;
Android Android karaoke OK system platform, is arranged in described terminal device, for obtainingState the first via Karaoke audio signal of storing in karaoke equipment, to described first via KaraokeAudio signal is recorded and is given a mark.
Preferably, in one embodiment of this invention, described karaoke equipment, is become USB flash disk by carry,Specifically for described first via Karaoke audio signal being stored in to the in.img of described karaoke equipmentIn file;
Correspondingly, described Android karaoke OK system platform comprises:
Sharing DLL module, for passing through the kernel of described Android karaoke OK system platformIn the large capacity storage agreement of USB from the in.img file of described karaoke equipment, read described firstRoad Karaoke audio signal;
Audio hardware abstraction layer module, described in obtaining that described sharing DLL module readsFirst via Karaoke audio signal, sends to audio sound-recording by described first via Karaoke audio signalModule;
Described audio sound-recording module, for receiving described first of described audio hardware abstraction layer module transmissionRoad Karaoke audio signal, records and gives a mark described first via Karaoke audio signal.
Preferably, in one embodiment of this invention, described Android karaoke OK system platform also wrapsDraw together:
Audio playing module, for obtaining audio frequency play signal from described terminal device, by described audio frequencyPlay signal sends to described audio hardware abstraction layer module;
Correspondingly, described audio hardware abstraction layer module, also sends for receiving described audio playing moduleDescribed audio frequency play signal, described audio frequency play signal is sent to described sharing DLL module;
Described sharing DLL module, also for receiving, described audio hardware abstraction layer module sendsDescribed audio frequency play signal is large by the USB in the kernel of described Android karaoke OK system platformCapacity storage agreement writes described audio frequency play signal in the out.img file of karaoke equipment.
Preferably, described Android karaoke OK system platform also comprises: senior Linux sound frameworkLibrary module;
Correspondingly, described audio hardware abstraction layer module, also for sending to described audio frequency play signalDescribed senior Linux sound framework library module;
Described senior Linux sound framework library module, sends out for receiving described audio hardware abstraction layer moduleThe described audio frequency play signal of sending, by the height in the kernel of described Android karaoke OK system platformLevel Linux sound framework driver AlsaDriver drives the loudspeaker speaker of described terminal device to broadcastPut described audio frequency play signal.
Preferably, in one embodiment of this invention, described Android karaoke OK system platform also wrapsDraw together:
Audio management module, for sending described Karaoke established to described audio hardware abstraction layer moduleFor carrying out initialized initialization directive;
Correspondingly, described audio hardware abstraction layer module, also sends for receiving described audio management moduleInitialization directive, described karaoke equipment is initialized.
Preferably, in one embodiment of this invention, described audio management module, specifically for send withKaraoke initiation parameter corresponding to described initialization directive arrives described audio hardware abstraction layer module;
Correspondingly, described audio hardware abstraction layer module, also initial specifically for receiving described KaraokeChange parameter, detect and whether have described karaoke equipment, if existed, described Karaoke is establishedStandby initialization, wherein, described initialization comprises switches audio path to described karaoke equipment,And the pick device that selects a sound be connected with the described MIC interface of described karaoke equipment described inMIC。
Preferably, in one embodiment of this invention, described audio management module, also for to described soundFrequently hardware abstraction layer module sends the regulating command of Karaoke accompaniment signal volume;
Correspondingly, described audio hardware abstraction layer module, also sends for receiving described audio management moduleThe regulating command of Karaoke accompaniment signal volume, the volume of described Karaoke accompaniment signal is adjustedJoint.
Preferably, in one embodiment of this invention, described audio management module, also specifically for to instituteState audio hardware abstraction layer module and send the card corresponding with the regulating command of described Karaoke accompaniment signal volumeDraw OK accompaniment signal volume to regulate parameter;
Correspondingly, described audio hardware abstraction layer module, also specifically for receiving described audio management moduleThe described Karaoke accompaniment signal volume sending regulates parameter, by the sound of described Karaoke accompaniment signalAmount is adjusted to described Karaoke accompaniment signal volume and regulates value corresponding to parameter.
The present invention, in order to address the above problem, the invention provides a kind of method that realizes Karaoke application,Described method comprises:
Karaoke equipment obtains the voice signal of inputting by microphone MIC, by described voice signal withKaraoke in described karaoke equipment accompaniment signal synthesizes and obtains the audio signal of playing Karaoka,Described Karaoke audio signal is divided into two tunnels, and first via Karaoke audio signal is stored in described cardDraw in OK equipment, the second tunnel Karaoke audio signal is by the loudspeaker speaker output of terminal device;Wherein, on described karaoke equipment, be provided with MIC interface and general-purpose serial bus USB interface, instituteState karaoke equipment and be connected, pass through described USB interface with described MIC by described MIC interfaceBe connected with described terminal device;
Android Android karaoke OK system platform obtains the first via of storing in described karaoke equipmentKaraoke audio signal, records and gives a mark described first via Karaoke audio signal; Wherein,Described Android Android karaoke OK system platform is arranged in described terminal device.
The system and method for realization provided by the invention Karaoke application, by be provided with MIC interface andThe karaoke equipment of USB interface, and be arranged on the Android karaoke OK system in terminal devicePlatform, realizes Karaoke application, can realize the functions such as accompaniment, recording and marking, the function of realizationMany; And there is special Karaoke hardware device, realize effective.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms one of the present inventionPoint, schematic description and description of the present invention is used for explaining the present invention, does not form of the present inventionImproper restriction. In the accompanying drawings:
A kind of system architecture schematic diagram of realizing Karaoke application that Fig. 1 provides for the embodiment of the present invention one;
A kind of system architecture schematic diagram of realizing Karaoke application that Fig. 2 provides for the embodiment of the present invention two;
A kind of system architecture schematic diagram of realizing Karaoke application that Fig. 3 provides for the embodiment of the present invention three;
A kind of system architecture schematic diagram of realizing Karaoke application that Fig. 4 provides for the embodiment of the present invention four;
A kind of system architecture schematic diagram of realizing Karaoke application that Fig. 5 provides for the embodiment of the present invention five;
A kind of method flow diagram of realizing Karaoke application that Fig. 6 provides for the embodiment of the present invention six.
Detailed description of the invention
Below will coordinate drawings and Examples to describe embodiments of the present invention in detail, by this to the present inventionThe implementation procedure how application technology means solve technical problem and reach technology effect can fully understand alsoImplement according to this.
Censure specific components as used some vocabulary in the middle of description and claim. This area skillArt personnel should understand, and hardware manufacturer may be called same assembly with different nouns. This explanationBook and claim are not used as distinguishing the mode of assembly with the difference of title, but with assembly in functionOn difference be used as distinguish criterion. As mentioned " bag in the middle of in description and claim in the whole textContaining " be an open language, therefore should be construed to " comprise but be not limited to ". " roughly " refer to receivableIn error range, those skilled in the art can solve the technical problem within the scope of certain error, baseOriginally reach described technique effect. In addition, " couple " word and comprise directly any and electrical coupling indirectly at thisCatcher section. Therefore, be coupled to one second device if describe a first device in literary composition, represent described firstDevice can directly be electrically coupled to described second device, by other devices or couple means indirectly electricityProperty be coupled to described second device. Description subsequent descriptions is for implementing preferred embodiments of the present invention, soDescribed description is to illustrate that rule of the present invention is object, not in order to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain non-Comprising of exclusiveness, thus make to comprise that the commodity of a series of key elements or system not only comprise those key elements,But also comprise other key elements of clearly not listing, or be also included as this commodity or system instituteIntrinsic key element. In the situation that there is no more restrictions, the key element being limited by statement " comprising ... ",And be not precluded within and comprise in the commodity of described key element or system and also have other identical element.
Embodiment mono-
Fig. 1 is the system that the embodiment of the present invention one realizes Karaoke application; As shown in Figure 1, it canSpecifically comprise:
Karaoke equipment 10, is provided with MIC (Microphone, microphone) interface 101 HesUSB (UniversalSerialBus, USB) interface 102, by MIC interface 101 withMIC is connected, is connected with terminal device by usb 1 02, defeated for obtaining by MICThe voice signal entering, closes the Karaoke accompaniment signal in voice signal and karaoke equipment 10Become to obtain the audio signal of playing Karaoka, Karaoke audio signal is divided into two tunnels, first via KaraokeAudio signal is stored in karaoke equipment, and the second tunnel Karaoke audio signal is by terminal deviceSpeaker (loudspeaker) output.
Wherein, one or more (as 2,3 etc.) MIC can be set on karaoke equipment 10Interface 101, one or more (as 2,3 etc.) usb 1 02, to MIC interface 101 HesThe quantity of usb 1 02 is not specifically limited, and can arrange according to practical application situation.
Wherein, terminal device can be television set, computer or mobile phone etc. By the speaker of terminal deviceBefore output, can be first PA (poweramplifier, power amplifier) by terminal device to OK a karaoke clubOK audio signal is amplified, and then exports by speaker.
Particularly, when user sings, reads aloud etc. by MIC, karaoke equipment 10 getsThe voice signal of inputting by MIC. Particularly, the accompaniment of the Karaoke in karaoke equipment 10 letterNumber can be pre-stored in karaoke equipment 10; Can be maybe that karaoke equipment 10 passes through USBAfter interface 102 is connected with terminal device, from terminal device, obtain etc.
Particularly, karaoke equipment 10 is connected with terminal device by usb 1 02, canHot plug, the usb 1 02 that passes through that also can be real-time carries out FW to karaoke equipment 10(Firmware, firmware) upgrading, conveniently does more optimization later. Wherein, karaoke equipment 10Can be by realizations such as Karaoke IC (IntegratedCircuit, integrated circuit).
Particularly, Karaoke audio signal Fen Er road (first via Karaoke audio signal and the second tunnelKaraoke audio signal, first via Karaoke audio signal and the second tunnel Karaoke audio signal areConsistent), the second tunnel Karaoke audio signal is directly exported by speaker, has ensured like this soundLow delay, can reach better Karaoke effect. The second tunnel Karaoke audio signal is by wholeThe path of the speaker output of end equipment is: karaoke equipment 10 passes through usb 1 02 by secondRoad Karaoke audio signal outputs to terminal device; Terminal device receives the second tunnel Karaoke audio frequencyAfter signal, the second tunnel Karaoke audio signal is sent to the speaker output of terminal device.
Android (Android) karaoke OK system platform 20, is arranged in terminal device, for obtainingThe first via Karaoke audio signal of storing in karaoke equipment, to first via Karaoke audio frequency letterNumber record and give a mark.
Wherein, Android karaoke OK system platform 20 is by Audio (audio frequency) frame of AndroidStructure is realized.
Particularly, Android karaoke OK system platform 20 carries out first via Karaoke audio signalThe process of recording and marking is that Android karaoke OK system platform 20 is by the first via audio frequency of playing KaraokaSignal is recorded on the memory of mobile terminal, and in recording process, according to default marking rule,First via Karaoke audio signal is given a mark. Wherein, default marking rule can be by firstTone, the tone color etc. of road Karaoke audio signal, with default reftone, carry out with reference to tone color etc.Relatively, according to comparative result, determine mark size. First via Karaoke audio signal is given a mark,Obtain the mark of first via Karaoke audio signal, make user can intuitively understand it and sing, give a lectureDeng level.
The system of the realization Karaoke application described in the present embodiment, by being provided with MIC interface 101 HesThe karaoke equipment 10 of usb 1 02, and be arranged on the Android OK a karaoke club in terminal deviceOK system platform 20, realizes Karaoke application, can realize the functions such as accompaniment, recording and marking,The function realizing is many; And there is special Karaoke hardware device, realize effective. Karaoke is establishedStandby 10 are connected with terminal device by usb 1 02, can hot plug, also can be real-time lead toCross usb 1 02 karaoke equipment 10 is carried out to FW upgrading, conveniently do more optimization later.By the audio signal Fen Er road output of playing Karaoka, directly export by speaker on a road, ensures like thisThe low delay of sound, can reach better Karaoke effect. By sound that the first via is played KaraokaFrequently signal is given a mark, and obtains the mark of first via Karaoke audio signal, makes the user can be directly perceivedUnderstand the level of its performance, speech etc.
Embodiment bis-
Fig. 2 is the system that the embodiment of the present invention two realizes Karaoke application; On the basis of embodiment mono-,Android karaoke OK system platform 20 in the embodiment of the present invention two comprises sharing DLL module201, audio hardware level of abstraction AudioHAL (HardwareAbstractionLayer, hardware abstraction layer)Module 202 and audio sound-recording module 203, as shown in Figure 2:
Karaoke equipment 10, is become USB flash disk by carry, specifically for audio signal that the first via is played KaraokaBe stored in the in.img file of karaoke equipment 10;
Correspondingly, Android karaoke OK system platform 20 comprises:
Sharing DLL module 201, for by Android karaoke OK system platform 20 inThe large capacity storage of USB (massstorage) agreement in core (kernel) is from karaoke equipment 10In.img file in read first via Karaoke audio signal;
Audio hardware level of abstraction AudioHAL (HardwareAbstractionLayer, hardware abstraction layer)Module 202, the first via Karaoke audio frequency reading for obtaining sharing DLL module 201Signal, sends to audio sound-recording module 203 by the first via audio signal of playing Karaoka;
Audio sound-recording module 203, the first an outpost of the tax office sending for audio reception hardware abstraction layer module 202Draw OK audio signal, first via Karaoke audio signal is recorded and given a mark.
Wherein, sharing DLL module 201 realizes by the So module of Android system.
Wherein, the large capacity storage agreement of USB is an agreement of USB flash disk transfer files, karaoke equipment10, become USB flash disk by carry, first via Karaoke audio signal is to transmit with the form of file.
The system of the realization Karaoke application described in the present embodiment, karaoke equipment 10 is become U by carryDish, is stored in the first via audio signal of playing Karaoka in the in.img file of karaoke equipment 10,Android karaoke OK system platform 20 can read from the in.img file of karaoke equipment 10First via Karaoke audio signal, convenient and swift when obtaining first via Karaoke audio signal.
Embodiment tri-
Fig. 3 is the system that the embodiment of the present invention three realizes Karaoke application; On the basis of embodiment bis-,As shown in Figure 3, Android karaoke OK system platform 20 also comprises:
Audio frequency is play (AudioTrack) module 204, plays letter for obtain audio frequency from terminal deviceNumber, audio frequency play signal is sent to audio hardware abstraction layer module 202;
Correspondingly, audio hardware abstraction layer module 202, also sends for audio reception playing module 204Audio frequency play signal, audio frequency play signal is sent to sharing DLL module 201;
Sharing DLL module 201, also sends for audio reception hardware abstraction layer module 202Audio frequency play signal, by the large capacity of USB in the kernel of Android karaoke OK system platform 20Storage protocol writes audio frequency play signal in the out.img file of karaoke equipment 10.
Particularly, can, according to practical application situation, obtain in advance audio frequency play signal from network etc.,Audio frequency play signal is stored in the memory of terminal device, in the time that needs are play, establishes from terminalIn standby memory, obtain audio frequency play signal.
Wherein, audio frequency play signal comprises: original signal or Karaoke accompaniment signal etc. If audio frequencyPlay signal is original signal, original signal is write in the out.img file of karaoke equipment 10;If audio frequency play signal is Karaoke accompaniment signal, Karaoke accompaniment signal is write to KaraokeIn the out.img file of equipment 10.
Particularly, after audio frequency play signal being write in the out.img file of karaoke equipment 10, cardDraw OK equipment 10 from out.img file, to obtain audio frequency play signal and apply, such as audio frequencyPlay signal is original signal, karaoke equipment 10 can be by original signal raising by terminal deviceSound device speaker output realizes plays; Such as audio frequency play signal is Karaoke accompaniment signal, block againDraw OK equipment 10 voice signal can be synthesized and obtains the sound of playing Karaoka with Karaoke accompaniment signalFrequently signal.
The system of the realization Karaoke application described in the present embodiment, Android karaoke OK system platform20 obtain audio frequency play signal from terminal device, and audio frequency play signal is write to karaoke equipment 10Out.img file in, facilitate karaoke equipment 10 to obtain audio frequency play signal and apply.
Embodiment tetra-
Fig. 4 is the system that the embodiment of the present invention four realizes Karaoke application; On the basis of embodiment tri-,As shown in Figure 4, Android karaoke OK system platform 20 also comprises: Alsa (AdvancedLinuxSoundArchitecture, senior Linux sound framework) Lib (storehouse) module 205;
Correspondingly, audio hardware abstraction layer module 202, also for sending to senior by audio frequency play signalLinux sound framework library module 205;
Senior Linux sound framework library module 205, for 202 of audio reception hardware abstraction layer modulesThe audio frequency play signal of sending, by the Alsa in the kernel of Android Android karaoke OK system platform 20Driver (driver) drives the loudspeaker speaker audio plays play signal of terminal device.
Wherein, audio frequency play signal comprises: original signal or Karaoke accompaniment signal etc. When audio frequency is broadcastWhen discharge signal is original signal, by the kernel of Android Android karaoke OK system platform 20AlsaDriver (driver) drives the loudspeaker speaker of terminal device to play original signal; Or work as soundFrequently when play signal is Karaoke accompaniment signal, by Android Android karaoke OK system platform 20Kernel in AlsaDriver (driver) drive terminal device loudspeaker speaker play OK a karaoke clubThe OK signal of accompanying.
The system of the realization Karaoke application described in the present embodiment, by Android, Android plays KaraokaAlsaDriver (driver) in the kernel of system platform 20 drives the loudspeaker speaker of terminal deviceAudio plays play signal, can realize the broadcasting of audio frequency play signal quickly and easily.
Embodiment five
Fig. 5 is the system that the embodiment of the present invention five realizes Karaoke application; On the basis of embodiment tetra-,As shown in Figure 5, Android karaoke OK system platform 20 also comprises:
Audio management module 206, establishes Karaoke for sending to audio hardware abstraction layer module 202Standby 10 carry out initialized initialization directive.
Correspondingly, audio hardware abstraction layer module 202, also sends for audio reception administration module 206Initialization directive, karaoke equipment 10 is initialized.
Particularly, audio management module 206, specifically for sending the Karaoke corresponding with initialization directiveInitiation parameter is to audio hardware abstraction layer module 206. When specific implementation, can be by callingAudioManager.setParameter function sends the Karaoke corresponding with initialization directive and initializes ginsengCount to audio hardware abstraction layer module 206. Wherein, Karaoke initiation parameter can pass throughThe form of " karaoke_dev_init=" represents, and " karaoke_dev_init=1 " can be set at the beginning of carrying outBeginningization or " karaoke_dev_init=0 ", for initializing etc., can carry out according to practical application situationArrange, this is not limited.
Particularly, " karaoke_dev_init=1 " is set for initializing in the present embodiment, audio frequency pipeReason module 206 is called AudioManager.setParameter () function, sends " karaoke_dev_init=1 "Parameter is to audio hardware abstraction layer module 202, and notification audio hardware abstraction layer module 202 is carried out and initializedOperation. Audio hardware abstraction layer module 202 receives after " karaoke_dev_init=1 " parameter, inspectionSurvey whether exist karaoke equipment 10 (particularly because karaoke equipment 10 is become USB flash disk by carry,Audio hardware abstraction layer module 202 can be by judging whether to exist USB flash disk to determine whether to exist OK a karaoke clubOK equipment 10), if existed, just karaoke equipment 10 is initialized and (initializes mainly bagDraw together and switch audio path (AudioPath) to karaoke equipment, and select a sound pick device forThe MIC that MIC interface 101 is connected), (switch audio path to OK a karaoke club if initialized successfullyOK equipment, and the pick device that selects a sound is the MIC success being connected with MIC interface 101),Karaoke equipment 10 will initialize mark (flag) and be set to 1, pass through when receivingThe initialization result inquiry that AudioManger.getParameter (" karaoke_dev_init=") parameter sendsAfter instruction, return to " karaoke_dev_init=1 " (representing to initialize successfully); If initialized unsuccessfully (Switch audio path to karaoke equipment, and the pick device that selects a sound is and MIC interface 101 phasesThe MIC failure connecting), karaoke equipment 10 will initialize mark (flag) and be set to 0, when connecingReceive the initialization sending by AudioManger.getParameter (" karaoke_dev_init=") parameterAfter result queries instruction, return to " karaoke_dev_init=0 " (representing to initialize unsuccessfully).
It should be noted that, the audio path of Karaoke accompaniment signal acquiescence is by Karaoke accompaniment letterNumber write the built-in Codec of terminal device CPU (Coder-Decoder, CODER-DECODER) the inside,And the audio path of Karaoke accompaniment signal will be switched to karaoke equipment after having initialized,Write in out.img file; May there are multiple sound-pickup devices in terminal device, if use OK a karaoke clubOK pattern, the pick device that selects a sound is the MIC being connected with MIC interface 101.
Wherein, audio management module 206, also for sending OK a karaoke club to audio hardware abstraction layer module 202The regulating command of OK accompaniment signal volume.
Correspondingly, audio hardware abstraction layer module 202, also sends for audio reception administration module 206The regulating command of Karaoke accompaniment signal volume, the volume of Karaoke accompaniment signal is regulated.
Wherein, audio management module 206 is specifically for sending and card to audio hardware abstraction layer module 202Draw Karaoke initiation parameter corresponding to OK accompaniment signal volume regulating command. Correspondingly, audio frequency is hardThe Karaoke that part abstraction layer module 203 sends specifically for audio reception administration module 206 initializes ginsengNumber is the value corresponding with Karaoke initiation parameter by the volume adjusting of Karaoke accompaniment signal
Particularly, Karaoke initiation parameter can pass through the form table of " karaoke_music_vol="Show, for example: the volume parameters that audio management module 206 is obtained Karaoke accompaniment signal is 50,Transmit " karaoke_music_vol=50 " to audio hardware abstraction layer module 202, audio hardware is taken outResembling layer module 202 is the value corresponding with " karaoke_music_vol=50 " by the volume adjusting of accompaniment signal.
The system of the realization Karaoke application described in the present embodiment, by Android karaoke OK systemPlatform 20 initializes karaoke equipment 10, makes karaoke equipment 10 can meet OK a karaoke clubThe needs of OK application, realize Karaoke application.
It should be noted that the sharing DLL mould that Android karaoke OK system platform 20 comprisesPiece 201, audio hardware abstraction layer module 202, audio sound-recording module 203, audio playing module 204,The modules such as senior Linux sound framework library module 205, audio management module 206 pass through AndroidOriginal API (ApplicationProgrammingInterface, application programming interface) realizes, sideJust the transplanting of third party's application, can support more Karaoke application.
Embodiment six
Fig. 6 is the method that the embodiment of the present invention six realizes Karaoke application; As shown in Figure 6, it is concreteCan comprise:
S301: karaoke equipment obtains the voice signal of inputting by microphone MIC, by voice signalSynthesize and obtain the audio signal of playing Karaoka with the Karaoke accompaniment signal in karaoke equipment, willKaraoke audio signal is divided into two tunnels, and first via Karaoke audio signal is stored in karaoke equipmentIn, the second tunnel Karaoke audio signal is by the loudspeaker speaker output of terminal device.
Wherein, on karaoke equipment, be provided with MIC interface and general-purpose serial bus USB interface, cardDraw OK equipment to be connected with MIC, to be connected with terminal device by USB interface by MIC interface.
Particularly, karaoke equipment is become USB flash disk by carry, the audio signal of the first via can being played KaraokaBe stored in the in.img file of karaoke equipment.
S302: Android Android karaoke OK system platform obtain in karaoke equipment, store firstRoad Karaoke audio signal, records and gives a mark first via Karaoke audio signal.
Wherein, Android Android karaoke OK system platform is arranged in terminal device.
When karaoke equipment is become USB flash disk by carry, the first via audio signal of playing Karaoka is stored in to OK a karaoke clubIn the in.img file of OK equipment time, Android karaoke OK system platform can be by Android cardThe large capacity storage agreement of USB in the kernel of karaoke system platform is from the in.img of karaoke equipmentIn file, read Karaoke audio signal.
Particularly, the karaoke equipment of the present embodiment, Android Android karaoke OK system platform itBetween annexation, and in karaoke equipment, Android Android karaoke OK system platform, institute wrapsIdentical with described in embodiment mono-to embodiment five arbitrary embodiment of the concrete structures such as the modular unit of drawing together.
The method of the realization Karaoke application described in the present embodiment, by karaoke equipment, Yi JishePut the Android karaoke OK system platform in terminal device, realize Karaoke application, Ke YishiNow accompany, record and the function such as marking, the function of realization is many; And having special Karaoke hardware establishesStandby, realize effective. By the audio signal Fen Er road output of playing Karaoka, speaker is directly passed through on a roadExport, ensured like this low delay of sound, can reach better Karaoke effect. By toOne tunnel Karaoke audio signal is given a mark, and obtains the mark of first via Karaoke audio signal, makesObtain the level that user can intuitively understand its performance, speech etc.
Above-mentioned explanation illustrates and has described some preferred embodiments of the present invention, but as previously mentioned, should manageSeparate the present invention and be not limited to disclosed form herein, should not regard the eliminating to other embodiment as,And can be used for various other combinations, amendment and environment, and can be in invention contemplated scope described herein,Technology or knowledge by above-mentioned instruction or association area are changed. Change and those skilled in the art carry outMoving and variation does not depart from the spirit and scope of the present invention, all should be in the protection of claims of the present inventionIn scope.

Claims (9)

1. a system that realizes Karaoke application, is characterized in that, described system comprises:
Karaoke equipment, is provided with microphone MIC interface and general-purpose serial bus USB interface, logicalCross described MIC interface and be connected with MIC, be connected with terminal device by described USB interface, useIn obtaining the voice signal of inputting by described MIC, by described voice signal and described karaoke equipmentIn Karaoke accompaniment signal synthesize and obtain the audio signal of playing Karaoka, by described Karaoke soundFrequently signal is divided into two tunnels, and first via Karaoke audio signal is stored in described karaoke equipment, theTwo tunnel Karaoke audio signals are by the loudspeaker speaker output of described terminal device;
Android Android karaoke OK system platform, is arranged in described terminal device, for obtainingState the first via Karaoke audio signal of storing in karaoke equipment, to described first via KaraokeAudio signal is recorded and is given a mark.
2. system according to claim 1, is characterized in that, described karaoke equipment is hungCarry into USB flash disk, establish specifically for described first via Karaoke audio signal is stored in to described KaraokeIn standby in.img file;
Correspondingly, described Android karaoke OK system platform comprises:
Sharing DLL module, for passing through the kernel of described Android karaoke OK system platformIn the large capacity storage agreement of USB from the in.img file of described karaoke equipment, read described firstRoad Karaoke audio signal;
Audio hardware abstraction layer module, described in obtaining that described sharing DLL module readsFirst via Karaoke audio signal, sends to audio sound-recording by described first via Karaoke audio signalModule;
Described audio sound-recording module, for receiving described first of described audio hardware abstraction layer module transmissionRoad Karaoke audio signal, records and gives a mark described first via Karaoke audio signal.
3. system according to claim 2, is characterized in that, described Android Karaoke isSystem platform also comprises:
Audio playing module, for obtaining audio frequency play signal from described terminal device, by described audio frequencyPlay signal sends to described audio hardware abstraction layer module;
Correspondingly, described audio hardware abstraction layer module, also sends for receiving described audio playing moduleDescribed audio frequency play signal, described audio frequency play signal is sent to described sharing DLL module;
Described sharing DLL module, also for receiving, described audio hardware abstraction layer module sendsDescribed audio frequency play signal is large by the USB in the kernel of described Android karaoke OK system platformCapacity storage agreement writes described audio frequency play signal in the out.img file of described karaoke equipment.
4. system according to claim 3, is characterized in that, described Android Karaoke isSystem platform also comprises: senior Linux sound framework library module;
Correspondingly, described audio hardware abstraction layer module, also for sending to described audio frequency play signalDescribed senior Linux sound framework library module;
Described senior Linux sound framework library module, sends out for receiving described audio hardware abstraction layer moduleThe described audio frequency play signal of sending, by the height in the kernel of described Android karaoke OK system platformLevel Linux sound framework driver AlsaDriver drives the loudspeaker speaker of described terminal device to broadcastPut described audio frequency play signal.
5. system according to claim 4, is characterized in that, described Android Karaoke isSystem platform also comprises:
Audio management module, for sending described Karaoke established to described audio hardware abstraction layer moduleFor carrying out initialized initialization directive;
Correspondingly, described audio hardware abstraction layer module, also sends for receiving described audio management moduleInitialization directive, described karaoke equipment is initialized.
6. system according to claim 5, is characterized in that, described audio management module is concreteAbstract to described audio hardware for sending the Karaoke initiation parameter corresponding with described initialization directiveLayer module;
Correspondingly, described audio hardware abstraction layer module, also initial specifically for receiving described KaraokeChange parameter, detect and whether have described karaoke equipment, if existed, described Karaoke is establishedStandby initialization, wherein, described initialization comprises switches audio path to described karaoke equipment,And the pick device that selects a sound be connected with the described MIC interface of described karaoke equipment described inMIC。
7. system according to claim 5, is characterized in that, described audio management module, also usesIn send the regulating command of Karaoke accompaniment signal volume to described audio hardware abstraction layer module;
Correspondingly, described audio hardware abstraction layer module, also sends for receiving described audio management moduleThe regulating command of Karaoke accompaniment signal volume, the volume of described Karaoke accompaniment signal is adjustedJoint.
8. system according to claim 7, is characterized in that, described audio management module, also toolBody regulates and refers to for sending to described audio hardware abstraction layer module with described Karaoke accompaniment signal volumeMake corresponding Karaoke accompaniment signal volume regulate parameter;
Correspondingly, described audio hardware abstraction layer module, also specifically for receiving described audio management moduleThe described Karaoke accompaniment signal volume sending regulates parameter, by the sound of described Karaoke accompaniment signalAmount is adjusted to described Karaoke accompaniment signal volume and regulates value corresponding to parameter.
9. a method that realizes Karaoke application, is characterized in that, described method comprises:
Karaoke equipment obtains the voice signal of inputting by microphone MIC, by described voice signal withKaraoke in described karaoke equipment accompaniment signal synthesizes and obtains the audio signal of playing Karaoka,Described Karaoke audio signal is divided into two tunnels, and first via Karaoke audio signal is stored in described cardDraw in OK equipment, the second tunnel Karaoke audio signal is by the loudspeaker speaker output of terminal device;Wherein, on described karaoke equipment, be provided with MIC interface and general-purpose serial bus USB interface, instituteState karaoke equipment and be connected, pass through described USB interface with described MIC by described MIC interfaceBe connected with described terminal device;
Android Android karaoke OK system platform obtains the first via of storing in described karaoke equipmentKaraoke audio signal, records and gives a mark described first via Karaoke audio signal; Wherein,Described Android Android karaoke OK system platform is arranged in described terminal device.
CN201410627793.XA 2014-11-10 2014-11-10 System and method for realizing karaoke application Pending CN105657561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410627793.XA CN105657561A (en) 2014-11-10 2014-11-10 System and method for realizing karaoke application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410627793.XA CN105657561A (en) 2014-11-10 2014-11-10 System and method for realizing karaoke application

Publications (1)

Publication Number Publication Date
CN105657561A true CN105657561A (en) 2016-06-08

Family

ID=56482841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410627793.XA Pending CN105657561A (en) 2014-11-10 2014-11-10 System and method for realizing karaoke application

Country Status (1)

Country Link
CN (1) CN105657561A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107516507A (en) * 2016-06-16 2017-12-26 咪咕音乐有限公司 A kind of audio synthetic method and device based on Android system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202190332U (en) * 2011-05-27 2012-04-11 源兴电子(泉州)有限公司 Television set with karaoke function
CN102497468A (en) * 2011-11-18 2012-06-13 上海华勤通讯技术有限公司 Cellphone and singing self-evaluating method
CN102830943A (en) * 2012-08-08 2012-12-19 深圳乐投卡尔科技有限公司 Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform
CN202617331U (en) * 2012-04-11 2012-12-19 上海渐华科技发展有限公司 Intelligent karaoke singing device provided with delay prevention module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202190332U (en) * 2011-05-27 2012-04-11 源兴电子(泉州)有限公司 Television set with karaoke function
CN102497468A (en) * 2011-11-18 2012-06-13 上海华勤通讯技术有限公司 Cellphone and singing self-evaluating method
CN202617331U (en) * 2012-04-11 2012-12-19 上海渐华科技发展有限公司 Intelligent karaoke singing device provided with delay prevention module
CN102830943A (en) * 2012-08-08 2012-12-19 深圳乐投卡尔科技有限公司 Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张孟东: "基于ANDROID的多媒体系统设计和实现", 《中国学术期刊(光盘版)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107516507A (en) * 2016-06-16 2017-12-26 咪咕音乐有限公司 A kind of audio synthetic method and device based on Android system

Similar Documents

Publication Publication Date Title
CN204559866U (en) Audio frequency apparatus
EP3267437B1 (en) Interactive peripheral device for television karaoke.
CN105208189B (en) Audio-frequency processing method and mobile terminal
CN105657562A (en) System and method for realizing karaoke application
JP2011100156A (en) Automatic playing and recording apparatus for acoustic/electric guitar
US8816182B2 (en) Digital audio connections for portable handheld computing devices
CN104157292A (en) Anti-howling audio signal processing method and device thereof
CN105654932B (en) System and method for realizing karaoke application
CN206991290U (en) A kind of external sound card
CN109785819B (en) Method for associating multiple microphones, storage medium, microphone and singing system
CN205320265U (en) External sound card controlling means
TWI480854B (en) Portable karaoke system, karaoke method and application program
CN106340288A (en) Multifunctional mini portable karaoke device
US20200167123A1 (en) Audio system for flexibly choreographing audio output
CN105657561A (en) System and method for realizing karaoke application
KR200417698Y1 (en) Mini Multi Karaoke
CN209912490U (en) Intelligent entertainment system with voice control
KR20130095389A (en) Real time music video system
CN206061042U (en) Mike
CN201910901U (en) Multifunctional karaoke earphone
CN205336497U (en) Multifunctional sound box
CN108628573A (en) A kind of method and apparatus for supporting polymorphic type audio signal to input
EP1942409A1 (en) Media connect device, and system using the same
JP6310769B2 (en) Program, karaoke device and karaoke system
CN211019199U (en) Intelligent voice multimedia player

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160608