Embodiment
Character audio data positioning method of the present invention is described in detail below by according to following paragraph order:
1. system architecture:
2. the embodiment of audio data positioning method
2.1 first embodiments
2.2 second embodiments
2.3 the 3rd embodiments
2.4 the 4th embodiments
3. embodiment change
4. conclusion
1. system architecture:
Character audio data positioning method of the present invention can be executed in various electronic installation, such as mobile phone (mobile phone), personal digital assistant (Personal Digital Assistant is called for short PDA), Set Top Box (SetTop Box), televisor, game machine or media player.Explain with the electronic system 100 performing described audio data positioning method below.
Consult Fig. 1, electronic system 100 comprises processor 10, storer 20, display 30, input block 40 and timer 50 and 60.Processor 10 can be made up of, for the treatment of data and executive routine integrated circuit (Integrated Circuit is called for short IC).Processor 10 can be made up of the IC of single encapsulation, or connects the encapsulation IC of many identical functions or difference in functionality and form.For example, processor 10 only can comprise central processing unit (Central Processing Unit is called for short CPU), or the combination of the controller chip of CPU, communication controller and input block 40.CPU can be the CPU of single arithmetic core or multioperation core.Described communication controller is for controlling the communication of each assembly in electronic system 100, or the communication of electronic system 100 and external device (ED), and can support direct memory access (DirectMemory Access).
Storer 20 can comprise random access memory (Random Access Memory, be called for short RAM), non-voltile memory (Nonvolatile Memory), Large Copacity storage device (mass storage device, such as hard drives) or its combination.Non-voltile memory such as electronics can remove programmble read only memory PROM (Electrically Erasable Programmable ROM is called for short EEPROM) and flash memory (FlashMemory).Storer 20 can be packaged into single chips with processor 10, or outside and be connected with processor 10 via bus (bus) at it.Storer 20 stored audio data 70.
Below illustrate in, the length of audio data 70 is assumed to be D, can be audio data 70 with the reproduction time of special time unit representation, wherein said chronomere such as divides or second.It is to be appreciated that audio data 70 can be single audio data (hereinafter referred to as voice data item or song), or multiple voice data item.Voice data item can be an audio data file.For example, audio data 70 is the audio datas according to the multiple songs after the particular order arrangement of the property value of voice data item in a playing list (playlist).
Display 30 can show word and figure, such as can comprise by Organic Light Emitting Diode (Organiclight emitting diode, be called for short OLED) display, liquid crystal display (Liquid CrystalDisplay, be called for short LCD), Field Emission Display (Field Emission Display) or the Electronic Paper (E-paper) that form.Display 30 can show various graphical user interface (Graphical User Interface, be called for short GUI), and User's Interface can comprise window (window), the scroll bar (scroll bar) of playing list, the progress axle of music and text event detection district.Display 30 can comprise unitary display or multiple display, such as a large-size display and a reduced size display.Processor 10 can show lower example illustrate in various GUI assemblies in display 30.
Input block 40 can comprise various for input data or instruction to the interfacing equipment of electronic system 100, such as contact panel, touch control screen, keyboard and voice receiver.Input block 40 also can comprise the controller of described interfacing equipment.Timer 50 and 60 can be made up of, during being respectively used to timing regular length circuit, computer program or its combination.Timer 50 or 60 timing produces signal when terminating (expiration), terminates during timing for informing.Can connect with wired or wireless communication channel between each assembly of electronic system 100.
Please refer to Fig. 2 A.Keyboard 40a shown in Fig. 2 A is wherein a kind of embodiment of input block 40.Described keyboard can be physical keyboard or the display dummy keyboard on the display 30 of physical construction.Described keyboard has button 201-217.Button 213 and 214 is function keys, and its function is different because of the software program performed by electronic system 100.Button 215 is off-hook (off-hook) buttons; Button 216 is on-hook (on-hook) buttons.The directionkeys of moving direction of cursor shown in the display 30 that button 217 is used to control electronic system 100.Numeral corresponding to button 201 ~ 212, letter and/or symbol are shown on each button in Fig. 2 A, but are not intended to limit the present invention.
2. the embodiment of audio data positioning method
The numeral of the numerical key input electric subsystem 100 of input block 40 may be used for performing different functions.For example, the numeral of numerical key input electric subsystem 100 dials number according to this for electronic system 100 as telephone code number or sends news in brief, or to choose for electronic system 100 as broadcasting channel number and switch to the channel corresponding to described number.The numeral of numerical key input electric subsystem 100 is used as the index of audio data location in the following embodiments.Electronic system 100 needs to determine that institute receives the function of digital correspondence.But the input block 40 beyond numerical key operates and also can be used for audio data location.Following audio data positioning method can use computer program implementation, and is executed in electronic system 100.
2.1 first embodiments
Please refer to Fig. 3 A, processor 10, after the input operation receiving input block 40 (step S30), differentiates electronic system 100 whether in audio-frequency play mode (step S31).When electronic system 100 is not at audio-frequency play mode, the input operation received is used for other function (step S32) by processor 10.Input operation in step S30 can comprise numeral, when electronic system 100 is not at audio-frequency play mode, and the number of digital conversion needed for other function that processor 10 will receive, such as telephone number or channel number.For example, processor 10 shows audio data on the display 30 and plays relevant User's Interface in audio-frequency play mode, when electronic system 100 is at audio-frequency play mode, the input operation received is used for audio data location (step S33) by processor 10.In step S33, processor 10 obtains ad-hoc location in audio data or fragment.Processor 10 judges that whether electronic system 100 is just at audio plays (step S34).In this way, processor 10 directly can perform to the described ad-hoc location that obtains or fragment the audio operation (step S37) preset.As no, processor 10 audio reception option of operation (step S35), and audio operation corresponding to described option (step S36) is performed to described audio data.For example, audio operation comprises audio frequency broadcasting, F.F. (fast forward), rewind (rewind), bookmark setting or repeat playing.Preset audio operation in step S37 can be audio player operation.Input block 40 can comprise the corresponding button of audio operation option, and audio operation option also can be shown in display 30 by processor 10.
The audio data of step S33 is positioned with embodiment miscellaneous, below illustrates.Electronic system 100 utilizes timer with during the operation that timing one section is predetermined.During described predetermined operation, if processor 10 receives more numerals, then can obtain ad-hoc location in audio data 70 or fragment to perform audio operation by more accurate unit.For example, in during described predetermined operation, if processor 10 receives more numerals, then can more accurately obtain the fragment in audio data 70 as audio data the base unit skipping over operation with perform skip over operation.When the current position of processor 10 just in audio data 70 plays audio frequency wherein, skip over forward operation and to switch to first object position audio data 70 from described current position for driving the broadcasting of audio data 70, the time of time early than the described first object position of access of described current position is accessed during wherein said processor 10 audio plays data 70, skip over operation backward and to switch to the second target location audio data 70 from described current position for driving the broadcasting of audio data 70, the time of time early than the time of the described current position of access of described first object position is accessed during wherein said processor 10 audio plays data 70.
Processor 10 obtains audio data 70 and performs following audio data positioning method.It is to be appreciated that audio data 70 can be single song audio data, or the audio data of multiple song.For example, audio data 70 is the audio datas according to the multiple songs after particular order arrangement in a playing list (playlist).Playing list comprises N number of voice data item, wherein N be greater than 0 positive integer.The broadcasting speed that described audio data positioning method also may be used for locating the location of video data, the broadcasting speed that the volume volume controlled on axle is selected or audio frequency is play of audio frequency broadcasting controls on axle is selected.Data handled by audio data positioning method can be called " pending object ".When described processor 10 performs audio data positioning method, first calculate the total length of pending object, again according to the numeral that the operation received from input block 40 obtains, described digital conversion is become the position relative to total length described in it in described pending object, to locate and to obtain the described position in described pending object.For example, when audio data 70 is specifically to encode and compressed format is stored in non-voltile memory, the archives of audio data 70 end address in described non-voltile memory can be deducted start address to calculate the total length of audio data 70 by described processor 10.In other embodiments, if audio data 70 is specifically to encode and compressed format is stored in non-voltile memory, described processor 10 can by audio data 70 decoding and decompression, with the audio sample waveform information obtaining audio data 70 decoding and separate after contracting.Audio sample waveform information after described processor 10 can contract according to described decoding and solution and the sampling frequency of audio data 70 are to calculate total reproduction time length of audio data 70.Described processor 10 can perform audio data positioning method in decoding and the audio sample waveform information after separating contracting.When pending to as if volume controls axle, described processor 10 can according to the max volume of electronic system 100 and minimal volume to calculate the total length of pending object.When pending to as if broadcasting speed controls axle, described processor 10 can according to the maximum broadcasting speed of electronic system 100 and minimum broadcasting speed to calculate the total length of pending object.When pending to when liking playing list, described processor 10 can calculate the total length of the song number in playing list as pending object.The execution sequence of following audio data positioning method process flow diagram can with reference to the arrow in each process flow diagram.
Fig. 3 B display is executed in a kind of embodiment of the audio data positioning method of electronic system 100.Electronic system 100 is in audio-frequency play mode, and current active User's Interface assembly (active GUIelement) is progress axle, so locate for the audio data corresponding to progress axle when processor 10 receives numeral.
Processor 10 from numerical key receive input first numeral, such as numeral 0,1,2,3 ... or 9 (step S300), and start timer 50 with timing length (step S302).
Processor 10 according to the described numeral received with generation time information, corresponding to the progress shaft position on the progress axle of audio data 70, and the ad-hoc location (step S304) in audio data 70, and produce the address information (step S306) of the described ad-hoc location of audio data 70.For example, processor 10 receives numeral " 3 " in step S300, in step s 304 can by numeral " 3 " convert temporal information 00:00:03 to, namely 0 hour 0 point 3 seconds.Processor 10 can produce the address information of corresponding time 00:00:03 in audio data 70.
Processor 10 differentiates whether timing terminates (event A) described timer 50, or receives the second numeral (event B) (step S307) from described multiple numerical key.
In step S307, as from as described in multiple numerical key receive another the second numeral (event B), then processor 10 resets timer 50 (step S308), all numerals (comprising first and second numeral described) received are utilized to replace the temporal information previously produced with generation time information, corresponding to the new ad-hoc location (step S310) in described audio data 70.Repeated execution of steps S306, to produce the address information of the described new ad-hoc location of audio data 70.For example, processor 10 receives numeral " 5 " in step S307, in step S310 can by numeral " 3 " and " 5 " convert temporal information 00:00:35 to, namely 0 hour 0 point 35 seconds.In like manner, as repeated execution of steps S307, processor 10 receives numeral " 2 ", can convert numeral " 3 ", " 5 " and " 2 " to temporal information 00:03:52 in step S310, namely 0 hour 3 points 52 seconds.If processor 10 receives numeral " 3 ", " 5 ", " 2 ", " 1 " and " 0 ", can by numeral " 35210 " convert temporal information 03:52:10 to, namely 3 hours 52 points 10 seconds.It is to be appreciated that temporal information can represent with various different form, such as, only show every minute and second and omit hour (hour), or between every minute and second, omitting separator ": ", or representing with different separators.Processor 10 also can use diverse ways generation time information.
As timer 50 timing terminates (event A), the timing of the described timer of processor 10 response terminates to obtain the ad-hoc location (step S312) of the temporal information corresponding to described generation in described audio data, and performs audio operation (step S314) according to described ad-hoc location to the fragment of audio data.Please refer to the 4th figure, if the temporal information that processor 10 produces is 00:35, namely 35 seconds, processor 10 obtains the position 21 of corresponding reproduction time 00:35 in audio data 70 in step S306, and show the homologue of audio data 70 on the display 30, i.e. progress axle 300, and figure 31 is used to indicate the position of corresponding 00:35 on progress axle 300.
For example, in step S314 processor 10 can from described ad-hoc location (such as position 21) audio plays data, or setting bookmark.In step S314, processor 10 can respond timer 50 timing to be terminated automatically to perform described audio operation, or the operation of other assembly of response input block 40 and perform described corresponding audio operation.
If be greater than the reproduction time length of audio data from the temporal information of input block 40 input, processor 10 can show error messages.Or processor 10 can avoid the time message of user's input error.
For example, the reproduction time overall length of audio data 70 is 3:45 (3 points and 45 seconds).Electronic system 100 has multiple variable a1, a2, a3, and a4, and the default value of each is all set to 0.Processor 10 obtains numeral sequentially stored in a1, a2, a3 from input block 40 at every turn, and one of them of a4.In step S304 and 310, processor 10, using the result of formula (10 × a1+a2) as minute value in the temporal information produced, is worth using the result of formula (10 × a3+a4) as the second in the temporal information produced.In the following description, symbol " ← " represents that processor 10 is by the variable of the variate-value on the right of the value on the right of described symbol or described symbol stored in the described symbol left side.Processor 10 sequentially performs a4 ← a3, a3 ← a2, a2 ← a1, and a1 ← 0 when performing the displacement operation to the right of described variable, and sequentially performs a1 ← a2, a2 ← a3, a3 ← a4 when performing the displacement operation left of described variable, and a4 ← 0.When processor 10 receives numeral " 3 " in step S300, perform a1 ← 3, and generation time information 30:00.The more described temporal information 30:00 of processor 10 and described time overall length 3:45, judges that the described temporal information 30:00 produced through conversion is greater than the time overall length 3:45 of described audio data 70.Described temporal information 30:00 displacement is to the right produced new temporal information 03:00 by processor 10 in step s 304, namely 3 points 0 second.In step S306, processor 10 can produce the address information of corresponding time 03:00 in audio data 70.Then, when processor 10 receives numeral " 2 " in step S307, a2 ← 2 are performed.Processor 10 in step S310 can by numeral " 3 " and " 2 " convert temporal information temporal information 32:00 to, namely 32 points 00 second.The described time overall length 3:45 of the more described temporal information 32:00 of processor 10 and audio data 70, judges that the described temporal information 32:00 produced through conversion is greater than the time overall length 3:45 of described audio data 70.Described temporal information 32:00 displacement is to the right produced new temporal information 03:20 by processor 10 in step s 304, namely 3 points 2 seconds.
If but processor 10 receives numeral " 5 " in step S307, perform a2 ← 5.Processor 10 in step S310 can by numeral " 3 " and " 5 " convert temporal information temporal information 35:00 to, namely 35 points 00 second.The more described temporal information 35:50 of processor 10 and described time overall length 3:45, judges that the described temporal information produced through conversion is greater than the time overall length 3:45 of described audio data 70.Described temporal information 32:00 displacement is to the right produced new temporal information 03:50 by processor 10 in step s 304, namely 3 points 50 seconds.The more described temporal information 03:50 of processor 10 and described time overall length 3:45, judges that the described temporal information produced through conversion is greater than the time overall length 3:45 of described audio data 70.Processor 10 by described temporal information 03:50 again displacement to the right produce new temporal information 00:35, namely 0 point 35 seconds.
Using the reference mark of the temporal information of audio data as audio data described in random access in first embodiment.Embodiment audio data being segmented into any decile is described below.
2.2 second embodiments
Fig. 3 C display is executed in the second embodiment of audio data 70 localization method of electronic system 100.When the current active User's Interface assembly of electronic system 100 is volume control axle, it is the pending object that processor 10 performs following audio data positioning method that volume controls axle, and processor 10 receives the target location that numeral can be used on selected volume control axle.When the current active User's Interface assembly of electronic system 100 is broadcasting speed control axle, it is the pending object that processor 10 performs following audio data positioning method that broadcasting speed controls axle, and processor 10 receives the target location that numeral can be used on selected broadcasting speed control axle.When the current active User's Interface assembly of electronic system 100 is the scroll bar of playing list, described scroll bar is the pending object that processor 10 performs following audio data positioning method, and processor 10 receives the target location that numeral can be used on selected described scroll bar.Below illustrate only with the current active User's Interface assembly of the electronic system 100 progress axle that is audio data 70 for example.Electronic system 100 is in audio-frequency play mode, the audio data 70 of progress axle and correspondence thereof is all the pending object that processor 10 performs following audio data positioning method, so locate for the audio data corresponding to progress axle when processor 10 receives numeral.
Processor 10 receives the first digital m and the second digital n (step S320) of input from input block 40.For example, m and n is all numeral, and m and n is all greater than 0 and is less than 9.
Pending object fragments is m fragment by the received described in processor 10 responds first digital m, and the progress axle also by audio data 70 and correspondence thereof is segmented into m fragment (step S322).The length of each fragment of audio data 70 is D/m.Please refer to Fig. 5, if m=5, n=2, audio data 70 is divided into 5 fragments by processor 10, that is segments is determined by the first digital m.For example, in step S322, the total length of audio data 70 is D skips over operation as audio frequency new unit divided by 5 by processor 10, obtains the position of corresponding reproduction time 0, D/5,2D/5,3D/5,4D/5 and 5D/5 on audio data 70 to distinguish described 5 fragments.The length of each fragment of audio data 70 is D/5.
Received described in processor 10 responds second digital n, to obtain the m fragment n-th specific fragment wherein of described pending object, that is obtains the m fragment n-th specific fragment (step S324) wherein of audio data 70 and progress axle thereof.Please refer to Fig. 5, if m=5, n=2, processor 10 obtains the 2nd fragment in audio data 70, that is fragment 72B, and the end of its homologous segment 72A on progress axle 300 is indicated by figure 31.The fragment order that processor 10 obtains is determined by the second digital n.
Processor 10 to the described specific fragment executable operations obtained, that is performs audio operation (step S326) to the n-th specific fragment.As shown in Figure 5, in step S326 processor 10 can from the back-end location 72 of described specific fragment audio plays data, the correspondence position of position 72 on progress axle 300 is indicated by figure 31.But this be not used for limit the present invention, in step S326 processor 10 can from the front end of described specific fragment, rear end, centre or other position audio plays data.
After step S326, the described method of Fig. 3 C can be repeated when processor 10 receives two stroke numerals again, with processing audio data 70 again.Please refer to Fig. 6, if m=4, n=3, progress axle 300 is divided into 4 progress axle fragments by processor 10, also audio data 70 is divided into 4 audio fragments, chooses the 3rd progress axle fragment of progress axle 300 and obtain the terminal position 73 of the 3rd fragment in audio data 70.Processor 10 color of the 1st to the 3rd progress axle fragment of progress displaying axle 300 can be different from the color of the 4th progress axle fragment.
Audio data fragment corresponding to fragment in Fig. 5 on progress axle 300 indicated by figure 31 is called selected fragment.Can by the directionkeys in input block 40 or the adjacent segment of position to fragment 72A being changed figure 31 by contactor control device, therefore changing described selected fragment is the adjacent segment of fragment 72B.Operated by the directionkeys in input block 40, the operating point 219a of such as actuation keys 217 operation moving to the next fragment in right of described selected fragment being turned right is exactly be equivalent to skip over forward operation (forwardskipping), and the operating point 221a of such as actuation keys 217 operation moving to left next one fragment of described selected fragment being turned left is exactly be equivalent to skip over operation (backward skipping) backward.Therefore utilize this embodiment, processor 10 can adjust the parasang that the forward/backward of audio data 70 when playing skips over operation.
In the example of fig. 5, the audio data fragment corresponding to the second fragment 72A of progress axle 300 selected by processor 10, namely the 2nd fragment 72B of audio data 70, processor 10 can respond the operating point 220a actuating of button 217 and using described 2nd fragment 72B as new audio data, the first digital m according to previous receipt is subdivided into m sub-fragment again to described specific fragment.The described specific fragment of audio data 70 segment again after the length of each sub-pieces section be D/m2.For example, in step S322, the total length of fragment 72B is D/5 skips over operation as audio frequency new unit divided by 5 by processor 10, obtains the position of corresponding following reproduction time on audio data 70 to distinguish a described m fragment:
As shown in Figure 7, progress axle 320 represents progress axle fragment 72A, corresponding to audio fragment 72B.Processor 10 is subdivided into 5 sub-fragments according to the first digital m=5 of previous receipt again to fragment 72A and fragment 72B.5 fragments in progress axle 320 represent the less sub-pieces section of in fragment 72B 5.In Fig. 7, figure 32 refer to selected sub-pieces section, corresponding position 721 in fragment 72B, the position of figure 32.Same, button 217 mobile graphics 32 can be utilized and reelect other sub-pieces section as selected fragment.
Current active User's Interface assembly (active GUI element) is progress axle 320 on the display 30, so when processor 10 receives two stroke numerals again, step S in Fig. 3 C can be repeated to segment again the fragment 72B of progress axle 320 correspondence.Please refer to Fig. 8, if processor 10 receives digital m=10 and n=5 again, fragment 72B is subdivided into 10 fragments by processor 10 again, and obtains the 5th fragment wherein.
On the device not having numerical key, with directionkeys or the wherein fragment that operating key comes in selected audio data can be skipped over forward or backward.Fig. 2 B shows another embodiment input block 40b of input block 40.Button 42 skips over operation forward for driving, and button 44 skips over operation backward for driving, and button 45 is for driving audio plays or suspending audio plays.Contactor control device 46 is as shown in Figure 2 B in colyliform.Touch trajectory clockwise on contactor control device 46 also can drive and skip over operation forward.Counterclockwise touch trajectory on contactor control device 46 also can drive and skip over operation backward.Storer 20 can store the predetermined number y with deciding audio data number of fragments in advance.Numeral y can be any positive integer being greater than 1.In audio-frequency play mode, when button 42 activated, processor 10 obtains the first fragment in y fragment of audio data 70.When button 42 second time activated, processor 10 obtains the second fragment of the first fragment right.When button 44 activated, processor 10 obtains the first fragment of the second fragment left.When button 41 or 43 activated, the fragment obtained is subdivided into y sub-fragment by processor 10 again.
2.3 the 3rd embodiments
Fig. 3 D display is executed in the 3rd embodiment of the audio data positioning method of electronic system 100.Storer 20 can store the predetermined number z with deciding audio data number of fragments in advance.Numeral z can be any positive integer being greater than 1.
Processor 10 receives the digital c (step S330) of input from the numerical key of input block 40, and starts described timer 50 with timing length (step S332).
Audio data 70 and corresponding progress axle thereof are segmented into a predetermined quantity z fragment (step S334) by the digital c received described in processor 10 responds, and obtain c fragment (step S336) wherein.The length of each fragment of audio data 70 is D/z.The total length of audio data 70 is D skips over operation as audio frequency new unit divided by z by processor 10.For example, z=10 and c=7, progress axle 300 is divided into 10 fragments by processor 10 as shown in Figure 9, and the length of each fragment is D/10, and obtains the 7th fragment 77A wherein, and indicates the terminal position of fragment 77A with figure 31.Progress axle 300 is the current active User's Interface assemblies of electronic system 100, so be the main body that positioning action made by processor 10 corresponding to the audio data of progress axle.Corresponding to progress axle 300, audio data 70 is divided into 10 fragments, and obtains the 7th fragment 77B wherein, corresponding to fragment 77A according to digital c.Position 779 corresponds to the position that figure 31 indicates.
Whether processor 10 differentiates whether timing terminates (event A) timer 50, receive another digital d (event B) (step S338) before the timing of described timer 50 does not terminate from the numerical key of input block 40.
As timer 50 timing does not terminate to receive another digital d (event B) in the past, then processor 10 responds another digital d described and described specific fragment and corresponding progress axle fragment thereof is subdivided into a predetermined quantity z fragment (step S340) again, obtain d fragment (step S342) in the multiple fragments after segmentation again, and reset described timer 50 (step S344).The described specific fragment of audio data 70 segment again after the length of each sub-pieces section be D/z2.Processor 10 skips over the new unit of operation using sub-pieces segment length D/z2 as audio frequency.For example, d=5, the 7th fragment of audio data 70 is further divided into 10 fragments by processor 10, and obtains the 5th fragment wherein.As shown in Figure 10, the 7th fragment 77B of audio data 70 is further divided into 10 fragments by processor 10, and obtains the 5th fragment 775B wherein.In Figure 10, the progress axle 320 of display 30 represents fragment 77A, and fragment 77A represents fragment 77B.Processor 10 is divided into 10 fragments progress axle 320, then obtains the 5th fragment 775A in progress axle 320 according to digital d, and it represents fragment 775B.In like manner, again can segment fragment 775B via the described step S repeating Fig. 3 D.
As described in timer 50 timing terminate (event A), then processor 10 performs audio operation (step S346) to the described fragment that obtains.In the example of Figure 10, be start to perform audio operation to the terminal position 775 of fragment 775B.
On the device not having numerical key, with the left button of directionkeys, right button or the wherein fragment that operating key comes in selected audio data can be skipped over forward or backward, and with the operation that upwarding key, down Arrow or another key segment to drive certain fragment again.
2.4 the 4th embodiments
Fig. 3 E display is executed in the 4th embodiment of the audio data positioning method of electronic system 100.Electronic system 100 has multiple variable a1, a2, a3 ... an, the default value of each is all set to 0.Processor 10 obtains numerical order stored in a1, a2, a3 from input block 40 at every turn ... the one of an.
Processor 10 receives the first digital e of input from the numerical key of input block 40, by digital e stored in a1, that is performs a1 ← e (step S350), and starts described timer 50 with timing length (step S352).
Processor 10 to produce percent value (step S354), and obtains the position (step S356) of corresponding described percent value in audio data 70 according to digital e.For example, percent value m is:
When processor 10 obtains the first digital e=9, processor 10 according to numeral 9 and formula (1) to produce percent value 90%.As shown in figure 11, from the length of front end to the position 790 of audio data 70 be 90% of the total length of audio data 70.Processor 10 obtains the position 790 of corresponding described percent value 90% in audio data 70.
Processor 10 differentiates whether timing terminates (event A) timer 50, or the non-timing of described timer 50 terminates whether receive second digital f (event B) (step S360) from the numerical key of input block 40 in the past.
As received the second digital f (event B), then processor 10, by digital f stored in a2, that is perform a2 ← f, reset described timer 50 (step S362), and according to all numerals received to produce percent value to replace previous percent value (step S364).
For example, if the new percent value mnew of e=9, f=5 is:
mnew=1%×(102-1a1+102-2a2+102-3a3+…102-nan)
=1%×(101×9+100×5+0…+0)
=1%×(90+5+0…+0)
=95%
For example, if the new percent value mnew of e=0, f=5 is:
mnew=1%×(102-1a1+102-2a2+102-3a3+…102-nan)
=1%×(101×0+100×5+0…+0)
=1%×(0+5+0…+0)
=5%
Then, processor 10 obtains the position (step S366) of corresponding described percent value in audio data 70, and repeats step S360.
If timer 50 timing terminates (event A), processor 10 performs audio operation (step S368) according to the described position obtained.
3. embodiment change
Processor 10 can utilize described method to set bookmark on the position that described audio data obtains.Comprise at display 30 in the example of Touch Screen formation, via the position on the progress of click axle, described position can set bookmark, and then to the relative position setting bookmark on audio data.The operation that processor 10 can respond input block 40 obtains position corresponding to bookmark in audio data 70, and starts audio operation.Audio data can set multiple bookmark.As shown in figure 12, processor 10 utilizes wherein one or more embodiments of described method to arrange bookmark 332 and 333 at progress axle 300, and obtains the position 792 and 793 on audio data, and arranges bookmark on position 792 and 793.
A section audio data fragment can be defined between two bookmarks.Described audio frequency localization method is based on the length of the audio data of regular length, to calculate the ad-hoc location in described length.Described localization method can be applied in the fragment between two bookmarks that audio data sets, that is the fragment length between described two bookmarks can as the total length of object pending in described positioning action.The fragment of processor 10 between two bookmarks performs described localization method to obtain the position on it.
Electronic system 100 can will be a group through the audio fragment acquired by said method or its locating information set, and the specific function for electronic system 100 uses.Be in the example of mobile phone in electronic system 100, when electronic system 100 receives incoming call, processor 10 can select a bookmark to start audio plays data with the position corresponding at this bookmark by random fashion, or select an audio fragment to start to play this audio fragment, using as incoming call prompting the tinkle of bells.
Described various audio data positioning method can use different input syntaxs.For example, in audio data positioning method the 3rd embodiment, input block 40 receiving symbol " # " is to separate described digital m and n.Processor 10 can utilize described audio data positioning method, responds the numeral received and controls axle and broadcasting speed control axle with difference 3dpa data 70, volume.For example, when processor 10 receives " 51*41*32 ", wherein symbol " * " separately three stroke numerals, processor 10 responds numeral " 51 " wherein to obtain the 1st fragment in audio data 70 in 5 audio fragments, response numeral " 41 " wherein controls the 1st fragment ends position in 4 fragments of axle as target location using volume in the play mode obtaining audio data 70, and response numeral " 32 " wherein controls the 2nd fragment ends position in 3 fragments of axle as target location using broadcasting speed in the play mode obtaining audio data 70.
Processor 10 can comprise the menu of the option for activating various audio data positioning method embodiment in display 30 display.Electronic system 100 can receive choosing on described menu and perform an audio data positioning method wherein embodiment.
Described audio data positioning method also may be used for the window of playing list on display 30 showing audio data.For example, processor 10 according to the comparation and assessment value of certain attribute of voice data item to arrange multiple audio datas in playing list.Each voice data item can have single or multiplely can receive the attribute that user sets comparation and assessment value.The production method of the comparation and assessment value of voice data item is described as follows:
When processor 10 receives mobile operation from input block 40, processor 10 responds described mobile operation to produce the comparation and assessment value of the relevant voice data item of described mobile operation.Processor 10 can to operate on a window edge projected position to determine the comparation and assessment value of described relevant voice data item according to described movement.Described mobile operation can be the touch trajectory on the Touch Screen of input block 40, Trackpad, or the mobile operation that mouse or trace ball etc. produce.
As shown in figure 13, processor 10 receives mobile operation 350 from input block 40.The length of the length representative playing list 370 of scroll bar 39 in Figure 13, the position of the audio data shown in cursor 38 display window 310 in playing list 370 and the ratio shared by playing list 370 length.Described mobile operation 350 starts from position 340 to window 310 edge on GUI assembly 37 corresponding to playing list sound intermediate frequency data " SONG000104 ", the position 360 on scroll bar 39.Processor 10 produces the comparation and assessment value of audio data " SONG000104 " according to position 360 on window 310 edge.GUI assembly 37 can be the character area of the title of display audio data " SONG000104 ".
For example, suppose that the comparation and assessment maximal value of audio data is that to appraise through comparison minimum value be m to M, and the height of window 310 is H1, position 360 is h1 with the distance of the bottom of window 310, when then processor 10 receives mobile operation 350 from input block 40, the comparation and assessment value of setting audio data " SONG000104 " is:
(M-m)×h1/H1 (2)
Processor 10 can adjust the degree of accuracy of the comparation and assessment value produced according to described formula (2).
In another embodiment, the mobile operation terminal producing comparation and assessment value does not need on scroll bar.As shown in figure 14, processor 10 receives mobile operation 351 from input block 40.Described mobile operation 351 starts from 341 to position, the position 361a on GUI assembly 37 corresponding to playing list sound intermediate frequency data " SONG000104 ".The straight line that position 341 and 361a determine prolongs Shen to the position 361b on window 310 edge.Processor 10 is according to the comparation and assessment value producing audio data " SONG000104 " at position 361b on window 310 edge.
In another embodiment, processor 10 shows the play mode of audio data 37.As shown in figure 15, processor 10 progress displaying axle 391, button 392-394 and volume control axle 395 in display 30.Button 393 is for driving broadcasting or the time-out of audio data.Button 392 and 394 skips over operation forward and backward for what drive audio data.Processor 10 receives mobile operation 352 from input block 40.Described mobile operation 352 starts from 342 to position, the position 362a on GUI assembly 371 corresponding to playing list sound intermediate frequency data " SONG000104 ".GUI assembly 371 can be viewing area, for showing associated static or the dynamic image of audio data " SONG000104 ".The straight line that position 342 and 362a determine prolongs Shen to the position 362b on window 311 edge.Processor 10 is according to the comparation and assessment value producing audio data " SONG000104 " at position 362b on window 311 edge.For example, suppose that the height of window 311 is H2, the distance of the bottom of position 362b and window 311 is h2, then, when processor 10 receives mobile operation 352 from input block 40, the comparation and assessment value of setting audio data 37 is:
(M-m)×h2/H2
The characteristics such as the height of window 310 and 311 or size can be different.When with full-size display window 310 and 311 in display 30, the size of window 310 and 311 can be equal to the size of the viewing area of display 30.
The audio data positioning method that Figure 16 display is executed in electronic system 100 is applied to playing list.Electronic system 100 is in the pattern displaying the play inventory, and current active User's Interface assembly is playing list, so locate for the audio data corresponding to playing list when processor 10 receives numeral.
Processor 10 receives the first digital m and the second digital n (step S1320) of input from input block 40.For example, m and n is all numeral, and m and n is all greater than 0 and is less than 9.
The scroll bar of playing list and correspondence thereof is segmented into m fragment (step S1322) by the received described in processor 10 responds first digital m.Processor 10 by the total length of playing list be C divided by the integer in the result of m, as playing list scrolling operation new unit, in window, show the number of voice data item as processor 10.For example, processor 10 often shows inferior in window
or
individual voice data item.Received described in processor 10 responds second digital n, to obtain the m fragment n-th specific fragment (step S1324) wherein of the scroll bar of playing list and correspondence thereof.If m=8, n=2, playing list is divided into 8 fragments according to the first digital m by processor 10.For example, playing list 370 have 32 audio datas, in step S1322, playing list is had 32 audio datas divided by 8 by processor 10, obtain 4, processor 10 responds each playing list scrolling operation requests to show 4 voice data items.
The window of specific fragment on display 30 (step S1326) obtained described in processor 10 shows.Processor 10 can perform size to the voice data item in described specific fragment and zoom in or out the size adapting to described window.The method of Figure 16 can be repeated, again to process playing list when processor 10 receives two stroke numerals again.Please refer to Figure 13, for example, if playing list 370 has 32 voice data items, and m=4, n=3, playing list is divided into 4 fragments by processor 10, and the 3rd fragment displayed the play in inventory is in window 310.
By the directionkeys in input block 40 or the adjacent segment being shown fragment at present can be changed by contactor control device.Operated by the directionkeys in input block 40, the operating point 218a of such as actuation keys 217 is to show a upper fragment, and the operating point 220a of such as actuation keys 217 is to show next fragment.Therefore utilize this embodiment, processor 10 can adjust the parasang of the scrolling operation of playing list.
The operating point 219a that processor 10 can respond button 217 activates, and the fragment of the first digital m to display at present according to previous receipt is subdivided into m sub-fragment again.The operating point 221a that processor 10 can respond button 217 activates, and segments the display of former playing list described in reply again.
In the example of Figure 13, on display 30, current active User's Interface assembly is playing list fragment shown in window 310, so when processor 10 receives two stroke numerals again, step in Figure 16 can be repeated to segment again playing list fragment shown in window 310.
4. conclusion
Described audio data positioning method can utilize numeral with the playing list of 3dpa data and playing progress rate.Described audio data positioning method can be executed in the various electronic installation with audio playing function, such as, on digital television box, mobile phone, game machine and portable media player.