CN104112459A - Method and apparatus for playing audio data - Google Patents
Method and apparatus for playing audio data Download PDFInfo
- Publication number
- CN104112459A CN104112459A CN201410290213.2A CN201410290213A CN104112459A CN 104112459 A CN104112459 A CN 104112459A CN 201410290213 A CN201410290213 A CN 201410290213A CN 104112459 A CN104112459 A CN 104112459A
- Authority
- CN
- China
- Prior art keywords
- sound volume
- broadcast sound
- time point
- start time
- time period
- 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.)
- Granted
Links
Abstract
The disclosure, which belongs to the technical field of the computer, relates to a method and apparatus for playing audio data. The method comprises the following steps that: when audio data sent by a sound source device are started to be received, a starting time point of the audio data receiving is determined; according to a corresponding relation between a pre-stored time period and a playing volume, the playing volume corresponding to the time period where the starting time point is located is determined to be a current playing volume; and the audio data are played by the current playing volume. According to the technical scheme, the influence on the service life of the audio output device can be reduced.
Description
Technical field
The disclosure is directed to field of computer technology, especially about a kind of method and apparatus of playing audio-fequency data.
Background technology
Along with the development of terminal technology, the peripheral equipment of terminal has also obtained development fast, for example audio output apparatus, user can be connected by wired or wireless mode audio output apparatus with the audiogenic device such as mobile phone or computer, like this, can play by audio output apparatus the voice data of audiogenic device transmission.
Usually, in the time that user need to use audio output apparatus to carry out voice data broadcasting, user can be connected audiogenic device with audio output apparatus, then, can in the audio player of audiogenic device, select to need the audio file of broadcasting, click the button that starts broadcasting, audio output apparatus obtains the voice data of audiogenic device transmission and the current volume of audiogenic device, current volume that now can be based on audiogenic device, plays the voice data receiving.
Realizing in process of the present disclosure, inventor finds at least to exist following problem:
Conventionally the volume of the each application program (comprising audio player) in audiogenic device (as mobile phone) is unified adjusting, in routine use, user can be according to self residing environment, regulate the volume of application program, for example, out of doors, the residing environment of user is more noisy, in the time that user plays games with mobile phone, that the volume of application program can be adjusted is very large.Like this, when user gets back to indoor, audiogenic device is connected with audio output apparatus, start audio player, during by audio output apparatus playing audio-fequency data, the volume of audio output apparatus output can be very large, makes the output power of audio output apparatus very large, thereby, affect serviceable life of audio output apparatus.
Summary of the invention
In order to overcome the problem existing in correlation technique, the disclosure provides a kind of method and apparatus of playing audio-fequency data.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of method of playing audio-fequency data is provided, described method comprises:
In the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives described voice data;
According to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
With described current broadcast sound volume playing audio data.
Alternatively, described in the time starting to receive the voice data of audiogenic device transmission, determine the start time point of the described voice data of reception, comprising:
With after audiogenic device is set up data and is connected, while starting to receive the voice data that described audiogenic device sends, determine the start time point that receives described voice data.
Alternatively, described according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume, comprising:
Obtain the end time point of last playing audio-fequency data;
If described start time point is greater than the first default duration with the mistiming of described end time point,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
Described method also comprises:
If described start time point is less than the first default duration with the mistiming of described end time point, the described end time is put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
Alternatively, if point of described start time is less than the first default duration with the mistiming of described end time point, is put to corresponding broadcast sound volume the described end time and be defined as current broadcast sound volume, comprising:
If described start time point is less than the first default duration with the mistiming of described end time point, and the described end time puts the lasting use duration of corresponding broadcast sound volume before described end time point and is greater than the second default duration, is put to corresponding broadcast sound volume the described end time and is defined as current broadcast sound volume;
Described method also comprises:
If putting the lasting use duration of corresponding broadcast sound volume before described end time point, the described end time is less than the second default duration,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume.
Alternatively, described method also comprises:
Volume of reception arranges instruction, and described volume arranges and in instruction, carries very first time section and the first broadcast sound volume;
Described very first time section and described the first broadcast sound volume are stored in the corresponding relation of described time period and broadcast sound volume.
Alternatively, described method also comprises:
Described current broadcast sound volume is sent to described audiogenic device, so that described audiogenic device is adjusted the broadcast sound volume of self according to described current broadcast sound volume.
According to the second aspect of disclosure embodiment, a kind of device of playing audio-fequency data is provided, described device comprises:
The first determination module, in the time starting to receive the voice data of audiogenic device transmission, determines the start time point that receives described voice data;
The second determination module, for according to pre-stored time period and the corresponding relation of broadcast sound volume, determines that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
Playing module, for described current broadcast sound volume playing audio data.
Alternatively, described the first determination module, for:
With after audiogenic device is set up data and is connected, while starting to receive the voice data that described audiogenic device sends, determine the start time point that receives described voice data.
Alternatively, described the second determination module, for:
Obtain the end time point of last playing audio-fequency data;
If described start time point is greater than the first default duration with the mistiming of described end time point,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
Described the second determination module, also for:
If described start time point is less than the first default duration with the mistiming of described end time point, the described end time is put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
Alternatively, described the second determination module, for:
If described start time point is less than the first default duration with the mistiming of described end time point, and the described end time puts the lasting use duration of corresponding broadcast sound volume before described end time point and is greater than the second default duration, is put to corresponding broadcast sound volume the described end time and is defined as current broadcast sound volume;
Described the second determination module, also for:
If putting the lasting use duration of corresponding broadcast sound volume before described end time point, the described end time is less than the second default duration,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume.
Alternatively, described device also comprises:
Receiver module, arranges instruction for volume of reception, and described volume arranges and in instruction, carries very first time section and the first broadcast sound volume;
Memory module, for storing described very first time section and described the first broadcast sound volume into the corresponding relation of described time period and broadcast sound volume.
Alternatively, described device also comprises:
Sending module, for described current broadcast sound volume is sent to described audiogenic device, so that described audiogenic device is adjusted the broadcast sound volume of self according to described current broadcast sound volume.
According to the third aspect of disclosure embodiment, a kind of device of playing audio-fequency data is provided, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
In the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives described voice data;
According to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
With described current broadcast sound volume playing audio data.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In disclosure embodiment, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data, according to pre-stored time period and the corresponding relation of broadcast sound volume, broadcast sound volume corresponding to time period of determining start time point place is current broadcast sound volume, play this voice data with current broadcast sound volume, like this, can rational broadcast sound volume be set respectively to the different time periods, so that the broadcast sound volume of random time section can be not excessive, make the output power of audio output apparatus can be very not large, thereby, can reduce the impact in the serviceable life on audio output apparatus.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in instructions and forms the part of this instructions, shows and meets embodiment of the present disclosure, and be used from and explain principle of the present disclosure with instructions one.In the accompanying drawings:
Fig. 1 is according to the process flow diagram of the method for a kind of playing audio-fequency data shown in an exemplary embodiment;
Fig. 2 is according to the system construction drawing of a kind of playing audio-fequency data shown in an exemplary embodiment;
Fig. 3 is according to the structural representation of the device of a kind of playing audio-fequency data shown in an exemplary embodiment;
Fig. 4 is according to the structural representation of a kind of audio output apparatus shown in an exemplary embodiment.
By above-mentioned accompanying drawing, the embodiment that the disclosure is clear and definite has been shown, will there is hereinafter more detailed description.These accompanying drawings and text description are not the scope in order to limit disclosure design by any mode, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present disclosure.
Embodiment mono-
Disclosure embodiment provides a kind of method of playing audio-fequency data, and as shown in Figure 1, the treatment scheme of the method can comprise following step:
In step 101, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data.
In step 102, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume.
In step 103, play above-mentioned voice data with current broadcast sound volume.
In disclosure embodiment, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data, according to pre-stored time period and the corresponding relation of broadcast sound volume, broadcast sound volume corresponding to time period of determining start time point place is current broadcast sound volume, play this voice data with current broadcast sound volume, like this, can rational broadcast sound volume be set respectively to the different time periods, so that the broadcast sound volume of random time section can be not excessive, make the output power of audio output apparatus can be very not large, thereby, can reduce the impact in the serviceable life on audio output apparatus.
Embodiment bis-
Disclosure embodiment provides a kind of method of playing audio-fequency data, and the method for playing audio-fequency data can be in audio output apparatus, and audio output apparatus can be intelligent sound box etc.In audio output apparatus, can comprise wireless connections module and/or set up the port of wired connection with audiogenic device, wherein, wireless connections module can be bluetooth module, WiFi (Wireless Fidelity, Wireless Fidelity) link block etc.In the present embodiment, taking executive agent as intelligent sound box, audiogenic device carries out the detailed description of scheme as mobile phone as example, the situation of miscellaneous equipment is similar with it, is not repeated.
Below in conjunction with embodiment, the treatment scheme shown in Fig. 1 is described in detail, content can be as follows:
In step 101, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data, the method for the present embodiment can be in audio output apparatus.
Wherein, audiogenic device is to provide the equipment of the voice data for playing, for example, and mobile phone, intelligent TV set, computer etc.
In force, as shown in Figure 2, audiogenic device can be set up data with audio output apparatus by the bluetooth module of self or WiFi link block etc. and be connected, in audiogenic device, audio player can be installed, when user starts audio player, and while selecting certain audio file to play, audiogenic device can send to audio output apparatus with the form of audio frame by corresponding voice data, audio output apparatus is in the time starting to receive the audio frame of this voice data, can record the start time point that receives this voice data, receive the time point of first audio frame.
Alternatively, can be only after audio output apparatus and audiogenic device are set up data and are connected for the first time when audio reception data, carry out the processing of this flow process, accordingly, the processing mode of above-mentioned steps 101 can comprise: with after audiogenic device is set up data and is connected, while starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data.
In force, audio output apparatus can be set up data with audiogenic device and be connected, the voice data sending for the first time for audiogenic device after successful connection, in the time that audio output apparatus starts audio reception data, can determine the start time point that receives this voice data, and carry out the processing of subsequent step.If certain moment, audio output apparatus finishes certain voice data of audiogenic device transmission, but this audiogenic device does not disconnect with audio output apparatus, and, in the time that audiogenic device sends other voice data to audio output apparatus again, audio output apparatus can keep broadcast sound volume constant.
In step 102, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume.
Wherein, current broadcast sound volume can be the volume that audio output apparatus is play current voice data.
In force, broadcast sound volume can be 0 decibel, 20 decibels, 30 decibels, 40 decibels, 60 decibels, 80 decibels and 100 decibels etc.In the different time periods, user's demand can be different, broadcast sound volume corresponding to each time period can be set like this in audio output apparatus, for example, for time period 14:00~18:00, user can be set to 60 decibels by broadcast sound volume, and for time period 0:00~6:00, user can be set to 20 decibels by broadcast sound volume.The corresponding relation of time period and broadcast sound volume can be arranged by user in the process using, and can be also to be arranged before audio output apparatus dispatches from the factory by technician, and setting up procedure can be referring to the detailed description in subsequent content.Above-mentioned corresponding relation can form form store, can be as shown in table 1.
Table 1
Time period | Broadcast sound volume |
0:00~6:00 | 20 decibels |
6:00~12:00 | 60 decibels |
12:00~14:00 | 40 decibels |
14:00~18:00 | 60 decibels |
18:00~21:00 | 80 decibels |
21:00~0:00 | 30 decibels |
Audio output apparatus can be according to start time point, determines the time period at start time point place, and searches in corresponding relation as shown in table 1, finds broadcast sound volume corresponding to this time period as current broadcast sound volume.
Alternatively, can certain execution trigger condition be set for above-mentioned steps 102, the processing mode of corresponding step 102 can comprise the following steps:
Step 1, obtains the end time point of last playing audio-fequency data.
In force, audio output apparatus can record the end time point of each playing audio-fequency data, and this end time put corresponding broadcast sound volume, in the time that user plays certain voice data by audio output apparatus again, audio output apparatus can extract the end time point of the last playing audio-fequency data of record.
Step 2, if start time point is greater than the first default duration with the mistiming of end time point, according to pre-stored time period and the corresponding relation of broadcast sound volume, determines that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume.
In force, audio output apparatus subtracts each other the start time point of current voice data and the end time point of the last voice data of playing, obtain the mistiming that both subtract each other, then, this mistiming and the first default duration (as 10 minutes) are compared, if this mistiming is greater than the first default duration, can be in the corresponding relation of pre-stored time period and broadcast sound volume, obtain broadcast sound volume corresponding to start time point place time period as current broadcast sound volume.For example, user finishes the broadcasting to certain voice data in the time of 15:00, and mobile phone is connected with intelligent sound box turn-off data, after a period of time, user again sets up data by mobile phone and intelligent sound box and is connected, and mobile phone sends other voice data to intelligent sound box again at 15:40, known, end time point is 15:00, start time point is 15:40, if the first default duration is 10 minutes, start time point is 40 minutes with the mistiming of end time point, be greater than 10 minutes, now, intelligent sound box is put 15:40 according to the start time, in corresponding relation as shown in table 1, search, obtain the time period 14:00~18:00 at 15:40 place, 60 decibels of its corresponding broadcast sound volumes are as current broadcast sound volume.
Alternatively, be less than the situation of the first default duration for the above-mentioned mistiming, can adopt alternate manner to determine current broadcast sound volume, corresponding processing can be: if start time point is less than the first default duration with the mistiming of end time point, the end time is put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
In force, the broadcast sound volume that audio output apparatus can record last playing audio-fequency data while finishing, it can be the broadcast sound volume of last audio frame of this voice data, if the mistiming that start time point and end time point subtract each other is while being less than the first default duration, obtain the end time of recording in audio output apparatus and put corresponding broadcast sound volume as current broadcast sound volume, like this, can seamlessly transit by the broadcast sound volume from the broadcast sound volume of last playing audio-fequency data to this playing audio-fequency data, can bring better auditory perception for user.
Alternatively, can reach certain numerical value at the lasting use duration that the above-mentioned end time is put corresponding broadcast sound volume, just this broadcast sound volume is set to current broadcast sound volume, corresponding processing mode comprises following content: if start time point is less than the first default duration with the mistiming of end time point, and the end time puts the lasting use duration of corresponding broadcast sound volume before end time point and is greater than the second default duration, the end time is put to corresponding broadcast sound volume and is defined as current broadcast sound volume.
In force, in the time that each broadcast sound volume changes, audio output apparatus can record and preserve certain time length (as 24 hours) to the lasting use duration of the broadcast sound volume using.If the above-mentioned mistiming is while being less than the first default duration, audio output apparatus can obtain the lasting use duration that the end time puts corresponding broadcast sound volume, and continue to use duration and the second default duration (as 3 minutes) to compare this, if this continues to use duration to be greater than the second default duration, can determine the broadcast sound volume that user has used while having adapted to last playing audio-fequency data, the end time can be put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
Alternatively, use duration to be less than the situation of the second default duration for continuing, can determine current broadcast sound volume according to above-mentioned corresponding relation, corresponding processing can be: be less than the second default duration if the end time is put the lasting use duration of corresponding broadcast sound volume before end time point,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume.
Like this, in the time that broadcast sound volume is too high, directly finish the situation of playing audio-fequency data for user, can prevent playing audio-fequency data next time time, continue to use too high broadcast sound volume.
In step 103, play above-mentioned voice data with the above-mentioned current broadcast sound volume of determining.
In force, the current broadcast sound volume that audio output apparatus can above-mentionedly be determined is set to the broadcast sound volume of audio output apparatus, and plays with this broadcast sound volume the voice data receiving.
Alternatively, audio output apparatus can feed back to audiogenic device by current broadcast sound volume, so that audiogenic device regulates and synchronizes with the broadcast sound volume of audio output apparatus, corresponding processing mode can comprise following content: the above-mentioned current broadcast sound volume of determining is sent to audiogenic device, so that audiogenic device is adjusted the broadcast sound volume of self according to current broadcast sound volume.
In force, audio output apparatus can be according to current broadcast sound volume, generates volume adjustment request, and sends to audiogenic device.In audiogenic device, can be provided with the source of sound volume level for volume adjusting, as the source of sound volume level of mobile phone can be respectively 0,1,2,3,4 and 5, and the mapping relations of the broadcast sound volume of source of sound volume level and audio output apparatus can be set, if the broadcast sound volume of the audio output apparatus corresponding with the source of sound volume level 0,1,2,3,4,5 of above-mentioned mobile phone can be 0 decibel, 20 decibels, 40 decibels, 60 decibels, 80 decibels and 100 decibels.If the current broadcast sound volume that audio output apparatus is determined is 80 decibels, current broadcast sound volume is sent to after audiogenic device, audiogenic device, according to above-mentioned mapping relations, adjusts to 4 by the source of sound volume level of self.
In disclosure embodiment, the mode that the corresponding relation of above-mentioned time period and broadcast sound volume is arranged can be varied, and a kind of feasible processing mode is below provided, and can comprise following content:
Volume of reception arranges instruction, and volume arranges and in instruction, carries very first time section and the first broadcast sound volume; Very first time section and the first broadcast sound volume are stored in the corresponding relation of time period and broadcast sound volume.
In force, when user need to set up or adjust the corresponding relation of time period and broadcast sound volume, can click the button that arranges of audio output apparatus, then section input time (being very first time section) and corresponding broadcast sound volume (i.e. the first broadcast sound volume), in the time clicking confirming button, trigger volume instruction is set, wherein can carry very first time section and the first corresponding broadcast sound volume that user arranges.Audio output apparatus can extract volume very first time section and the first broadcast sound volume in instruction is set, and by above-mentioned storing into of their correspondences mapping table.
In disclosure embodiment, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data, according to pre-stored time period and the corresponding relation of broadcast sound volume, broadcast sound volume corresponding to time period of determining start time point place is current broadcast sound volume, play this voice data with current broadcast sound volume, like this, can rational broadcast sound volume be set respectively to the different time periods, so that the broadcast sound volume of random time section can be not excessive, make the output power of audio output apparatus can be very not large, thereby, can reduce the impact in the serviceable life on audio output apparatus.
Embodiment tri-
Based on identical technical conceive, disclosure embodiment also provides a kind of device of playing audio-fequency data, and as shown in Figure 3, this device comprises: the first determination module 310, the second determination modules 320 and playing module 330.
The first determination module 310, is configured to, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data;
The second determination module 320, is configured to according to pre-stored time period and the corresponding relation of broadcast sound volume, determines that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume;
Playing module 330, is configured to play above-mentioned voice data with current broadcast sound volume.
Alternatively, the first determination module 310, is configured to:
With after audiogenic device is set up data and is connected, while starting to receive the voice data that audiogenic device sends, determine the start time point that receives this voice data.
Alternatively, the second determination module 320, is configured to:
Obtain the end time point of last playing audio-fequency data;
If start time point is greater than the first default duration with the mistiming of end time point, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume;
The second determination module 320, is configured to:
If start time point is less than the first default duration with the mistiming of end time point, the end time is put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
Alternatively, the second determination module 320, is configured to:
If start time point is less than the first default duration with the mistiming of end time point, and the end time puts the lasting use duration of corresponding broadcast sound volume before end time point and is greater than the second default duration, is put to corresponding broadcast sound volume the end time and is defined as current broadcast sound volume;
The second determination module 320, is configured to:
If putting the lasting use duration of corresponding broadcast sound volume before end time point, institute's end time is less than the second default duration,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume.
Alternatively, this device also comprises:
Receiver module, is configured to volume of reception instruction is set, and volume arranges and in instruction, carries very first time section and the first broadcast sound volume;
Memory module, is configured to very first time section and the first broadcast sound volume to store in the corresponding relation of time period and broadcast sound volume.
Alternatively, this device also comprises:
Sending module, is configured to current broadcast sound volume to send to audiogenic device, so that audiogenic device is adjusted the broadcast sound volume of self according to current broadcast sound volume.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
In disclosure embodiment, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data, according to pre-stored time period and the corresponding relation of broadcast sound volume, broadcast sound volume corresponding to time period of determining start time point place is current broadcast sound volume, play this voice data with current broadcast sound volume, like this, can rational broadcast sound volume be set respectively to the different time periods, so that the broadcast sound volume of random time section can be not excessive, make the output power of audio output apparatus can be very not large, thereby, can reduce the impact in the serviceable life on audio output apparatus.
It should be noted that: the device of the playing audio-fequency data that above-described embodiment provides is in the time of playing audio-fequency data, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the inner structure of audio output apparatus, to complete all or part of function described above.In addition, the device of the playing audio-fequency data that above-described embodiment provides and the embodiment of the method for playing audio-fequency data belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment tetra-
Fig. 4 is according to the structural representation of a kind of audio output apparatus shown in an exemplary embodiment.This audio output apparatus can be intelligent sound box or Baffle Box of Bluetooth etc.
With reference to Fig. 4, audio output apparatus 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
Processing components 802 is controlled the integrated operation of audio output apparatus 800 conventionally, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Treatment element 802 can comprise that one or more processors 820 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more modules, is convenient to mutual between processing components 802 and other assemblies.For example, processing element 802 can comprise multi-media module, to facilitate mutual between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of audio output apparatus 800.The example of these data comprises for any application program of operation on audio output apparatus 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 806 is audio output apparatus 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for audio output apparatus 800.
Multimedia groupware 808 is included in the screen that an output interface is provided between described audio output apparatus 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When audio output apparatus 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 comprises a microphone (MIC), and when audio output apparatus 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal receiving can be further stored in storer 804 or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensors, is used to audio output apparatus 800 that the state estimation of various aspects is provided.For example, sensor module 814 can detect the opening/closing state of audio output apparatus 800, the relative positioning of assembly, for example described assembly is display and the keypad of audio output apparatus 800, the position that sensor module 814 can also detect audio output apparatus 800 or 800 1 assemblies of audio output apparatus changes, the existence that user contacts with audio output apparatus 800 or do not have the temperature variation of audio output apparatus 800 orientation or acceleration/deceleration and audio output apparatus 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to be convenient to the communication of wired or wireless mode between audio output apparatus 800 and other equipment.Audio output apparatus 800 can access the wireless network based on communication standard, as WiFi, and 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, audio output apparatus 800 can be realized by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the storer 804 of instruction, above-mentioned instruction can have been carried out said method by the processor of audio output apparatus 800 820.For example, described non-provisional computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
A kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of audio output apparatus, makes audio output apparatus can carry out a kind of method of playing audio-fequency data, and the method comprises:
In the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data;
According to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume;
Play this voice data with current broadcast sound volume.
Alternatively, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data, comprising:
With after audiogenic device is set up data and is connected, while starting to receive the voice data that audiogenic device sends, determine the start time point that receives this voice data.
Alternatively, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume, comprising:
Obtain the end time point of last playing audio-fequency data;
If start time point is greater than the first default duration with the mistiming of end time point, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume;
The method also comprises:
If start time point is less than the first default duration with the mistiming of end time point, the end time is put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
Alternatively, if start time point is less than the first default duration with the mistiming of end time point, is put to corresponding broadcast sound volume the end time and be defined as current broadcast sound volume, comprising:
If start time point is less than the first default duration with the mistiming of end time point, and the end time puts the lasting use duration of corresponding broadcast sound volume before end time point and is greater than the second default duration, is put to corresponding broadcast sound volume the end time and is defined as current broadcast sound volume;
The method also comprises:
If putting the lasting use duration of corresponding broadcast sound volume before end time point, the end time is less than the second default duration,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at start time point place is current broadcast sound volume.
Alternatively, the method also comprises:
Volume of reception arranges instruction, and volume arranges and in instruction, carries very first time section and the first broadcast sound volume;
Very first time section and the first broadcast sound volume are stored in the corresponding relation of time period and broadcast sound volume.
Alternatively, the method also comprises:
Current broadcast sound volume is sent to audiogenic device, so that audiogenic device is adjusted the broadcast sound volume of self according to current broadcast sound volume.
In disclosure embodiment, in the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives this voice data, according to pre-stored time period and the corresponding relation of broadcast sound volume, broadcast sound volume corresponding to time period of determining start time point place is current broadcast sound volume, play this voice data with current broadcast sound volume, like this, can rational broadcast sound volume be set respectively to the different time periods, so that the broadcast sound volume of random time section can be not excessive, make the output power of audio output apparatus can be very not large, thereby, can reduce the impact in the serviceable life on audio output apparatus.
Those skilled in the art, considering instructions and putting into practice after disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendments and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.
Claims (13)
1. a method for playing audio-fequency data, is characterized in that, described method comprises:
In the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives described voice data;
According to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
With described current broadcast sound volume playing audio data.
2. method according to claim 1, is characterized in that, described in the time starting to receive the voice data of audiogenic device transmission, determines the start time point of the described voice data of reception, comprising:
With after audiogenic device is set up data and is connected, while starting to receive the voice data that described audiogenic device sends, determine the start time point that receives described voice data.
3. method according to claim 1, is characterized in that, described according to pre-stored time period and the corresponding relation of broadcast sound volume, determines that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume, comprising:
Obtain the end time point of last playing audio-fequency data;
If described start time point is greater than the first default duration with the mistiming of described end time point,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
Described method also comprises:
If described start time point is less than the first default duration with the mistiming of described end time point, the described end time is put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
4. method according to claim 3, is characterized in that, if point of described start time is less than the first default duration with the mistiming of described end time point, is put to corresponding broadcast sound volume the described end time and is defined as current broadcast sound volume, comprising:
If described start time point is less than the first default duration with the mistiming of described end time point, and the described end time puts the lasting use duration of corresponding broadcast sound volume before described end time point and is greater than the second default duration, is put to corresponding broadcast sound volume the described end time and is defined as current broadcast sound volume;
Described method also comprises:
If putting the lasting use duration of corresponding broadcast sound volume before described end time point, the described end time is less than the second default duration,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume.
5. method according to claim 1, is characterized in that, described method also comprises:
Volume of reception arranges instruction, and described volume arranges and in instruction, carries very first time section and the first broadcast sound volume;
Described very first time section and described the first broadcast sound volume are stored in the corresponding relation of described time period and broadcast sound volume.
6. method according to claim 1, is characterized in that, described method also comprises:
Described current broadcast sound volume is sent to described audiogenic device, so that described audiogenic device is adjusted the broadcast sound volume of self according to described current broadcast sound volume.
7. a device for playing audio-fequency data, is characterized in that, described device comprises:
The first determination module, in the time starting to receive the voice data of audiogenic device transmission, determines the start time point that receives described voice data;
The second determination module, for according to pre-stored time period and the corresponding relation of broadcast sound volume, determines that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
Playing module, for described current broadcast sound volume playing audio data.
8. device according to claim 7, is characterized in that, described the first determination module, for:
With after audiogenic device is set up data and is connected, while starting to receive the voice data that described audiogenic device sends, determine the start time point that receives described voice data.
9. device according to claim 7, is characterized in that, described the second determination module, for:
Obtain the end time point of last playing audio-fequency data;
If described start time point is greater than the first default duration with the mistiming of described end time point,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
Described the second determination module, also for:
If described start time point is less than the first default duration with the mistiming of described end time point, the described end time is put to corresponding broadcast sound volume and be defined as current broadcast sound volume.
10. device according to claim 9, is characterized in that, described the second determination module, for:
If described start time point is less than the first default duration with the mistiming of described end time point, and the described end time puts the lasting use duration of corresponding broadcast sound volume before described end time point and is greater than the second default duration, is put to corresponding broadcast sound volume the described end time and is defined as current broadcast sound volume;
Described the second determination module, also for:
If putting the lasting use duration of corresponding broadcast sound volume before described end time point, the described end time is less than the second default duration,, according to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume.
11. devices according to claim 7, is characterized in that, described device also comprises:
Receiver module, arranges instruction for volume of reception, and described volume arranges and in instruction, carries very first time section and the first broadcast sound volume;
Memory module, for storing described very first time section and described the first broadcast sound volume into the corresponding relation of described time period and broadcast sound volume.
12. devices according to claim 7, is characterized in that, described device also comprises:
Sending module, for described current broadcast sound volume is sent to described audiogenic device, so that described audiogenic device is adjusted the broadcast sound volume of self according to described current broadcast sound volume.
The device of 13. 1 kinds of playing audio-fequency datas, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
In the time starting to receive the voice data of audiogenic device transmission, determine the start time point that receives described voice data;
According to pre-stored time period and the corresponding relation of broadcast sound volume, determine that the broadcast sound volume corresponding to time period at described start time point place is current broadcast sound volume;
With described current broadcast sound volume playing audio data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410290213.2A CN104112459B (en) | 2014-06-25 | 2014-06-25 | Method and apparatus for playing audio data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410290213.2A CN104112459B (en) | 2014-06-25 | 2014-06-25 | Method and apparatus for playing audio data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104112459A true CN104112459A (en) | 2014-10-22 |
CN104112459B CN104112459B (en) | 2017-02-15 |
Family
ID=51709216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410290213.2A Active CN104112459B (en) | 2014-06-25 | 2014-06-25 | Method and apparatus for playing audio data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104112459B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105162427A (en) * | 2015-08-27 | 2015-12-16 | 深圳Tcl数字技术有限公司 | Playing handling method and device for audio switching |
CN105185398A (en) * | 2015-07-09 | 2015-12-23 | 广东欧珀移动通信有限公司 | Playing scene starting method and device |
CN105930377A (en) * | 2016-04-12 | 2016-09-07 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for obtaining envelope pictures |
CN105955700A (en) * | 2016-06-16 | 2016-09-21 | 广东欧珀移动通信有限公司 | Sound effect adjusting method and user terminal |
EP3147907A1 (en) * | 2015-09-25 | 2017-03-29 | Xiaomi Inc. | Control method and apparatus for playing audio |
CN107197101A (en) * | 2017-06-23 | 2017-09-22 | 努比亚技术有限公司 | Audio regulation method, mobile terminal and computer-readable recording medium |
CN107360326A (en) * | 2017-07-17 | 2017-11-17 | 北京小米移动软件有限公司 | terminal volume adjusting processing method and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929574A (en) * | 2005-09-06 | 2007-03-14 | 深圳Tcl新技术有限公司 | Method for timing volume control of audio-visual apparatus |
JP2008061062A (en) * | 2006-09-01 | 2008-03-13 | Sharp Corp | Video/audio output device |
CN101610302A (en) * | 2009-07-17 | 2009-12-23 | 中兴通讯股份有限公司南京分公司 | A kind of method of automatic adjusting ringtone volume of terminal and terminal |
CN102111591A (en) * | 2009-12-23 | 2011-06-29 | 康佳集团股份有限公司 | Television as well as method and system for controlling power-on volume of television |
CN103458339A (en) * | 2012-06-01 | 2013-12-18 | 联想(北京)有限公司 | Audio output control method and electronic equipment |
-
2014
- 2014-06-25 CN CN201410290213.2A patent/CN104112459B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929574A (en) * | 2005-09-06 | 2007-03-14 | 深圳Tcl新技术有限公司 | Method for timing volume control of audio-visual apparatus |
JP2008061062A (en) * | 2006-09-01 | 2008-03-13 | Sharp Corp | Video/audio output device |
CN101610302A (en) * | 2009-07-17 | 2009-12-23 | 中兴通讯股份有限公司南京分公司 | A kind of method of automatic adjusting ringtone volume of terminal and terminal |
CN102111591A (en) * | 2009-12-23 | 2011-06-29 | 康佳集团股份有限公司 | Television as well as method and system for controlling power-on volume of television |
CN103458339A (en) * | 2012-06-01 | 2013-12-18 | 联想(北京)有限公司 | Audio output control method and electronic equipment |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105185398A (en) * | 2015-07-09 | 2015-12-23 | 广东欧珀移动通信有限公司 | Playing scene starting method and device |
CN105185398B (en) * | 2015-07-09 | 2018-06-29 | 广东欧珀移动通信有限公司 | A kind of broadcasting scene starts method and device |
CN105162427A (en) * | 2015-08-27 | 2015-12-16 | 深圳Tcl数字技术有限公司 | Playing handling method and device for audio switching |
EP3147907A1 (en) * | 2015-09-25 | 2017-03-29 | Xiaomi Inc. | Control method and apparatus for playing audio |
US10324682B2 (en) | 2015-09-25 | 2019-06-18 | Xiaomi Inc. | Method, apparatus, and storage medium for controlling audio playing based on playing environment |
CN105930377A (en) * | 2016-04-12 | 2016-09-07 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for obtaining envelope pictures |
CN105955700A (en) * | 2016-06-16 | 2016-09-21 | 广东欧珀移动通信有限公司 | Sound effect adjusting method and user terminal |
CN107197101A (en) * | 2017-06-23 | 2017-09-22 | 努比亚技术有限公司 | Audio regulation method, mobile terminal and computer-readable recording medium |
CN107360326A (en) * | 2017-07-17 | 2017-11-17 | 北京小米移动软件有限公司 | terminal volume adjusting processing method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104112459B (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3163748B1 (en) | Method, device and terminal for adjusting volume | |
CN104112459A (en) | Method and apparatus for playing audio data | |
CN103926890A (en) | Intelligent terminal control method and device | |
CN104699248A (en) | Electronic equipment, device and method for control of audio play | |
CN104378485A (en) | Volume adjustment method and volume adjustment device | |
CN104219388A (en) | Voice control method and device | |
CN104378501A (en) | Phone number naming method and device | |
CN104902059A (en) | Call reminding method and device | |
CN105187594A (en) | Echo canceling method and device | |
CN104021148A (en) | Method and device for adjusting sound effect | |
CN105159672A (en) | Remote assistance method and client | |
CN105159523A (en) | Target function enabling method, apparatus and system | |
CN105406828A (en) | Sound equipment adjustment method and device | |
CN103986821A (en) | Method, equipment and system for carrying out parameter adjustment | |
CN105337800A (en) | Polling frequency adjustment method and polling frequency adjustment device | |
CN104837154A (en) | Wireless access point control method and device | |
CN105407368A (en) | Multimedia playing method, device and system | |
CN104636110A (en) | Method and device for controlling volume | |
CN104394137A (en) | Voice call reminding method and device | |
CN104378715A (en) | Device and method for lowering earphone POP sound | |
CN105511307A (en) | Control method and apparatus of electronic device | |
CN104539871A (en) | Multimedia call method and device | |
CN105451056A (en) | Audio and video synchronization method and device | |
CN105101013A (en) | Method and device for playing voice signals | |
CN104159283A (en) | Method and device for controlling message transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |