Movatterモバイル変換


[0]ホーム

URL:


CN104112460B - Method and device for playing audio data - Google Patents

Method and device for playing audio data
Download PDF

Info

Publication number
CN104112460B
CN104112460BCN201410301674.5ACN201410301674ACN104112460BCN 104112460 BCN104112460 BCN 104112460BCN 201410301674 ACN201410301674 ACN 201410301674ACN 104112460 BCN104112460 BCN 104112460B
Authority
CN
China
Prior art keywords
sound source
output volume
volume level
levels
volume levels
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.)
Active
Application number
CN201410301674.5A
Other languages
Chinese (zh)
Other versions
CN104112460A (en
Inventor
王爱军
茹忆
黄忠辉
陈良思
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi IncfiledCriticalXiaomi Inc
Priority to CN201410301674.5ApriorityCriticalpatent/CN104112460B/en
Publication of CN104112460ApublicationCriticalpatent/CN104112460A/en
Application grantedgrantedCritical
Publication of CN104112460BpublicationCriticalpatent/CN104112460B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention relates to a method and device for playing audio data, and belongs to the technical field of computers. The method includes: receiving a volume setting message carrying a first sound source volume level and sent by sound source equipment; determining a first output volume level corresponding to the first sound source volume level according to a prestored corresponding relation of a plurality of sound source volume levels and a plurality of adjacent output volume levels; the total of the sound source volume levels of the sound source equipment being smaller than that of the local output volume levels; and playing audio data sent by the sound source equipment according to the first output volume level. By adoption of the method for playing audio data, precision of volume adjustment can be improved.

Description

Method and device for playing audio data
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for playing audio data.
Background
With the continuous development of terminal technology, peripheral devices of terminals, such as audio output devices, have been developed rapidly. A certain number of volume levels (which may be referred to as output volume levels) are provided in the audio output device for volume adjustment. The user can connect the audio output device with sound source equipment such as a mobile phone or a computer in a wired or wireless mode, and can play audio data sent by the sound source equipment through the audio output device. The linkage adjustment means that when the volume level of any one of the sound source device and the audio output device is adjusted, the volume level of the other device is automatically changed correspondingly.
Usually, a sound source device (e.g., a mobile phone) is also provided with a certain number of sound level (which may be referred to as sound source sound level) for volume adjustment, for example, 6 sound source sound levels are 0,1, 2,3, 4, and 5, different sound levels respectively correspond to different playing volumes, and the sound source sound level can be adjusted by adjusting a sound volume adjustment key of the sound source device. The sound source equipment can send the volume setting message carrying the current sound source volume level of the sound source equipment to the audio output equipment, and the audio output equipment can play the audio data sent by the sound source equipment at the corresponding playing volume according to the received sound source volume level. For example, 6 sound source volume levels of 0,1, 2,3, 4, and 5 may be set in the sound source device, if the sound source volume level sent by the sound source device is 0, the audio output device plays the audio data sent by the sound source device at a playing volume of 0, and if the sound source volume level sent by the sound source device is 5, the audio output device plays the audio data sent by the sound source device at a maximum playing volume.
In carrying out the present disclosure, the inventors found that at least the following problems exist:
because the number of the sound source volume levels of a common sound source device (such as a mobile phone) is small (such as 6), the difference between the playing volume levels of the audio output devices corresponding to the two adjacent sound source volume levels is large, and when a user is in a quiet environment, the playing volume level needs to be adjusted down, so that even if the user adjusts the sound source volume level to 1, the playing volume level of the audio output device is still high, and if the sound source volume level is adjusted down to 0, the playing volume level of the audio output device is 0, and the accuracy of adjusting the volume is poor.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for playing audio data. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method of playing audio data, the method including:
receiving a volume setting message carrying a first sound source volume level sent by sound source equipment;
determining a first output volume level corresponding to the first sound source volume level according to a pre-stored corresponding relationship between a plurality of sound source volume levels and a plurality of adjacent output volume levels; the total number of sound source volume levels of the sound source equipment is smaller than the total number of local output volume levels;
and playing the audio data sent by the sound source equipment according to the first output volume level.
Optionally, the determining, according to a correspondence between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels, a first output volume level corresponding to the first sound source volume level includes:
selecting the corresponding relation between the sound source volume levels and the adjacent output volume levels of the time period in which the current time point is located from the prestored corresponding relations between the sound source volume levels and the adjacent output volume levels of the different time periods;
and determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between the selected sound source volume levels and the adjacent output volume levels.
Optionally, the method further comprises:
receiving a setting instruction, wherein the setting instruction carries a second output volume level;
determining a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels according to the second output volume level and the total number of the sound source volume levels;
and establishing a corresponding relation between the sound source volume levels and the adjacent output volume levels according to all the sound source volume levels of the sound source equipment and the determined adjacent output volume levels, and storing the corresponding relation.
Optionally, the determining, according to the second output volume level and the total number of the source volume levels, a number of adjacent output volume levels equal to the total number of the source volume levels includes:
in the local output volume level, a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels are obtained from the second output volume level according to the sequence of gradual increase; or,
and in the local output volume level, a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels are obtained from the second output volume level according to the order of gradual decrease.
Optionally, the method further comprises:
determining the distribution situation information of the sound source volume level used by the sound source equipment in the previous period when the preset period is reached;
and according to the distribution condition information, increasing or decreasing the output volume level corresponding to each sound source volume level in the corresponding relationship by a preset value together.
Optionally, the determining, according to a correspondence between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels, a first output volume level corresponding to the first sound source volume level includes:
if the sound source equipment and the local adopt a volume linkage adjusting mode, determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels;
the method further comprises the following steps:
if the sound source equipment and the local adopt a non-volume linkage adjusting mode, determining a first output volume level corresponding to the time period of the current time point according to the corresponding relation between the pre-stored time period and the output volume level;
the playing the audio data sent by the sound source equipment according to the first output volume level comprises:
and if the sound source equipment and the local equipment adopt a non-volume linkage adjusting mode, playing the audio data sent by the sound source equipment according to the first output volume level and the first sound source volume level.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for playing audio data, the apparatus comprising:
the receiving module is used for receiving a volume setting message which is sent by the sound source equipment and carries a first sound source volume level;
the determining module is used for determining a first output volume level corresponding to the first sound source volume level according to the corresponding relationship between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels; the total number of sound source volume levels of the sound source equipment is smaller than the total number of local output volume levels;
and the playing module is used for playing the audio data sent by the sound source equipment according to the first output volume level.
Optionally, the determining module is configured to:
selecting the corresponding relation between the sound source volume levels and the adjacent output volume levels of the time period in which the current time point is located from the prestored corresponding relations between the sound source volume levels and the adjacent output volume levels of the different time periods;
and determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between the selected sound source volume levels and the adjacent output volume levels.
Optionally, the apparatus further comprises a storage module configured to:
receiving a setting instruction, wherein the setting instruction carries a second output volume level;
determining a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels according to the second output volume level and the total number of the sound source volume levels;
and establishing a corresponding relation between the sound source volume levels and the adjacent output volume levels according to all the sound source volume levels of the sound source equipment and the determined adjacent output volume levels, and storing the corresponding relation.
Optionally, the storage module is configured to:
in the local output volume level, a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels are obtained from the second output volume level according to the sequence of gradual increase; or,
and in the local output volume level, a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels are obtained from the second output volume level according to the order of gradual decrease.
Optionally, the apparatus further comprises an adjustment module for:
determining the distribution situation information of the sound source volume level used by the sound source equipment in the previous period when the preset period is reached;
and according to the distribution condition information, increasing or decreasing the output volume level corresponding to each sound source volume level in the corresponding relationship by a preset value together.
Optionally, the determining module is configured to:
if the sound source equipment and the local adopt a volume linkage adjusting mode, determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels;
the determining module is further configured to:
if the sound source equipment and the local adopt a non-volume linkage adjusting mode, determining a first output volume level corresponding to the time period of the current time point according to the corresponding relation between the pre-stored time period and the output volume level;
the playing module is used for:
and if the sound source equipment and the local equipment adopt a non-volume linkage adjusting mode, playing the audio data sent by the sound source equipment according to the first output volume level and the first sound source volume level.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for playing audio data, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a volume setting message carrying a first sound source volume level sent by sound source equipment;
determining a first output volume level corresponding to the first sound source volume level according to a pre-stored corresponding relationship between a plurality of sound source volume levels and a plurality of adjacent output volume levels; the total number of sound source volume levels of the sound source equipment is smaller than the total number of local output volume levels;
and playing the audio data sent by the sound source equipment according to the first output volume level.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, a volume setting message carrying a first sound source volume level and sent by a sound source device is received, a first output volume level corresponding to the first sound source volume level is determined according to a pre-stored correspondence relationship between a plurality of sound source volume levels and a plurality of adjacent output volume levels, the total number of the sound source volume levels of the sound source device is smaller than the total number of local output volume levels, and audio data sent by the sound source device is played according to the first output volume level.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method of playing audio data in accordance with an exemplary embodiment;
FIG. 2 is a diagram illustrating a system for playing audio data in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating an apparatus for playing audio data according to an exemplary embodiment;
fig. 4 is a schematic diagram illustrating the structure of an audio output device according to an exemplary embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Example one
An embodiment of the present disclosure provides a method for playing audio data, and as shown in fig. 1, a processing flow of the method may include the following steps:
in step 101, a volume setting message carrying a first sound source volume level sent by a sound source device is received.
In step 102, determining a first output volume level corresponding to the first sound source volume level according to a pre-stored correspondence between a plurality of sound source volume levels and a plurality of adjacent output volume levels; the total number of source volume levels of the source device is less than the total number of local output volume levels.
In step 103, according to the first output volume level, audio data sent by the sound source device is played.
In the embodiment of the disclosure, a volume setting message carrying a first sound source volume level and sent by a sound source device is received, a first output volume level corresponding to the first sound source volume level is determined according to a pre-stored correspondence relationship between a plurality of sound source volume levels and a plurality of adjacent output volume levels, the total number of the sound source volume levels of the sound source device is smaller than the total number of local output volume levels, and audio data sent by the sound source device is played according to the first output volume level.
Example two
The embodiment of the present disclosure provides a method for playing audio data, which may be used in an audio output device, where the audio output device may be a smart speaker, an earphone, or the like. The audio output device may include a Wireless connection module and/or a port for establishing a wired connection with the audio source device, where the Wireless connection module may be a bluetooth module, a WiFi (Wireless Fidelity) connection module, or the like. In this embodiment, the details of the scheme are described by taking the execution subject as an intelligent sound box and the sound source device as a mobile phone, and the situations of other devices are similar and will not be described again.
The process flow shown in fig. 1 will be described in detail below with reference to the embodiments, and the contents may be as follows:
in step 101, a volume setting message carrying a first sound source volume level sent by a sound source device is received.
The sound source device may have a plurality of sound source volume levels for adjusting the volume, for example, a mobile phone may have 6 sound source volume levels, such as 0,1, 2,3, 4, and 5. The first sound source volume level may be a sound source volume level currently used by the sound source device, for example, the first sound source volume level of the mobile phone may be 2. The volume setting message may be a message carrying an audio frame of audio data, and the message may carry the audio frame and the first sound source volume level at the same time, or the volume setting message may be a setting message sent independently.
In implementation, as shown in fig. 2, when a user adjusts a sound source volume level of a sound source device, the sound source device may send a volume setting message to an audio output device, where the volume setting message carries the adjusted sound source volume level (i.e. a first sound source volume level), and the volume setting message may be a setting message sent independently when the current sound source device does not send audio data to the audio output device, and may be a message carrying an audio frame of the audio data and the adjusted sound source volume level when the current sound source device is sending audio data to the audio output device.
In step 102, determining a first output volume level corresponding to the first sound source volume level according to a pre-stored correspondence between a plurality of sound source volume levels and a plurality of adjacent output volume levels; the total number of source volume levels of the source device is less than the total number of local output volume levels.
Among them, the audio output device may be provided with a plurality of output volume levels for adjusting the volume, for example, the output volume level is 0,1, 2,3 … … 35.
In implementation, according to different requirements of users, the audio output device may set a one-to-one correspondence relationship between all sound source volume levels of the sound source device and a plurality of adjacent output volume levels, where the number of the plurality of adjacent output volume levels is the same as the total number of all sound source volume levels of the sound source device. In the corresponding relationship, optionally, the output volume level is gradually increased along with the gradual increase of the corresponding sound source volume level. The corresponding relationship may be set by a user during the use process, or may be set by a technician before the audio output device leaves the factory, and the setting process may refer to the detailed description in the following contents. The correspondence may be stored in a table form, for example, 6 sound source volume levels, which may be 0,1, 2,3, 4, and 5, are provided in the sound source device, and 36 output volume levels, which may be 0,1, 2, and 3 … … 35, are provided in the audio output device, and the correspondence may be as shown in table 1.
TABLE 1
Volume level of sound sourceOutput volume level
07
18
29
310
411
512
The audio output device may search, according to the first sound source volume level sent by the sound source device, the correspondence between all the sound source volume levels of the sound source device and the plurality of adjacent output volume levels shown in table 1, and find the output volume level corresponding to the first sound source volume level (i.e., the first output volume level).
Optionally, different corresponding relationships may be set in different time periods, and correspondingly, the processing manner of step 102 may include the following steps:
step one, selecting the corresponding relation between the sound source volume levels and the adjacent output volume levels of the time period in which the current time point is located from the prestored corresponding relations between the sound source volume levels and the adjacent output volume levels of the different time periods.
In implementation, the output volume levels may be 0,1, 2, and 3 … … 35, and the requirements of the user for the volume may be different in different time periods, so that the correspondence between a plurality of sound source volume levels and a plurality of adjacent output volume levels may be set in the audio output device for different time periods, and the correspondence between different time periods may be stored in a table, where table 2 shows the correspondence of some time periods, as shown in table 2.
TABLE 2
The audio output device may obtain the current time point, determine the time period in which the current time point is located, search for the correspondence shown in table 2, and find the correspondence between the multiple sound source volume levels and the multiple adjacent output volume levels in the time period. For example, the current time point is 10:00, the time period of the current time point is 7:00 to 12:00, and the corresponding relationship between the sound source volume levels and the adjacent output volume levels in the time period of 7:00 to 12:00 can be found in table 2.
And step two, determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between the selected sound source volume levels and the adjacent output volume levels.
Optionally, an execution trigger condition may be set for the step 102, and the corresponding processing procedure of the step 102 may be as follows: and if the sound source equipment and the audio output equipment adopt a volume linkage adjusting mode, determining a first output volume level corresponding to the first sound source volume level according to the corresponding relationship between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels.
The volume linkage adjustment mode is a volume adjustment mode in which the volume level of any one of the sound source device and the audio output device is adjusted while the volume level of the other device is changed, for example, as shown in table 1, the volume level of the sound source of the mobile phone is adjusted to 5, and at this time, the smart sound box automatically adjusts the output volume level of the smart sound box to the corresponding output volume level 12.
Optionally, for the case that a non-volume linkage adjustment mode is adopted between the two devices, the corresponding processing modes may be various, and a feasible processing mode is provided as follows: and if the sound source equipment and the audio output equipment adopt a non-volume linkage adjusting mode, determining a first output volume level corresponding to the time period of the current time point according to the corresponding relation between the pre-stored time period and the output volume level.
In implementation, the output volume level may be 0,1, 2, and 3 … … 35, and the user's requirements for volume may be different in different time periods, so that the output volume level corresponding to each time period may be set in the audio output device, for example, for the time period 7:00 to 12:00, the user may set the output volume level to 20, and for the time period 22:00 to 0:00, the user may set the output volume level to 10. The corresponding relationship between the time period and the output volume level may be set by the user during the use process, or may be set by a technician before the audio output device leaves the factory. The correspondence may be stored in the form of a table, which may be as shown in table 3.
TABLE 3
Time periodOutput volume level
0:00~7:005
7:00~12:0020
12:00~14:0015
14:00~18:0022
18:00~22:0028
22:00~0:0010
The audio output device may obtain a time point (i.e., a current time point) at which the volume setting message is received, determine a time period in which the current time point is located, search for a corresponding relationship shown in table 3, and find an output volume level (i.e., a first output volume level) corresponding to the time period.
In step 103, according to the first output volume level, audio data sent by the sound source device is played.
In an implementation, each output volume level of the audio output device may correspond to a playing volume, for example, the output volume level may be 0,1, 2, and 3 … … 35, the playing volume corresponding to the output volume level 1 may be 5 db, the playing volume corresponding to the output volume level 2 may be 10 db, the playing volume corresponding to the output volume level 3 may be 15 db, the playing volume corresponding to the output volume level 30 may be 150 db, and the like. The audio output device may determine, according to the first output volume level, a playing volume corresponding to the first output volume, and when receiving the audio data sent by the sound source device, the audio output device may play the audio data at the playing volume.
Optionally, for the case that the sound source device and the audio output device adopt the non-volume linkage adjustment mode, the processing manner of step 103 may include the following: and if the sound source equipment and the audio output equipment adopt a non-volume linkage adjusting mode, playing audio data sent by the sound source equipment according to the first output volume level and the first sound source volume level.
In implementation, the audio output device may determine, according to the first output volume level and the first sound source volume level, a playing volume of the audio output device, and when receiving the audio data sent by the sound source device, the audio output device may play the audio data at the playing volume.
In the embodiment of the present disclosure, the processing manner for setting the correspondence between the multiple sound source volume levels and the multiple adjacent output volume levels may be various, and a feasible processing manner is given below, which may include the following steps:
step one, receiving a setting instruction, wherein the setting instruction carries a second output volume level.
In implementation, a user may enter a corresponding setting page by clicking a setting button of the audio output device, and in the setting page, the user may input an output volume level (i.e., a second output volume level), which may be a lowest output volume level or a highest output volume level in the above correspondence, and when the user clicks the determination button, the audio output device may receive a setting instruction carrying the second output volume level.
And step two, determining a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels according to the second output volume level and the total number of the sound source volume levels.
The processing method of the second step may be various, and a feasible processing method is provided as follows, which may include the following:
in the output volume levels of the audio output equipment, a plurality of adjacent output volume levels with the number equal to the total number of sound source volume levels are obtained from the second output volume level according to the sequence of gradual increase; or, in the output volume levels of the audio output device, a plurality of adjacent output volume levels equal in number to the total number of sound source volume levels are acquired in a descending order from the second output volume level.
In implementation, the audio output device obtains the total number of the sound source volume levels of the sound source device, and the audio output device may determine the number of a plurality of adjacent output volume levels (equal to the total number of the sound source volume levels) according to the total number of the sound source volume levels, and then select the number of adjacent output volume levels from all the output volume levels in the audio output device. For example, the output volume levels of the smart sound box may be 0,1, 2, and 3 … … 32, the sound source volume levels of the mobile phone may be 0,1, 2,3, 4, and 5, and the total number of the sound source volume levels is 6, if the second output volume level is 10, the plurality of adjacent output volume levels are obtained in the order of decreasing step by step, the plurality of obtained adjacent output volume levels may be 5, 6, 7, 8, 9, and 10, and if the plurality of adjacent output volume levels are obtained in the order of increasing step by step, the plurality of obtained adjacent output volume levels may be 10, 11, 12, 13, 14, and 15.
And step three, establishing a corresponding relation between the sound source volume levels and the adjacent output volume levels according to all the sound source volume levels of the sound source equipment and the determined adjacent output volume levels, and storing the corresponding relation.
In an implementation, based on the example in the second step, the sound source volume levels of the mobile phone may be 0,1, 2,3, 4, and 5, the determined multiple adjacent output volume levels may be 5, 6, 7, 8, 9, and 10, the sound source volume levels 0,1, 2,3, 4, and 5 may respectively correspond to the multiple adjacent output volume levels 5, 6, 7, 8, 9, and 10, a correspondence between all sound source volume levels of the sound source device and the determined multiple adjacent output volume levels is established, and the correspondence is stored in the audio output device.
Optionally, the audio output device may automatically adjust the correspondence according to a volume adjustment condition of a user within a period of time, and the corresponding processing manner may be various, and a feasible processing manner is provided as follows, and may include the following steps:
step one, when a preset period is reached, determining the distribution situation information of the sound source volume level used by the sound source equipment in the previous period.
In implementation, a period for updating the correspondence may be set in the audio output device, the audio output device may record, in each period, a sound source volume level sent by the sound source device, when the period is reached, the audio output device counts distribution of the sound source volume level used by the sound source device in the previous period, for example, the distribution information may be the number of times of use of different sound source volume levels, the sound source volume level set in the mobile phone may be 0,1, 2,3, 4, and 5, the smart speaker may record the sound source volume level used by the mobile phone in the previous period, the number of times of using the sound source volume level 4 may be 10, the number of times of using the sound source volume level 3 may be 2, the number of times of using the sound source volume level 1 may be 1, and the number of times of using the sound source volume levels 0, 2, and 5 may all be 0.
And step two, according to the distribution condition information, increasing or decreasing the output volume level corresponding to each sound source volume level in the corresponding relation by a preset value together.
In implementation, a value for increasing or decreasing the output volume level may be preset in the audio output device, and the audio output device may increase or decrease the output volume level corresponding to each sound source volume level in the above correspondence according to the distribution information, for example, all sound source volume levels 0,1, 2,3, 4,5 of the mobile phone may be divided into three regions, which may be respectively represented as a low volume region (0,1), a medium volume region (2,3), and a high volume region (4,5), based on the example of the above step one, in the last period, the used volume level of the sound source of the mobile phone is the most in the high volume region, and it may be determined that the user often adjusts the playing volume in the high volume region, so the smart sound box may increase the output volume level corresponding to each sound source volume level in the correspondence as in table 1 by the preset value, if the preset value is 2, the adjusted corresponding relationship can be as shown in table 4.
TABLE 4
Volume level of sound sourceOutput volume level
09
110
211
312
413
514
Similarly, if it is determined that the user often adjusts the playing volume in the low volume area, the smart sound box may decrease the output volume level corresponding to each sound source volume level in the corresponding relationship as shown in table 1 by a preset value, and the adjusted corresponding relationship may be as shown in table 5.
TABLE 5
Volume level of sound sourceOutput volume level
05
16
27
38
49
510
In the embodiment of the disclosure, a volume setting message carrying a first sound source volume level and sent by a sound source device is received, a first output volume level corresponding to the first sound source volume level is determined according to a pre-stored correspondence relationship between a plurality of sound source volume levels and a plurality of adjacent output volume levels, the total number of the sound source volume levels of the sound source device is smaller than the total number of local output volume levels, and audio data sent by the sound source device is played according to the first output volume level.
EXAMPLE III
Based on the same technical concept, an embodiment of the present disclosure further provides an apparatus for playing audio data, as shown in fig. 3, the apparatus including: a receiving module 310, a determining module 320 and a playing module 330.
A receiving module 310, configured to receive a volume setting message carrying a first sound source volume level sent by a sound source device;
a determining module 320, configured to determine, according to a correspondence relationship between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels, a first output volume level corresponding to the first sound source volume level; the total number of sound source volume levels of the sound source equipment is smaller than the total number of local output volume levels;
the playing module 330 is configured to play the audio data sent by the audio source device according to the first output volume level.
Optionally, the determining module 320 is configured to:
selecting the corresponding relation between the sound source volume levels and the adjacent output volume levels of the time period in which the current time point is located from the prestored corresponding relations between the sound source volume levels and the adjacent output volume levels of the different time periods;
and determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between the selected sound source volume levels and the adjacent output volume levels.
Optionally, the apparatus further comprises a storage module configured to:
receiving a setting instruction, wherein the setting instruction carries a second output volume level;
determining a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels according to the second output volume level and the total number of the sound source volume levels;
and establishing a corresponding relation between the sound source volume levels and the adjacent output volume levels according to all the sound source volume levels of the sound source equipment and the determined adjacent output volume levels, and storing the corresponding relation.
Optionally, a storage module, configured to:
in the local output volume level, a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels are obtained from the second output volume level according to the sequence of gradual increase; or,
in the local output volume level, a plurality of adjacent output volume levels, the number of which is equal to the total number of sound source volume levels, are acquired from the second output volume level in a gradually decreasing order.
Optionally, the apparatus further comprises an adjustment module for:
determining the distribution condition information of the sound source volume level used by the sound source equipment in the previous period when the preset period is reached;
and according to the distribution condition information, increasing or decreasing the output volume level corresponding to each sound source volume level in the corresponding relationship by a preset value together.
Optionally, the determining module 320 is configured to:
if the sound source equipment and the local adopt a volume linkage adjusting mode, determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels;
a determining module 320, further configured to:
if the sound source equipment and the local adopt a non-volume linkage adjusting mode, determining a first output volume level corresponding to the time period of the current time point according to the corresponding relation between the pre-stored time period and the output volume level;
a play module 330, configured to:
and if the sound source equipment and the local equipment adopt a non-volume linkage adjusting mode, playing the audio data sent by the sound source equipment according to the first output volume level and the first sound source volume level.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment of the disclosure, a volume setting message carrying a first sound source volume level and sent by a sound source device is received, a first output volume level corresponding to the first sound source volume level is determined according to a pre-stored correspondence relationship between a plurality of sound source volume levels and a plurality of adjacent output volume levels, the total number of the sound source volume levels of the sound source device is smaller than the total number of local output volume levels, and audio data sent by the sound source device is played according to the first output volume level.
It should be noted that: in the apparatus for playing audio data according to the foregoing embodiment, when playing audio data, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the audio output device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for playing audio data and the method for playing audio data provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and will not be described herein again.
Example four
Fig. 4 is a schematic diagram illustrating the structure of an audio output device according to an exemplary embodiment. The audio output device can be a smart speaker or a Bluetooth speaker, etc.
Referring to fig. 4, the audio output device 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls overall operation of the audio output device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the audio output device 1000. Examples of such data include instructions for any application or method operating on the audio output device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 1006 provide power to the various components of the audio output device 1000. The power components 1006 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the audio output device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the audio output device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. When the audio output device 1000 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when the audio output device 1000 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the audio output device 1000. For example, the sensor assembly 1014 may detect an open/closed state of the audio output device 1000, the relative positioning of components, such as a display and keypad of the audio output device 1000, the sensor assembly 1014 may also detect a change in position of the audio output device 1000 or a component of the audio output device 1000, the presence or absence of user contact with the audio output device 1000, the orientation or acceleration/deceleration of the audio output device 1000, and a change in temperature of the audio output device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communication between the audio output device 1000 and other devices in a wired or wireless manner. The audio output device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the audio output device 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the audio output device 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of an audio output device, enable the audio output device to perform a method of playing audio data, the method comprising:
receiving a volume setting message carrying a first sound source volume level sent by sound source equipment;
determining a first output volume level corresponding to the first sound source volume level according to a pre-stored corresponding relationship between the plurality of sound source volume levels and the plurality of adjacent output volume levels; the total number of sound source volume levels of the sound source equipment is smaller than the total number of local output volume levels;
and playing the audio data sent by the sound source equipment according to the first output volume level.
Optionally, determining a first output volume level corresponding to the first sound source volume level according to a pre-stored correspondence between a plurality of sound source volume levels and a plurality of adjacent output volume levels, includes:
selecting the corresponding relation between the sound source volume levels and the adjacent output volume levels of the time period in which the current time point is located from the prestored corresponding relations between the sound source volume levels and the adjacent output volume levels of the different time periods;
and determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between the selected sound source volume levels and the adjacent output volume levels.
Optionally, the method further comprises:
receiving a setting instruction, wherein the setting instruction carries a second output volume level;
determining a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels according to the second output volume level and the total number of the sound source volume levels;
and establishing a corresponding relation between the sound source volume levels and the adjacent output volume levels according to all the sound source volume levels of the sound source equipment and the determined adjacent output volume levels, and storing the corresponding relation.
Optionally, determining a number of adjacent output volume levels equal to the total number of source volume levels from the second output volume level and the total number of source volume levels comprises:
in the local output volume level, a plurality of adjacent output volume levels with the number equal to the total number of the sound source volume levels are obtained from the second output volume level according to the sequence of gradual increase; or,
in the local output volume level, a plurality of adjacent output volume levels, the number of which is equal to the total number of sound source volume levels, are acquired from the second output volume level in a gradually decreasing order.
Optionally, the method further comprises:
determining the distribution condition information of the sound source volume level used by the sound source equipment in the previous period when the preset period is reached;
and according to the distribution condition information, increasing or decreasing the output volume level corresponding to each sound source volume level in the corresponding relationship by a preset value together.
Optionally, determining a first output volume level corresponding to the first sound source volume level according to a pre-stored correspondence between a plurality of sound source volume levels and a plurality of adjacent output volume levels, includes:
if the sound source equipment and the local adopt a volume linkage adjusting mode, determining a first output volume level corresponding to the first sound source volume level according to the corresponding relation between a plurality of pre-stored sound source volume levels and a plurality of adjacent output volume levels;
the method further comprises the following steps:
if the sound source equipment and the local adopt a non-volume linkage adjusting mode, determining a first output volume level corresponding to the time period of the current time point according to the corresponding relation between the pre-stored time period and the output volume level;
according to the first output volume level, the audio data sent by the sound source equipment is played, and the method comprises the following steps:
and if the sound source equipment and the local equipment adopt a non-volume linkage adjusting mode, playing the audio data sent by the sound source equipment according to the first output volume level and the first sound source volume level.
In the embodiment of the disclosure, a volume setting message carrying a first sound source volume level and sent by a sound source device is received, a first output volume level corresponding to the first sound source volume level is determined according to a pre-stored correspondence relationship between a plurality of sound source volume levels and a plurality of adjacent output volume levels, the total number of the sound source volume levels of the sound source device is smaller than the total number of local output volume levels, and audio data sent by the sound source device is played according to the first output volume level.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

CN201410301674.5A2014-06-262014-06-26Method and device for playing audio dataActiveCN104112460B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410301674.5ACN104112460B (en)2014-06-262014-06-26Method and device for playing audio data

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410301674.5ACN104112460B (en)2014-06-262014-06-26Method and device for playing audio data

Publications (2)

Publication NumberPublication Date
CN104112460A CN104112460A (en)2014-10-22
CN104112460Btrue CN104112460B (en)2017-02-15

Family

ID=51709217

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410301674.5AActiveCN104112460B (en)2014-06-262014-06-26Method and device for playing audio data

Country Status (1)

CountryLink
CN (1)CN104112460B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105679344B (en)*2014-11-202019-10-01小米科技有限责任公司Audio frequency playing method and device
CN105185398B (en)*2015-07-092018-06-29广东欧珀移动通信有限公司Play scene starting method and device
CN106792386B (en)*2016-12-052020-03-10青岛海信电器股份有限公司Terminal volume adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2003162869A (en)*2001-11-272003-06-06Fujitsu Ten LtdOutput level control system in audio player
CN1655597A (en)*2004-02-132005-08-17鸿富锦精密工业(深圳)有限公司 Volume adjustment device and method
CN101610302A (en)*2009-07-172009-12-23中兴通讯股份有限公司南京分公司A kind of method of automatic adjusting ringtone volume of terminal and terminal
CN103379220A (en)*2012-04-232013-10-30Lg电子株式会社Mobile terminal and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2003162869A (en)*2001-11-272003-06-06Fujitsu Ten LtdOutput level control system in audio player
CN1655597A (en)*2004-02-132005-08-17鸿富锦精密工业(深圳)有限公司 Volume adjustment device and method
CN101610302A (en)*2009-07-172009-12-23中兴通讯股份有限公司南京分公司A kind of method of automatic adjusting ringtone volume of terminal and terminal
CN103379220A (en)*2012-04-232013-10-30Lg电子株式会社Mobile terminal and control method thereof

Also Published As

Publication numberPublication date
CN104112460A (en)2014-10-22

Similar Documents

PublicationPublication DateTitle
US11469962B2 (en)Method and apparatus for configuring information of indicating time-frequency position of SSB, and method and apparatus for determining time-frequency position of SSB
CN104219092B (en)The compatibility method of a kind of router administration application and router firmware and device
US11457479B2 (en)Method and apparatus for configuring random access occasion, method and apparatus for random access
US11457437B2 (en)Method and apparatus for configuring information, base station and user equipment
CN105094321B (en)The control method and device of smart machine
CN106033397B (en)Memory buffer area adjusting method, device and terminal
CN107635074B (en)Method, apparatus and computer-readable storage medium for controlling alarm
US11284398B2 (en)Communication link configuration method and device
EP3226432A1 (en)Method and device for sharing media data between terminals
CN105427161A (en)Monetary exchange rate exchange method and device
US20170171706A1 (en)Device displaying method, apparatus, and storage medium
CN103986821A (en)Method, equipment and system for carrying out parameter adjustment
US11856538B2 (en)Method and apparatus for broadcasting configuration information of synchronizing signal block, and method and apparatus for receiving configuration information of synchronizing signal block
CN111131596B (en) Screen brightness adjustment method and device
CN105657690A (en)Method and device for processing mobile terminal setting information
CN105242837B (en)Five application page acquisition methods and terminal
CN104112460B (en)Method and device for playing audio data
CN104780256A (en)Address book management method and device and intelligent terminal
CN107885464B (en) Data storage method, device, and computer-readable storage medium
WO2021031311A1 (en)Supernet construction method and device, supernet usage method and device, and medium
CN110913276B (en)Data processing method, device, server, terminal and storage medium
CN105204841B (en)Range method of adjustment and device
CN109194808B (en)Volume adjusting method and device
US11452045B2 (en)Method and apparatus for indicating transmitting power difference, and method and apparatus for compensating power
CN105100135A (en)Network sharing setting method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp