Embodiment
Technological means and effect of taking for realizing predetermined goal of the invention for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The voice data player method that the embodiment of the present invention provides can be applicable in applied environment as shown in Figure 1, realizes the broadcasting to voice data.As shown in Figure 1, mobile terminal 100 and multimedia 200 are arranged in wireless network, and by this wireless network, mobile terminal 100 and multimedia equipment 200 carry out data interaction.
Wherein, mobile terminal can comprise: smart mobile phone, panel computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 4) player, pocket computer on knee, vehicle-mounted computer etc.
Multimedia equipment can comprise: intelligent TV set, broadcast receiver, video tape recorder, compact disc player, video disc player, Set Top Box etc.
Fig. 2 shows a kind of structured flowchart of mobile terminal.As shown in Figure 2, mobile terminal 100 comprises memory 102, storage control 104, one or more (only illustrating one in figure) processor 106, Peripheral Interface 108, radio-frequency module 110, locating module 112, photographing module 114, audio-frequency module 116, screen 118 and key-press module 120.These assemblies are by the mutual communication of one or more communication bus/holding wire 122.
Be appreciated that the structure shown in Fig. 2 is only signal, mobile terminal 100 also can comprise than assembly more shown in Fig. 2 or still less, or have and configurations different shown in Fig. 2.Each assembly shown in Fig. 2 can adopt hardware, software or its combination to realize.
Memory 102 can be used for storing software program and module, as the voice data player method in the embodiment of the present invention and install corresponding program command/module, processor 102 is stored in software program and the module in memory 104 by operation, thereby carry out various function application and data processing, realize above-mentioned voice data player method.
Memory 102 can comprise high speed random asccess memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 102 can further comprise the memory with respect to processor 106 long-range settings, and these remote memories can be connected to mobile terminal 100 by network.The example of above-mentioned network includes but not limited to the Internet, intranet, local area network (LAN), mobile radio communication and combination thereof.Processor 106 and other possible assemblies can carry out the access of memory 102 under the control of storage control 104.
Various softwares in processor 106 run memories 102, instruction are to carry out the various functions of mobile terminal 100 and to carry out data processing.
Peripheral Interface 108 is for being coupled to various external equipments CPU and memory 102.
In certain embodiments, storage control 104, processor 106 and Peripheral Interface 108 can be realized in one single chip.In some other example, they can be respectively realized by chip independently.
Radio-frequency module 110, for receiving and sending electromagnetic wave, is realized the mutual conversion of electromagnetic wave and the signal of telecommunication, thereby is carried out communication with communication network or other equipment.Radio-frequency module 110 can comprise various existing for carrying out the circuit element of these functions, for example, and antenna, radio-frequency (RF) transceiver, digital signal processor, encrypt/decrypt chip, subscriber identity module (SIM) card, memory etc.Radio-frequency module 110 can carry out communication or carry out communication by wireless network and other equipment as the Internet, intranet, wireless network with diverse network.Above-mentioned wireless network can comprise cellular telephone networks, WLAN (wireless local area network) or metropolitan area network.Above-mentioned wireless network can use various communication standards, agreement and technology, include, but are not limited to global system for mobile communications (Global System for MobileCommunication, GSM), enhancement mode mobile communication technology (Enhanced Data GSMEnvironment, EDGE), Wideband CDMA Technology (wideband code division multipleaccess, W-CDMA), CDMA (Code Division Multiple Access) (Code division access, CDMA), tdma (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (as the standard IEEE 802.11a of IEEE-USA, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), the networking telephone (Voice overinternet protocol, VoIP), worldwide interoperability for microwave access (Worldwide Interoperability forMicrowave Access, Wi-Max), other are for mail, the agreement of instant messaging and short message, and any other suitable communications protocol, even can comprise those current agreements being developed not yet.
Locating module 112 is for obtaining the current location of mobile terminal 100.The example of locating module 112 includes but not limited to GPS (Global Position System) (GPS), location technology based on WLAN (wireless local area network) or mobile radio communication.
Photographing module 114 is for taking pictures or video.Photo or the video taken can be stored in memory 102, and can send by radio-frequency module 110.
Audio-frequency module 116 provides audio interface to user, and it can comprise one or more microphones, one or more loud speaker and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 108, and voice data is converted to telecommunications breath, and telecommunications breath is transferred to loud speaker.Telecommunications breath is changed the sound wave that can hear into people's ear by loud speaker.Voicefrequency circuit also receives telecommunications breath from microphone, converts electrical signals to voice data, and by data transmission in network telephony in Peripheral Interface 108 to be further processed.Voice data can obtain from memory 102 or by radio-frequency module 110.In addition, voice data also can be stored in memory 102 or by radio-frequency module 110 and send.In some instances, audio-frequency module 116 also can comprise that an earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Screen 118 provides an output interface between mobile terminal 100 and user, and to the output of user's display video, the content of these video outputs can comprise word, figure, video and combination in any thereof.Some Output rusults are corresponding to some user interface object.Understandable, screen 118 can also provide an output and inputting interface between mobile terminal 100 and user simultaneously.Particularly, except to the output of user's display video, screen 118 also receives user's input, and such as user's the gesture operation such as click, slip, so that user interface object is made response to these users' input.The technology that detects user's input can be based on resistance-type, condenser type or other any possible touch control detection technology.The instantiation of screen 118 display units includes, but are not limited to liquid crystal display or light emitting polymer display.
The interface that key-press module 120 provides user to input to mobile terminal 100 equally, user can be by pressing different buttons so that mobile terminal 100 be carried out different functions.
The first embodiment
The flow chart of the voice data player method that Fig. 3 provides for first embodiment of the invention.As shown in Figure 3, the voice data player method that the present embodiment provides comprises the following steps:
Step S11, mobile terminal search and described mobile terminal are positioned at the multimedia equipment of same network, and mutually find with described multimedia equipment;
Mobile terminal 100 is searched the multimedia equipment 200 that is positioned at same network with mobile terminal 100, is also the multimedia equipment 200 under same gateway.Preferably, this network can be wireless fidelity network (WiFi).In other execution modes of the present embodiment, this network can be also the wireless network of other types, for example: blueteeth network.Mobile terminal 100 is found mutually with multimedia equipment 200, the namely protocol stack of mobile terminal 100 based on preset, the multimedia equipment 200 of all these protocol stacks of support in discovering network, correspondingly, multimedia equipment 200 is simultaneously also based on this protocol stack, the mobile terminal 100 of all these protocol stacks of support in discovering network.
Step S12, the notification instruction triggering according to user, from described multimedia equipment, determine target multimedia equipment, send a notification message to described target multimedia equipment, to notify described target multimedia equipment that the voice data of current broadcasting is sent to described mobile terminal; And
Step S13, receives the described voice data that described target multimedia equipment sends, and plays.
The voice data player method that the embodiment of the present invention provides, be positioned at the multimedia equipment of same network by mobile terminal search and mobile terminal, and mutually find with multimedia equipment, then the notification instruction triggering according to user, from the multimedia equipment of finding, determine target multimedia equipment, and send a notification message to this target multimedia equipment, to notify this target multimedia equipment that the voice data of current broadcasting is sent to mobile terminal, finally receive the voice data that this target multimedia equipment sends, and play, can realize the voice data in multimedia equipment is play by multiple mobile terminals simultaneously, and can solve in prior art wireless headset because limit by frequency range and power, cannot grow the problem that distance is used, thereby can improve convenience and playing efficiency that voice data is play.
The second embodiment
The flow chart of the voice data player method that Fig. 4 provides for second embodiment of the invention.As shown in Figure 4, the voice data player method that the present embodiment provides comprises the following steps:
Step S21, mobile terminal search and described mobile terminal are positioned at the multimedia equipment of same network, mutually find by mode and the described multimedia equipment of general plug-and-play protocol stack;
In the present embodiment, in the mixed-media network modules mixed-media of mobile terminal 100 and multimedia equipment 200, dispose general plug-and-play protocol stack.Does is UPnP (Universal Plug and Play, UPnP) by UPnP Forum (UPnP? Forum) a set of procotol proposing.The target of this agreement is the various device seamless link mutually making in home network (data sharing, communications and entertainment) and company's network, and simplifies the realization of network of relation.UPnP is a kind of international standard, based on multicasting technology and HTML (Hypertext Markup Language) (Hypertext transfer protocol, HTTP) technology, realizes this goal by the UPnP device control protocol that defines and issue based on opening, internet communication network consensus standard.
Mobile terminal 100 can pass through UPnP protocol stack with multimedia equipment 200, realizes mutually and finding, according to finding result, generates the list of the multimedia equipment 200 of the supported UPnP agreement of finding, and shows.Particularly, the discovery based on UPnP protocol stack can comprise two kinds of situations: one is mobile terminal 100 after getting the request of control, searches and have or not corresponding available devices (supporting the multimedia equipment 200 of UPnP protocol stack) in current network; Another kind of situation be multimedia equipment 200 at access network, obtain IP address after, just start oneself to have entered network to network " broadcast ", find to control and ask.
In other execution modes of the present embodiment, mutual discovery between mobile terminal 100 and multimedia equipment 200, also can be based on Bonjour (zero configuration networking) agreement, or other self-defining multicast protocols, self-defining TCP/IP (Transmission Control Protocol/Internet Protocol, transmission control protocol/Internet Interconnection agreement) data communication agreement, or other stream media protocols are realized.
Step S22, the notification instruction triggering according to user is determined target multimedia equipment from described multimedia equipment, sends the POST message of HTML (Hypertext Markup Language) to described target multimedia equipment;
The rule of communication mutually that HTML (Hypertext Markup Language) (Hypertext transfer protocol, HTTP) has been a kind of specified in more detail between browser and Web server, transmits the data transfer protocol of web documents by internet.POST is an important component part in http protocol, is generally used for sending request to destination, and with request entity.
Particularly, mobile terminal 100 can receive the notification instruction that user triggers for the list of the multimedia equipment 200 showing on mobile terminal 100, obtain the multimedia equipment that this notification instruction is pointed to, and set it as target multimedia equipment, then send HTTP POST message to this target multimedia equipment, to notify this target multimedia equipment that the voice data of current broadcasting is sent to mobile terminal 100.
Step S23, receives the described voice data that described target multimedia equipment sends;
The form of voice data preferably can be pulse code modulation (Pulse-code modulation, PCM) form.Pulse code modulation (Pulse-code modulation, PCM) is a kind of number method of analog signal.PCM is divided into several sections by the intensity of signal according to same spacing, then uses unique digital mark (normally binary system) to quantize.PCM is often used on digital telecommunication system, is also the canonical form in computer and CD Red Data Book (CD-Digital Audio Red Book).
Particularly, the HTTP POST message that target multimedia equipment mobile terminal receive 100 sends, according to this HTTP POST message, obtains the voice data of current broadcasting in target multimedia equipment, and this voice data is sent to mobile terminal 100.
Because mobile terminal 100 can be play-overed the voice data of PCM form, the universality of playing for improving voice data, target multimedia equipment can be before sending voice data, the voice data obtaining is converted to the voice data of PCM form, so just make mobile terminal 100 can not be subject to the restriction of broadcast format, also can play the voice data from target multimedia equipment even without decoding capability, and have advantages of that Time Delay of Systems is short, real-time good.
Understandably, target multimedia equipment also can be according to presetting rule, after voice data being converted to the voice data of other given formats, send to mobile terminal 100, for example: in order to reduce volume of transmitted data, improve transmission speed, voice data can be converted to the voice data of MP3 (Moving PictureExperts Group Audio Layer III, the dynamic image expert compression standard audio frequency aspect 3) form of small volume; Or target multimedia equipment also can obtain the device type of mobile terminal 100, then according to the device type of the mobile terminal 100 that obtains, send to mobile terminal 100 after voice data being converted to the voice data of mobile terminal 100 supported data formats.
Step S24, judges whether the form of described voice data is pcm format;
If the form of described voice data is described pcm format, perform step S25: detect whether there is mobile terminal described in external played equipment access;
External played equipment can comprise: earphone, headset, audio amplifier etc.
If so, perform step S26: by voice data described in described external played device plays;
Particularly, if testing result is for there being external played equipment access mobile terminal, mobile terminal 100, by the audio data transmission receiving to the data-interface of this external played equipment, is exported this voice data by this external played equipment.
If not, perform step S27: by the loudspeaker playing audio data of described mobile terminal;
Particularly, if testing result is not for there is no mobile terminal described in external played equipment access, mobile terminal 100 by the audio data transmission receiving the data-interface to the loudspeaker of mobile terminal 100, by these loudspeaker, this voice data is exported.
If the form of described voice data is not described pcm format, perform step S28: obtain the decoder corresponding to form of described voice data, by the described decoder described voice data of decoding, and perform step S25.
Particularly, if judged result is the form of the voice data of reception is not PCM form, mobile terminal 100 can obtain the data format of this voice data, according to the local decoding plug-in of installing of this data format inquiry, obtain the decoding plug-in corresponding with this data format, and by this decoding plug-in, this voice data is decoded.Understandable, if the decoding plug-in that this data format is corresponding is not installed in mobile terminal 100 this locality, the download instruction that mobile terminal 100 can trigger according to preset download rule or user, download by the webserver decoding plug-in that this data format is corresponding, and install, then by this decoding plug-in, this voice data is decoded.
The voice data player method that the embodiment of the present invention provides, be positioned at the multimedia equipment of same network by mobile terminal search and mobile terminal, and mutually find with multimedia equipment, then the notification instruction triggering according to user, from the multimedia equipment of finding, determine target multimedia equipment, and send a notification message to this target multimedia equipment, to notify this target multimedia equipment that the voice data of current broadcasting is sent to mobile terminal, finally receive the voice data that this target multimedia equipment sends, and play, can realize the voice data in multimedia equipment is play by multiple mobile terminals simultaneously, and can solve in prior art wireless headset because limit by frequency range and power, cannot grow the problem that distance is used, thereby can improve convenience and playing efficiency that voice data is play.
The 3rd embodiment
The structural representation of the voice data playing device that Fig. 5 provides for third embodiment of the invention.The voice data playing device that the present embodiment provides can run in mobile terminal 100, for the voice data player method of above-described embodiment.As shown in Figure 5, voice data playing device 30 comprises: find module 31, notification module 32 and playing module 33.
Wherein, find module 31, for searching the multimedia equipment that is positioned at same network with described mobile terminal, mutually find with described multimedia equipment;
Notification module 32, for the notification instruction triggering according to user, from described multimedia equipment, determine target multimedia equipment, send a notification message to described target multimedia equipment, to notify described target multimedia equipment that the voice data of current broadcasting is sent to described mobile terminal; And
Playing module 33, the described voice data sending for receiving described target multimedia equipment, and play.
Each module can be by software code realization above, and now, above-mentioned each module can be stored in memory 102, as shown in Figure 6.Each module can be realized by for example integrated circuit (IC) chip of hardware equally above.
The present embodiment, to each Implement of Function Module of voice data playing device 30 detailed process of function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 4, repeats no more herein.
The voice data playing device that the embodiment of the present invention provides, by searching the multimedia equipment that is positioned at same network with mobile terminal, and mutually find with multimedia equipment, then the notification instruction triggering according to user, from the multimedia equipment of finding, determine target multimedia equipment, and send a notification message to this target multimedia equipment, to notify this target multimedia equipment that the voice data of current broadcasting is sent to mobile terminal, finally receive the voice data that this target multimedia equipment sends, and play, can realize the voice data in multimedia equipment is play by multiple mobile terminals simultaneously, and can solve in prior art wireless headset because limit by frequency range and power, cannot grow the problem that distance is used, thereby can improve convenience and playing efficiency that voice data is play.
The 4th embodiment
The structural representation of the voice data playing device that Fig. 7 provides for fourth embodiment of the invention.The voice data playing device that the present embodiment provides can run on mobile terminal 100, for the voice data player method of above-described embodiment.As shown in Figure 7, voice data playing device 40 comprises: find module 41, notification module 42 and playing module 43.
Wherein, find module 41, for searching the multimedia equipment that is positioned at same network with described mobile terminal, mutually find with described multimedia equipment;
Notification module 42, for the notification instruction triggering according to user, from described multimedia equipment, determine target multimedia equipment, send a notification message to described target multimedia equipment, to notify described target multimedia equipment that the voice data of current broadcasting is sent to described mobile terminal; And
Playing module 43, the described voice data sending for receiving described target multimedia equipment, and play.
Preferably, described discovery module 41, comprising: find unit 411, mutually find for the mode by general plug-and-play protocol stack and described multimedia equipment.
Preferably, described notification module 42, comprising: notification unit 421, and for send the POST message of HTML (Hypertext Markup Language) to described target multimedia equipment.
Preferably, the form of described voice data comprises: pcm format, as shown in Figure 8, described playing module 43, comprising: judging unit 431, the first broadcast unit 432, the second broadcast unit 433, detecting unit 434, the 3rd broadcast unit 435 and the 4th broadcast unit 436.Wherein, whether judging unit 431, be described pcm format for the form that judges described voice data; The first broadcast unit 432, if be yes for the judged result of described judging unit 431, playing audio data; The second broadcast unit 433, if be no for the judged result of described judging unit 431, obtains the decoder corresponding to form of described voice data, by the described decoder described voice data of decoding, and plays; Detecting unit 434, for detection of whether there being mobile terminal described in external played equipment access; The 3rd broadcast unit 435, if be yes for the testing result of described detecting unit 434, by voice data described in described external played device plays; And the 4th broadcast unit 436, if be no for the testing result of described detecting unit 434, by the loudspeaker playing audio data of described mobile terminal.
Preferably, described network comprises: wireless fidelity network or blueteeth network.
The present embodiment, to each Implement of Function Module of voice data playing device 40 detailed process of function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 4, repeats no more herein.
The voice data playing device that the embodiment of the present invention provides, by searching the multimedia equipment that is positioned at same network with mobile terminal, and mutually find with multimedia equipment, then the notification instruction triggering according to user, from the multimedia equipment of finding, determine target multimedia equipment, and send a notification message to this target multimedia equipment, to notify this target multimedia equipment that the voice data of current broadcasting is sent to mobile terminal, finally receive the voice data that this target multimedia equipment sends, and play, can realize the voice data in multimedia equipment is play by multiple mobile terminals simultaneously, and can solve in prior art wireless headset because limit by frequency range and power, cannot grow the problem that distance is used, thereby can improve convenience and playing efficiency that voice data is play.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the device that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or device.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the device that comprises key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, but not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any simple modification of above embodiment being done according to technical spirit of the present invention, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.