Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The schematic flow sheet of the player method of the audio signal that Fig. 1 provides for the embodiment of the invention one, as shown in Figure 1, the player method of the audio signal of the present embodiment can may further comprise the steps:
The first audio signal that step 101, mobile terminal playing are changed according to radio broadcasting signal;
Step 102, above-mentioned portable terminal are when receiving signal strength indication (Received Signal StrengthIndicator, be called for short RSSI) during less than the first threshold that sets in advance, obtain the address information corresponding with the band information of above-mentioned radio broadcasting signal;
Wherein, address above mentioned information is the network address, just can obtain corresponding Media Stream according to this network address.
Step 103, above-mentioned mobile terminal playing are according to the second audio signal of media stream transition, and above-mentioned Media Stream is according to the address above mentioned acquisition of information.
Wherein, above-mentioned the first audio signal or the second audio signal can be frequency modulation (FM) audio signal, can also be amplitude modulation (AM) audio signal.
Further, the player method of the audio signal of the present embodiment can also comprise the step of the mapping relations that set in advance band information and address information, so that portable terminal can obtain the address information corresponding with the band information of above-mentioned radio broadcasting signal in the above-mentioned steps 102.Wherein, the mapping relations of above-mentioned band information and address information can be as shown in table 1.
The mapping relations of table 1 band information and address information
Band information |
Corresponding address information |
FM 91.5Hz |
mms:\\fmradio.xxx.xxx\aaa.aaa |
FM 87.6Hz |
mms:\\fmradio.xxx.xxx\bbb.bbb |
FM 97.4Hz |
mms:\\fmradio.xxx.xxx\ccc.ccc |
FM 103.9Hz |
mms:\\fmradio.xxx.xxx\ddd.ddd |
AM 531Hz |
mms:\\fmradio.xxx.xxx\ddd.eee |
AM 1602Hz |
mms:\\fmradio.xxx.xxx\ddd.fff |
Further, in order to improve continuity and the real-time of mobile terminal playing the second audio signal, in the above-mentioned steps 103 of the present embodiment, can also comprise the Media Stream corresponding with address above mentioned information that buffer memory in advance obtains, thereby so that portable terminal can work as RSSI less than the Second Threshold that sets in advance the time, is play the second audio signal according to the above-mentioned media stream transition of buffer memory immediately.
Further, when portable terminal can also be worked as RSSI greater than the first threshold that sets in advance, continue to play the first audio signal according to the radio broadcasting signal conversion.
In the present embodiment, portable terminal specifically can by the mode of poll RSSI register, be known the value RSSI of RSSI register.
In the present embodiment, in the process of mobile terminal playing according to the first audio signal of the radio broadcasting signal conversion of obtaining, as RSSI during less than the first threshold that sets in advance, obtain the address information corresponding with the band information of above-mentioned radio broadcasting signal, thereby so that above-mentioned portable terminal can be play the second audio signal according to the media stream transition corresponding with address above mentioned information of obtaining, enlarge the scope of can the broadcasting program broadcast corresponding audio signal (the first audio signal or the second audio signal) of portable terminal, guaranteed normally carrying out of portable terminal broadcasting service.
The schematic flow sheet of the player method of the audio signal that Fig. 2 provides for the embodiment of the invention two, as shown in Figure 2, the player method of the audio signal of the present embodiment can may further comprise the steps:
The first audio signal that step 201, mobile terminal playing are changed according to the radio broadcasting signal that obtains;
In this step, portable terminal can be changed the radio broadcasting signal that obtains, and generates the first audio signal, then can play this first audio signal.Particularly, the audio frequency output channel of portable terminal (being loud speaker) is connected with the FM/AM chip, obtains and change radio broadcasting signal corresponding to broadcast program by the FM/AM chip.
Step 202, portable terminal poll RSSI register are known the value of RSSI register, and the value of above-mentioned RSSI register is RSSI;
Wherein, above-mentioned RSSI register can be arranged on the FM/AM chip.
Step 203, portable terminal when RSSI less than 30% the time, according to the mapping relations of the band information that sets in advance and address information, obtain the address information corresponding with the band information of above-mentioned radio broadcasting signal;
The Media Stream corresponding with address above mentioned information that step 204, portable terminal buffer memory obtain;
Step 205, portable terminal when RSSI less than 10% the time, play the second audio signal according to the above-mentioned media stream transition of buffer memory;
In this step, the audio frequency output channel of portable terminal (being loud speaker) switches to the streaming media playing module and is connected, and obtains and change Media Stream corresponding to broadcast program by the streaming media playing module.
Step 206, portable terminal when RSSI greater than 30% the time, stop the Media Stream corresponding with address above mentioned information that buffer memory obtains, continue to play the first audio signal according to the radio broadcasting signal conversion of obtaining.
In this step, the audio frequency output channel of portable terminal (being loud speaker) again switches to the FM/AM chip and is connected, and obtains and change radio broadcasting signal corresponding to broadcast program by the FM/AM chip.
In the present embodiment, if the user need to stop portable terminal the radio broadcasting signal that obtains is changed namely before the shutdown, need to be stopped poll RSSI register, avoid the waste of resource.
In the present embodiment, in the process of mobile terminal playing according to the first audio signal of the radio broadcasting signal conversion of obtaining, when RSSI less than 30% the time, obtain the address information corresponding with the band information of above-mentioned radio broadcasting signal, thereby so that above-mentioned portable terminal can be play the second audio signal according to the media stream transition corresponding with address above mentioned information of obtaining, enlarge the scope of can the broadcasting program broadcast corresponding audio signal (the first audio signal or the second audio signal) of portable terminal, guaranteed normally carrying out of portable terminal broadcasting service.
Need to prove: for aforesaid each embodiment of the method, for simple description, therefore it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
The structural representation of the playing device of the audio signal that Fig. 3 provides for the embodiment of the invention three, as shown in Figure 3, the playing device of the audio signal of the present embodiment can comprise the first playing module 31, address acquisition module 32 and the second playing module 33.Wherein, the first audio signal that the first playing module 31 is play according to the radio broadcasting signal conversion, address acquisition module 32 is as RSSI during less than the first threshold that sets in advance, obtain the address information corresponding with the band information of above-mentioned radio broadcasting signal, the second audio signal that the second playing module 33 is play according to media stream transition, above-mentioned Media Stream is according to the address above mentioned acquisition of information.
The playing device of the audio signal that the function of portable terminal all can be provided by the embodiment of the invention among the invention described above embodiment one, two is realized.
In the present embodiment, the first playing module is play in the process of the first audio signal of changing according to the radio broadcasting signal that obtains, as RSSI during less than the first threshold that sets in advance, address acquisition module is obtained the address information corresponding with the band information of above-mentioned radio broadcasting signal, thereby so that the second playing module can be play the second audio signal according to the media stream transition corresponding with address above mentioned information of obtaining, enlarge the scope of can the broadcasting program broadcast corresponding audio signal (the first audio signal or the second audio signal) of portable terminal, guaranteed normally carrying out of portable terminal broadcasting service.
Further, the playing device of the audio signal of the present embodiment can further include module 34 is set, be used for setting in advance the mapping relations of band information and address information, so that address acquisition module 32 is obtained the address information corresponding with the band information of above-mentioned radio broadcasting signal.
The structural representation of the playing device of the audio signal that Fig. 4 provides for the embodiment of the invention four, as shown in Figure 4, the second playing module 33 in the playing device of the audio signal of the present embodiment specifically can comprise buffer unit 41 and broadcast unit 42.Wherein, the Media Stream corresponding with address above mentioned information that buffer unit 41 buffer memorys obtain, broadcast unit 42 is play the second audio signal according to the above-mentioned media stream transition of buffer memory as RSSI during less than the Second Threshold that sets in advance.
In the present embodiment, after address acquisition module gets access to the address information corresponding with the band information of above-mentioned radio broadcasting signal, the Media Stream corresponding with address above mentioned information that buffer unit elder generation buffer memory obtains, as RSSI during less than the Second Threshold that sets in advance, broadcast unit is play the second audio signal according to the above-mentioned media stream transition of buffer memory again, thereby has improved the continuity of playing audio signal.
Further, because obtaining of Media Stream can produce certain network traffics, so as RSSI during greater than the first threshold that sets in advance, the first playing module 31 can also continue to play the first audio signal of changing according to radio broadcasting signal.
Particularly, the playing device of the audio signal of the present embodiment can further include message polling module 35, be used for poll RSSI register, know the value of RSSI register, the value of above-mentioned RSSI register is RSSI, so that when RSSI satisfies different threshold condition, trigger corresponding functional module or unit.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.