[go: up one dir, main page]

CN105975241A - Volume regulation method and device - Google Patents

Volume regulation method and device Download PDF

Info

Publication number
CN105975241A
CN105975241A CN201610258618.7A CN201610258618A CN105975241A CN 105975241 A CN105975241 A CN 105975241A CN 201610258618 A CN201610258618 A CN 201610258618A CN 105975241 A CN105975241 A CN 105975241A
Authority
CN
China
Prior art keywords
information
volume
volume adjustment
current
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.)
Pending
Application number
CN201610258618.7A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610258618.7A priority Critical patent/CN105975241A/en
Publication of CN105975241A publication Critical patent/CN105975241A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a volume regulation method and device, which belongs to the field of computers. The method comprises the following steps: obtaining volume regulation information, wherein the volume regulation information comprises one of current system time, current geographic position information and the noise information of current external environment; according to the volume regulation information, obtaining corresponding volume information from a corresponding relationship between the volume regulation information and the volume information; and according to the obtained volume information, regulating volume for playing sound information. The embodiment of the invention can obtain the corresponding volume information according to the volume regulation information so as to regulate the volume for playing sound information according to the volume information and improve volume regulation accuracy and efficiency.

Description

音量调节方法及装置Volume adjustment method and device

技术领域technical field

本公开涉及计算机领域,尤其涉及一种音量调节方法及装置。The present disclosure relates to the field of computers, in particular to a volume adjustment method and device.

背景技术Background technique

随着科技的发展,手机、智能手表、平板电脑等电子设备越来越普及,该电子设备能够发出来电铃声、通知铃声等声音信息,也能够播放音乐、视频等多媒体信息中的声音信息。当该电子设备播放声音信息时,如果该电子设备的音量过低,用户可能无法听到该电子设备发出的声音信息,如果该电子设备的音量过大,可能会干扰用户的正常生活,因此,亟需一种音量调节方法。With the development of science and technology, electronic devices such as mobile phones, smart watches, and tablet computers are becoming more and more popular. The electronic devices can send out sound information such as ringtones for incoming calls and notification ringtones, and can also play sound information in multimedia information such as music and videos. When the electronic device plays sound information, if the volume of the electronic device is too low, the user may not be able to hear the sound information from the electronic device, and if the volume of the electronic device is too high, it may interfere with the normal life of the user. Therefore, There is a need for a volume adjustment method.

相关技术中,当用户对该电子设备的音量进行调节时,该用户可以在该电子设备的音量调节界面中,对该电子设备的音量进行调节,或者通过该电子设备的音量调节按钮对该电子设备的音量进行调节。In the related art, when the user adjusts the volume of the electronic device, the user can adjust the volume of the electronic device in the volume adjustment interface of the electronic device, or use the volume adjustment button of the electronic device to adjust the volume of the electronic device. Adjust the volume of the device.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种音量调节方法及装置。In order to overcome the problems existing in related technologies, the present disclosure provides a volume adjustment method and device.

根据本公开实施例的第一方面,提供一种音量调节方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a volume adjustment method is provided, the method comprising:

获取音量调节信息,所述音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;Acquiring volume adjustment information, where the volume adjustment information includes at least one of current system time, current geographic location information, and noise information of the current external environment;

根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;Acquiring corresponding volume information from the stored correspondence between volume adjustment information and volume information according to the volume adjustment information;

根据获取的音量信息,对播放声音信息的音量进行调节。According to the obtained volume information, the volume of the playing sound information is adjusted.

结合第一方面,在上述第一方面的一种可能的实现方式中,所述根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:With reference to the first aspect, in a possible implementation manner of the above first aspect, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information according to the volume adjustment information, include:

当所述音量调节信息包括当前系统时间时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;When the volume adjustment information includes the current system time, determine the specified time period in which the current system time is located from a plurality of specified time periods;

根据所述当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。According to the specified time period in which the current system time is located, the corresponding volume information is obtained from the stored correspondence between the time period and the volume information.

结合第一方面,在上述第一方面的第二种可能的实现方式中,所述根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:With reference to the first aspect, in a second possible implementation manner of the first aspect above, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information according to the volume adjustment information. ,include:

当所述音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;When the volume adjustment information includes current system time and current geographic location information, determine a specified time period in which the current system time is located from a plurality of specified time periods;

根据所述当前系统时间所处的指定时间段和所述当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。According to the specified time period where the current system time is located and the current geographic location information, the corresponding volume information is acquired from the stored correspondence between the time period, geographic location information, and volume information.

结合第一方面,在上述第一方面的第三种可能的实现方式中,所述根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:With reference to the first aspect, in a third possible implementation manner of the first aspect above, according to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information. ,include:

当所述音量调节信息包括当前所处外界环境的噪声信息时,根据所述当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。When the volume adjustment information includes noise information of the current external environment, the corresponding volume information is obtained from a stored correspondence between noise information and volume information according to the noise information of the current external environment.

结合第一方面,在上述第一方面的第四种可能的实现方式中,所述根据获取的音量信息,对播放声音信息的音量进行调节之后,还包括:With reference to the first aspect, in the fourth possible implementation manner of the first aspect above, after adjusting the volume of the sound information to be played according to the acquired volume information, the method further includes:

根据调节后的音量播放声音信息;Play sound information according to the adjusted volume;

在播放声音信息之后,当接收到音量调节指令时,基于所述音量调节指令调节后的音量,对所述音量调节信息与音量信息之间的对应关系进行更新。After the sound information is played, when a volume adjustment instruction is received, the corresponding relationship between the volume adjustment information and the volume information is updated based on the volume adjusted by the volume adjustment instruction.

结合第一方面至第一方面的第四种可能的实现方式中的任一种可能的实现方式,在上述第一方面的第五种可能的实现方式中,所述获取音量调节信息之前,还包括:With reference to any possible implementation manner of the first aspect to the fourth possible implementation manner of the first aspect, in the fifth possible implementation manner of the first aspect above, before the volume adjustment information is acquired, further include:

当播放声音信息时,执行所述获取音量调节信息的步骤。When the sound information is played, the step of acquiring volume adjustment information is performed.

根据本公开实施例的第二方面,提供一种音量调节装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided a volume adjustment device, the device comprising:

第一获取模块,用于获取音量调节信息,所述音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;A first acquiring module, configured to acquire volume adjustment information, where the volume adjustment information includes at least one of current system time, current geographic location information, and noise information of the current external environment;

第二获取模块,用于根据所述第一获取模块获取的音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;The second obtaining module is configured to obtain the corresponding volume information from the stored correspondence between the volume adjustment information and the volume information according to the volume adjustment information obtained by the first obtaining module;

调节模块,用于根据所述第二获取模块获取的音量信息,对播放声音信息的音量进行调节。An adjusting module, configured to adjust the volume of the playing sound information according to the volume information acquired by the second acquiring module.

结合第二方面,在上述第二方面的第一种可能的实现方式中,所述第一获取模块包括:With reference to the second aspect, in the first possible implementation manner of the second aspect above, the first obtaining module includes:

第一确定单元,用于当所述音量调节信息包括当前系统时间时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;A first determining unit, configured to, when the volume adjustment information includes the current system time, determine a specified time period in which the current system time is located from a plurality of specified time periods;

第一获取单元,用于根据当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。The first acquiring unit is configured to acquire the corresponding volume information from the stored correspondence between the time period and the volume information according to the specified time period in which the current system time is located.

结合第二方面,在上述第二方面的第二种可能的实现方式中,所述第一获取模块包括:With reference to the second aspect, in a second possible implementation manner of the above second aspect, the first obtaining module includes:

第二确定单元,用于当所述音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;A second determining unit, configured to determine a specified time period in which the current system time is located from a plurality of specified time periods when the volume adjustment information includes current system time and current geographical location information;

第二获取单元,用于根据所述当前系统时间所处的指定时间段和所述当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。The second obtaining unit is configured to obtain the corresponding time period, geographic location information, and volume information from the stored correspondence between the time period, geographic location information, and volume information according to the specified time period of the current system time and the current geographic location information. volume information.

结合第二方面,在上述第二方面的第三种可能的实现方式中,所述第一获取模块包括:With reference to the second aspect, in a third possible implementation manner of the second aspect above, the first obtaining module includes:

第三获取单元,用于当所述音量调节信息包括当前所处外界环境的噪声信息时,根据所述当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。A third acquiring unit, configured to, when the volume adjustment information includes noise information of the current external environment, from the stored correspondence between the noise information and the volume information according to the noise information of the current external environment , to obtain the corresponding volume information.

结合第二发方面,在上述第二方面的第四种可能的实现方式中,所述装置还包括:With reference to the second aspect, in a fourth possible implementation manner of the second aspect above, the device further includes:

播放模块,用于根据所述调节模块调节后的音量播放声音信息;a playback module, configured to play sound information according to the volume adjusted by the adjustment module;

更新模块,用于在所述播放模块播放声音信息之后,当接收到音量调节指令时,基于所述音量调节指令调节后的音量,对所述音量调节信息与音量信息之间的对应关系进行更新。An update module, configured to update the correspondence between the volume adjustment information and the volume information based on the volume adjusted by the volume adjustment instruction when the volume adjustment instruction is received after the playback module plays the sound information .

结合第二方面至第二方面的第四种可能的实现方式,在上述第二方面的第五种可能的实现方式中,所述装置还包括:In combination with the second aspect to the fourth possible implementation manner of the second aspect, in the fifth possible implementation manner of the second aspect above, the device further includes:

执行模块,用于当播放声音信息时,执行所述获取音量调节信息的步骤。An executing module, configured to execute the step of acquiring volume adjustment information when the sound information is played.

根据本公开实施例的第三方面,提供一种音量调节装置,所述装置包括:According to a third aspect of an embodiment of the present disclosure, there is provided a volume adjustment device, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

获取音量调节信息,所述音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;Acquiring volume adjustment information, where the volume adjustment information includes at least one of current system time, current geographic location information, and noise information of the current external environment;

根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;Acquiring corresponding volume information from the stored correspondence between volume adjustment information and volume information according to the volume adjustment information;

根据获取的音量信息,对播放声音信息的音量进行调节。According to the obtained volume information, the volume of the playing sound information is adjusted.

本公开的实施例提供的技术方案可以包括以下有益效果:在本公开实施例中,该电子设备可以获取该音量调节信息,且该音量调节信息可以根据实际需要包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的一种或者多种,提高了获取该音量调节信息的灵活性;并且,该电子设备可以根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,由于该音量信息是与该音量调节信息对应的音量信息,因此,该电子设备可以根据获取的音量信息,对播放声音信息的音量进行调节,能够提高调节该电子设备播放声音音量的准确率。The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects: In the embodiments of the present disclosure, the electronic device can obtain the volume adjustment information, and the volume adjustment information can include the current system time, the current geographical location according to actual needs One or more of the location information and the noise information of the current external environment improves the flexibility of obtaining the volume adjustment information; and the electronic device can use the stored volume adjustment information and the volume adjustment information according to the volume adjustment information. In the correspondence between the information, the corresponding volume information is obtained, and since the volume information is the volume information corresponding to the volume adjustment information, the electronic device can adjust the volume of the sound information according to the obtained volume information, The accuracy rate of adjusting the volume of the sound played by the electronic device can be improved.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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 present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是根据一示例性实施例示出的一种音量调节方法的流程图。Fig. 1 is a flow chart of a volume adjustment method according to an exemplary embodiment.

图2是根据一示例性实施例示出的另一种音量调节方法的流程图。Fig. 2 is a flow chart showing another volume adjustment method according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种音量调节装置的框图。Fig. 3 is a block diagram of a volume adjustment device according to an exemplary embodiment.

图4是根据一示例性实施例示出的另一种音量调节装置的框图。Fig. 4 is a block diagram of another volume adjustment device according to an exemplary embodiment.

具体实施方式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, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

在对本公开实施例进行详细的解释说明之前,先对本公开实施例的应用场景予以介绍。手机、智能手表、平板电脑等电子设备能够发出来电铃声、通知铃声等声音信息,也能够播放音乐、视频等多媒体信息中的声音信息。而当该电子设备播放声音信息时,如果播放声音信息的音量过大或者过小,都会给用户带来困扰和不便,相关技术中,用户需要手动通过该电子设备的音量调节界面或者音量调节按钮来调节音量,过程繁琐,效率低下,因此,本公开实施例提供了一种音量调节方法,能够高效地调节该电子设备的音量。Before explaining and describing the embodiments of the present disclosure in detail, the application scenarios of the embodiments of the present disclosure will be introduced first. Electronic devices such as mobile phones, smart watches, and tablet computers can send out sound information such as ringtones for incoming calls and notification ringtones, and can also play sound information in multimedia information such as music and videos. When the electronic device plays sound information, if the volume of the sound information is too large or too low, it will cause trouble and inconvenience to the user. In related technologies, the user needs to manually pass through the volume adjustment interface or the volume adjustment button of the electronic device. To adjust the volume, the process is cumbersome and inefficient. Therefore, an embodiment of the present disclosure provides a volume adjustment method, which can efficiently adjust the volume of the electronic device.

图1是根据一示例性实施例示出的一种音量调节方法的流程图,参照图1,该音量调节方法用于电子设备中,包括以下步骤。Fig. 1 is a flowchart of a volume adjustment method according to an exemplary embodiment. Referring to Fig. 1, the volume adjustment method is used in an electronic device and includes the following steps.

在步骤101中,获取音量调节信息,该音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种。In step 101, volume adjustment information is acquired, and the volume adjustment information includes at least one of current system time, current geographical location information, and noise information of the current external environment.

在步骤102中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息。In step 102, according to the volume adjustment information, corresponding volume information is obtained from the stored correspondence between volume adjustment information and volume information.

在步骤103中,根据获取的音量信息,对播放声音信息的音量进行调节。In step 103, the volume of the playing sound information is adjusted according to the acquired volume information.

在本公开实施例中,该电子设备可以获取该音量调节信息,且该音量调节信息可以根据实际需要包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的一种或者多种,提高了获取该音量调节信息的灵活性;并且,该电子设备可以根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,由于该音量信息是与该音量调节信息对应的音量信息,因此,该电子设备可以根据获取的音量信息,对播放声音信息的音量进行调节,能够提高调节该电子设备播放声音音量的准确率。In the embodiment of the present disclosure, the electronic device can obtain the volume adjustment information, and the volume adjustment information can include one of the current system time, the current geographic location information, and the noise information of the current external environment according to actual needs. or multiple types, improving the flexibility of obtaining the volume adjustment information; and, according to the volume adjustment information, the electronic device can obtain the corresponding volume information from the corresponding relationship between the stored volume adjustment information and the volume information, because The volume information is volume information corresponding to the volume adjustment information. Therefore, the electronic device can adjust the volume of the sound information played according to the acquired volume information, which can improve the accuracy of adjusting the volume of the sound played by the electronic device.

在本公开的另一实施例中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:In another embodiment of the present disclosure, according to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information, including:

当该音量调节信息包括当前系统时间时,从多个指定时间段中,确定该当前系统时间所处的指定时间段;When the volume adjustment information includes the current system time, determine the specified time period in which the current system time is located from a plurality of specified time periods;

根据该当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。According to the designated time period where the current system time is located, the corresponding volume information is obtained from the stored correspondence between the time period and the volume information.

在本公开的另一实施例中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:In another embodiment of the present disclosure, according to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information, including:

当该音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定该当前系统时间所处的指定时间段;When the volume adjustment information includes current system time and current geographic location information, determine the specified time period in which the current system time is located from a plurality of specified time periods;

根据该当前系统时间所处的指定时间段和该当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。According to the designated time period of the current system time and the current geographic location information, the corresponding volume information is obtained from the stored correspondence between the time period, geographic location information, and volume information.

在本公开的另一实施例中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:In another embodiment of the present disclosure, according to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information, including:

当该音量调节信息包括当前所处外界环境的噪声信息时,根据该当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。When the volume adjustment information includes noise information of the current external environment, the corresponding volume information is obtained from the stored correspondence between noise information and volume information according to the noise information of the current external environment.

在本公开的另一实施例中,根据获取的音量信息,对播放声音信息的音量进行调节之后,还包括:In another embodiment of the present disclosure, after adjusting the volume of the sound information to be played according to the acquired volume information, it further includes:

根据调节后的音量播放声音信息;Play sound information according to the adjusted volume;

在播放声音信息之后,当接收到音量调节指令时,基于该音量调节指令调节后的音量,对该音量调节信息与音量信息之间的对应关系进行更新。After the sound information is played, when a volume adjustment instruction is received, the corresponding relationship between the volume adjustment information and the volume information is updated based on the volume adjusted by the volume adjustment instruction.

在本公开的另一实施例中,获取音量调节信息之前,还包括:In another embodiment of the present disclosure, before acquiring the volume adjustment information, it further includes:

当播放声音信息时,执行该获取音量调节信息的步骤。When the sound information is played, the step of acquiring volume adjustment information is performed.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be described in detail in the embodiments of the present disclosure.

图2是根据一示例性实施例示出的一种音量调节方法的流程图,参照图2,该音量调节方法用于电子设备中,包括以下步骤。Fig. 2 is a flow chart of a volume adjustment method according to an exemplary embodiment. Referring to Fig. 2, the volume adjustment method is used in an electronic device and includes the following steps.

在步骤201中,获取音量调节信息,该音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种。In step 201, the volume adjustment information is acquired, and the volume adjustment information includes at least one of the current system time, the current geographic location information, and the noise information of the current external environment.

其中,由于该电子设备的体积通常都比较小,因此,用户可能会在多个时间段携带该电子设备进入多个场合,比如,用户可以在白天携带该电子设备进入办公室或者超市,也可以在晚上携带电子设备进入家中或者娱乐场所,当用户当前所处的系统时间、地理位置和当前所处外界环境的噪音不同时,对该电子设备的音量要求也不同,因此,为了提高调节音量的效率,该电子设备可以获取音量调节信息。Wherein, since the volume of the electronic device is usually relatively small, the user may carry the electronic device into multiple occasions in multiple time periods, for example, the user may carry the electronic device into the office or supermarket during the day, Bringing electronic equipment into the home or entertainment place at night, when the user's current system time, geographical location and the noise of the current external environment are different, the volume requirements for the electronic equipment are also different. Therefore, in order to improve the efficiency of volume adjustment , the electronic device can acquire volume adjustment information.

需要说明的是,该音量调节信息可以根据实际应用需要,灵活地包括该电子设备当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种,比如,该音量调节信息可以只包括当前系统时间、或者只包括当前所处的地理位置,或者只包括当前所处外界环境的噪声信息,或者同时包括当前系统时间和当前所处地理位置信息,本公开实施例对此不做具体限定。It should be noted that the volume adjustment information can flexibly include at least one of the current system time of the electronic device, current geographic location information, and noise information of the current external environment according to actual application requirements, for example, the volume The adjustment information may only include the current system time, or only the current geographic location, or only the noise information of the current external environment, or both the current system time and the current geographic location information. This is not specifically limited.

还需要说明的是,当该音量调节信息包括当前系统时间时,该电子设备从该电子设备的系统资源中获取该系统时间;当该音量调节信息包括当前所处的地理位置信息时,该电子设备可以对当前所处地理位置进行定位,得到该电视设备当前所处的地理位置信息,其中,该电子设备可以根据GPS(GlobalPositioning System,全球定位系统)等定位技术进行定位;当该音量调节信息包括噪声信息时,该电子设备可以对当前所处外界环境中的噪音进行录音,从而获取该噪声信息。当然,在实际应用中,该电子设备还可以通过其它方式来获取该音量调节信息,本公开实施例对此不做具体限定。It should also be noted that when the volume adjustment information includes the current system time, the electronic device obtains the system time from the system resources of the electronic device; when the volume adjustment information includes the current geographic location information, the electronic device The device can locate the current geographic location to obtain the current geographic location information of the TV device, wherein the electronic device can be positioned according to GPS (Global Positioning System, Global Positioning System) and other positioning technologies; when the volume adjustment information When the noise information is included, the electronic device can record the noise in the current external environment, so as to obtain the noise information. Of course, in practical applications, the electronic device may also acquire the volume adjustment information in other ways, which is not specifically limited in this embodiment of the present disclosure.

进一步地,该电子设备可以每间隔预设时长,执行上述获取音量调节信息的步骤,或者,当该电子设备播放声音信息时,执行上述获取音量调节信息的步骤,当然,在实际应用中,该电子设备还可以在其它时机执行上述获取音量调节信息的步骤,本公开实施例对此不做具体限定。Further, the electronic device may perform the above-mentioned step of obtaining volume adjustment information at preset intervals, or, when the electronic device plays sound information, perform the above-mentioned step of obtaining volume adjustment information. Of course, in practical applications, the The electronic device may also perform the above step of acquiring volume adjustment information at other timings, which is not specifically limited in this embodiment of the present disclosure.

其中,当该电子设备每间隔预设时长获取该音量调节信息时,当该用户当前所处的时间、地理位置和外界环境的噪声等发生改变时,该电子设备能够及时获取该音量调节信息,提高获取该音量调节信息的准确率,进而提高了调节音量的准确率。当该电子设备在播放声音信息时,获取该音量调节信息,减少了获取该音量调节信息的次数,节省了该电子设备的系统资源。Wherein, when the electronic device acquires the volume adjustment information at preset time intervals, when the user's current time, geographical location, and noise in the external environment change, the electronic device can acquire the volume adjustment information in time, The accuracy rate of obtaining the volume adjustment information is improved, thereby improving the accuracy rate of volume adjustment. When the electronic device is playing sound information, the volume adjustment information is obtained, which reduces the number of times of obtaining the volume adjustment information and saves system resources of the electronic device.

需要说明的是,该预设时长可以事先设置,且预设时长可以为2小时或者4小时,当然,在实际应用中,该预设时长还可以是其它值,本公开实施例对此不做具体限定。It should be noted that the preset duration can be set in advance, and the preset duration can be 2 hours or 4 hours. Of course, in practical applications, the preset duration can also be other values, and the embodiments of the present disclosure do not do this Specific limits.

还需要说明的是,该声音信息可以是来电铃声、短信铃声和闹钟等声音信息,也可以是音乐或视频等多媒体信息中的声音信息,当然,在实际应用中,该声音信息还可以是其它声音信息,本公开实施例对此不做具体限定。It should also be noted that the sound information can be sound information such as incoming call ringtones, SMS ringtones, and alarm clocks, or sound information in multimedia information such as music or videos. Of course, in practical applications, the sound information can also be other sounds. Voice information, which is not specifically limited in the embodiments of the present disclosure.

在步骤202中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息。In step 202, according to the volume adjustment information, corresponding volume information is obtained from the stored correspondence between volume adjustment information and volume information.

其中,当该音量调节信息不同时,说明该电子设备当前所处的系统时间、地理位置信息或者外界环境的噪声信息不同,所以为了确保该电子设备的音量能够与该音量调节信息相对应,即确保该电子设备的音量不会过大也不会过小,该电子设备可以根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息。Wherein, when the volume adjustment information is different, it means that the current system time, geographic location information, or noise information of the external environment of the electronic device is different, so in order to ensure that the volume of the electronic device can correspond to the volume adjustment information, that is To ensure that the volume of the electronic device is neither too high nor too low, the electronic device can obtain corresponding volume information from the stored correspondence between volume adjustment information and volume information according to the volume adjustment information.

进一步地,由于该音量调节信息可以包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种,因此,当该音量调节信息不同时,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息的方式也不同,具体可以包括下述四种方式:Further, since the volume adjustment information may include at least one of the current system time, the current geographic location information, and the noise information of the current external environment, when the volume adjustment information is different, the stored volume adjustment In the corresponding relationship between the information and the volume information, the manner of obtaining the corresponding volume information is also different, specifically, the following four manners may be included:

第一种方式,当该音量调节信息包括当前系统时间时,从多个指定时间段中,确定该当前系统时间所处的指定时间段,根据该当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。In the first way, when the volume adjustment information includes the current system time, determine the specified time period of the current system time from a plurality of specified time periods, according to the specified time period of the current system time, from the storage In the corresponding relationship between the time period and the volume information, the corresponding volume information is obtained.

其中,由于该电子设备获取系统时间的步骤比获取地理位置或者外界环境的噪声信息步骤简单,因此,当该音量调节信息包括当前系统时间时,该电子设备可以方便快捷地获取到该系统时间,进而能够提高获取该音量调节信息的效率。Wherein, since the step of obtaining the system time by the electronic device is simpler than the step of obtaining the geographical location or the noise information of the external environment, when the volume adjustment information includes the current system time, the electronic device can obtain the system time conveniently and quickly, Furthermore, the efficiency of acquiring the volume adjustment information can be improved.

例如,当该电子设备获取当前的系统时间为13点时,该电子设备根据该系统时间,从如下表1所示的时间段与音量信息之间的对应关系中,确定该系统时间处于时间段2,获取时间段2对应的音量信息为60%。For example, when the electronic device acquires that the current system time is 13:00, the electronic device determines that the system time is in the time period from the correspondence between the time period and volume information shown in Table 1 below according to the system time 2. The volume information corresponding to time period 2 is acquired to be 60%.

表1Table 1

时间段period 音量信息volume information 时间段1:时刻22至时刻6Time period 1: from moment 22 to moment 6 30%30% 时间段2:时刻6至时刻14Time period 2: from moment 6 to moment 14 60%60% 时间段3:时刻14至时刻22Time period 3: from moment 14 to moment 22 100%100%

需要说明的是,本公开实施例仅以上述表1所示的时间段与音量信息之间的对应关系为例进行说明,上述表1并不对本公开实施例构成限定。It should be noted that the embodiment of the present disclosure is only described by taking the correspondence between the time period and the volume information shown in the above Table 1 as an example, and the above Table 1 does not limit the embodiment of the present disclosure.

第二种方式,当该音量调节信息包括当前所处地理位置信息时,根据该当前所处的地理位置信息,从存储的地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。In the second way, when the volume adjustment information includes the current geographic location information, according to the current geographic location information, the corresponding volume information is obtained from the stored correspondence between the geographic location information and the volume information .

其中,由于该地理位置信息可以说明该电子设备当前所处的地理位置,也即是该用户当前所处的地理位置,比如,该用户当前在家或者是在超市等位置,而当该用户用于处于不同的地理位置时,所需要的音量大小也不同,因此,当该音量调节信息包括该地理位置信息时,能够提高获取对应的音量信息的准确率。Wherein, since the geographic location information can indicate the current geographic location of the electronic device, that is, the current geographic location of the user, for example, the user is currently at home or in a supermarket, and when the user uses When people are in different geographical locations, the required volume levels are also different. Therefore, when the volume adjustment information includes the geographical location information, the accuracy of obtaining the corresponding volume information can be improved.

需要说明的是,该电子设备存储地理位置信息与音量信息之间的对应关系的方式,可以和该电子设备存储时间段与音量信息之间的对应关系的方式相同。It should be noted that, the manner in which the electronic device stores the correspondence between the geographic location information and the volume information may be the same as the manner in which the electronic device stores the correspondence between the time period and the volume information.

例如,该电子设备获取的地理位置信息为XX大厦时,该电子设备从如下表2所示的地理位置信息与音量信息之间的对应关系,获取对应的音量信息为30%。For example, when the geographic location information obtained by the electronic device is XX building, the electronic device obtains the corresponding volume information as 30% from the correspondence between geographic location information and volume information shown in Table 2 below.

表2Table 2

时间段period 音量信息volume information XX大厦XX building 30%30% XX小区XX community 60%60% XX超市XX supermarket 100%100% 其它other 80%80%

需要说明的是,本公开实施例仅以上述表2所示的地理位置信息与音量信息之间的对应关系为例进行说明,上述表2并不对本公开实施例构成限定。It should be noted that the embodiment of the present disclosure is only described by taking the correspondence between the geographic location information and the volume information shown in the above Table 2 as an example, and the above Table 2 does not limit the embodiment of the present disclosure.

第三种方式,当该音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定该当前系统时间所处的指定时间段,根据该当前系统时间所处的指定时间段和该当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。In the third way, when the volume adjustment information includes the current system time and the current geographical location information, determine the specified time period of the current system time from a plurality of specified time periods, and determine the specified time period according to the current system time. The specified time period and the current geographic location information are used to obtain the corresponding volume information from the stored correspondence between the time period, geographic location information, and volume information.

其中,为了进一步提高获取该音量信息的准确率,该电子设备可以同时根据当前系统时间和当前所处地理位置来获取该音量信息。Wherein, in order to further improve the accuracy of obtaining the volume information, the electronic device may simultaneously obtain the volume information according to the current system time and the current geographic location.

例如,当该电子设备当前系统时刻为0点,当前所处地理位置信息为XX超市,该电子设备可以从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息为80%。For example, when the current system time of the electronic device is 0:00, and the current geographic location information is XX supermarket, the electronic device can obtain the corresponding volume from the stored time period, the correspondence between geographic location information and volume information Information is 80%.

表3table 3

需要说明的是,本公开实施例仅以上述表3所示的时间段、地理位置信息与音量信息之间的对应关系为例进行说明,上述表3并不对本公开实施例构成限定。It should be noted that the embodiment of the present disclosure is only described by taking the correspondence between the time period, geographic location information, and volume information shown in the above Table 3 as an example, and the above Table 3 does not limit the embodiment of the present disclosure.

第四种方式,当该音量调节信息包括当前所处外界环境的噪声信息时,根据该当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。In a fourth way, when the volume adjustment information includes the noise information of the current external environment, according to the noise information of the current external environment, the corresponding relationship between the stored noise information and the volume information is obtained. volume information.

其中,当该电子设备根据当前所处外界环境的噪声信息,获取该音量信息时,能够根据该噪声信息的不同,准确地获取到该音量信息,确保该电子设备在当前所处外界环境中播放声音信息的音量能够清晰地被用户听到,提高获取该音量信息的准确率。Wherein, when the electronic device obtains the volume information according to the noise information of the current external environment, it can accurately obtain the volume information according to the difference of the noise information, ensuring that the electronic device can play in the current external environment. The volume of the sound information can be clearly heard by the user, improving the accuracy of obtaining the volume information.

需要说明的是,该当前所处外界环境的噪声信息可以是当前所处外界环境的噪声的等级,当然,在实际应用中,该当前所处外界环境的噪声信息还可以是其它与当前所处外界环境的噪声有关的信息,本公开实施例对此不做具体限定。It should be noted that the noise information of the current external environment may be the noise level of the current external environment. Of course, in practical applications, the noise information of the current external environment may also be other The information related to the noise of the external environment is not specifically limited in this embodiment of the present disclosure.

例如,当该当前所处外界环境的噪声信息为40分贝,则该电子设备可以如下表4所示的噪声信息与音量信息之间的对应关系中,获取对应的音量信息为60%。For example, when the noise information of the current external environment is 40 decibels, the electronic device can obtain the corresponding volume information as 60% from the correspondence between noise information and volume information shown in Table 4 below.

表4Table 4

噪声信息noise information 音量信息volume information 0≤噪声等级<300≤noise level<30 20%20% 30≤噪声等级<5030≤noise level<50 60%60% 50≤噪声等级<7050≤noise level<70 80%80% 70≤噪声等级70≤noise level 100%100%

需要说明的是,本公开实施例仅以上述表4所示的噪声信息与音量信息之间的对应关系为例进行说明,上述表4并不对本公开实施例构成限定。It should be noted that the embodiment of the present disclosure is only described by taking the correspondence between the noise information and the volume information shown in the above Table 4 as an example, and the above Table 4 does not limit the embodiment of the present disclosure.

进一步地,该电子设备可以从存储的音量调节信息与音量信息之间的对应关系中获取对应的音量信息之前,设置多个音量调节信息,并为该多个音量调节信息中每一个音量调节信息确定对应的音量信息,将该多个音量调节信息以及分别与该多个音量调节信息对应的音量信息,存储到存储的音量调节信息与音量信息之间的对应关系中,具体可以包括下述四种方式:Further, before the electronic device obtains the corresponding volume information from the stored correspondence between the volume adjustment information and the volume information, it can set a plurality of volume adjustment information, and set a volume adjustment information for each volume adjustment information in the plurality of volume adjustment information. Determine the corresponding volume information, store the plurality of volume adjustment information and the volume information respectively corresponding to the plurality of volume adjustment information in the stored correspondence between the volume adjustment information and the volume information, specifically, the following four steps may be included: ways:

第一种方式,当该音量调节信息包括当前系统时间时,该电子设备划分多个指定时间段,对于该多个指定时间段的每个指定时间段,为该指定时间段确定音量信息,然后将该指定时间段和该指定时间段的音量信息存储在时间段与音量信息之间的对应关系中。In the first way, when the volume adjustment information includes the current system time, the electronic device divides a plurality of specified time periods, and for each specified time period of the plurality of specified time periods, determines the volume information for the specified time period, and then The specified time period and the volume information of the specified time period are stored in the corresponding relationship between the time period and the volume information.

其中,该多个指定时间段中每一个指定时间段的时间间隔可以相同,也可以不同,本公开实施例对该多个指定时间段的个数、每一个时间段的时间间隔均不做具体限定。Wherein, the time interval of each specified time period in the multiple specified time periods may be the same or different, and the embodiment of the present disclosure does not specify the number of the multiple specified time periods or the time interval of each time period. limited.

需要说明的是,为了确保根据当前系统时间获取的音量信息能够满足用户需求,提高获取音量信息的效率,当该电子设备在划分多个指定时间段,并为该多个指定时间段中每一个指定时间段确定音量信息时,可以显示设置提示信息,并在接收到设置指令时,根据该设置指令,划分多个指定时间段,并为该多个指定时间段中每一个指定时间段确定音量信息,由用户确定该多个指定时间段的划分和该多个指定时间段中每一个指定时间段确定音量信息。It should be noted that, in order to ensure that the volume information obtained according to the current system time can meet the needs of users and improve the efficiency of obtaining volume information, when the electronic device is dividing multiple specified time periods, and for each of the multiple specified time periods When the volume information is determined for a specified time period, the setting prompt information can be displayed, and when the setting instruction is received, multiple specified time periods are divided according to the setting instruction, and the volume is determined for each specified time period in the multiple specified time periods information, the division of the multiple specified time periods is determined by the user and the volume information is determined for each specified time period in the multiple specified time periods.

其中,该电子设备可以通过弹窗显示、窗口显示等多种方式显示该设置提示信息,本发明实施例对此不做具体限定。Wherein, the electronic device may display the setting prompt information in multiple ways such as pop-up window display and window display, which is not specifically limited in this embodiment of the present invention.

需要说明的是,该设置指令可以由用户通过执行特定操作触发,该特定操作可以是点击操作、滑动操作等操作,本公开实施例对此不做具体限定。It should be noted that the setting instruction may be triggered by the user performing a specific operation, and the specific operation may be an operation such as a click operation or a slide operation, which is not specifically limited in this embodiment of the present disclosure.

例如,该电子设备可以根据该设置指令,划分3个时间段,每个时间段的时间间隔为8小时,时间段1为时刻22至时刻6,对应的音量信息为30%;时间段2为时刻6至时刻14,对应的音量信息为60%;时间段3为时刻14至时刻22,对应的音量信息为100%。然后,该电子设备将3个时间段以及与该3个时段分别对应的音量信息存储在时间段与音量信息之间的对应关系中,如上表1所示。For example, the electronic device can be divided into 3 time periods according to the setting instruction, the time interval of each time period is 8 hours, time period 1 is from time 22 to time 6, and the corresponding volume information is 30%; time period 2 is From time 6 to time 14, the corresponding volume information is 60%; time period 3 is from time 14 to time 22, and the corresponding volume information is 100%. Then, the electronic device stores the three time periods and the volume information respectively corresponding to the three time periods in the corresponding relationship between the time periods and the volume information, as shown in Table 1 above.

第二种方式,当该音量调节信息包括当前所处地理位置信息时,该电子设备设置多个地理位置信息,并为该多个地理位置信息中的每一个地理位置信息设置对应的音量信息,然后将多个地理位置信息和该多个地理位置信息中的每一个地理位置信息设置对应的音量信息,存储在地理位置信息与音量信息之间的对应关系中。In the second manner, when the volume adjustment information includes current geographic location information, the electronic device sets a plurality of geographic location information, and sets corresponding volume information for each geographic location information in the multiple geographic location information, Then set the plurality of geographic location information and the volume information corresponding to each geographic location information in the plurality of geographic location information, and store them in the correspondence between the geographic location information and the volume information.

需要说明的是,该电子设备设置多个地理位置信息,并为该多个地理位置信息中的每一个地理位置信息设置对应的音量信息的方式,可以和划分多个指定时间段,并为该多个指定时间段中每一个指定时间段确定音量信息的方式相同。It should be noted that the electronic device sets a plurality of geographic location information, and sets corresponding volume information for each geographic location information in the plurality of geographic location information, and can divide a plurality of designated time periods, and set the The volume information is determined in the same manner for each of the multiple specified time periods.

第三种方式,当该音量调节信息包括当前系统时间和当前所处地理位置信息时,该电子设备可以设置多个时间段和多个地理位置信息,并为每一个时间段所处的每一个地理位置信息设置对应的音量信息,将该多个时间段、多个地理位置信息和该每一个时间段所处的每一个地理位置信息对应的音量信息,存储在时间段、地理位置信息与音量信息之间的对应关系中。In the third way, when the volume adjustment information includes the current system time and the current geographic location information, the electronic device can set multiple time periods and multiple geographic location information, and set The geographic location information sets the corresponding volume information, and stores the multiple time periods, multiple geographic location information, and the volume information corresponding to each geographic location information of each time period in the time period, geographic location information and volume information. Correspondence between information.

需要说明的是,该电子设备设置多个时间段和多个地理位置信息,并为每一个时间段的每一个地理位置信息设置对应的音量信息的方式,可以和划分多个指定时间段,并为该多个指定时间段中每一个指定时间段确定音量信息的方式相同。It should be noted that the electronic device sets multiple time periods and multiple geographic location information, and sets corresponding volume information for each geographic location information of each time period, which can be divided into multiple specified time periods, and The manner of determining the volume information for each of the multiple specified time periods is the same.

第四种方式,当该音量调节信息包括当前所处外界环境的噪声信息时,该电子设备可以设置多个噪声信息,并为该多个噪声信息中每一个噪声信息设置对应的音量信息,将该多个噪声信息和该多个噪声信息中每一个噪声信息设置对应的音量信息,存储在噪声信息与音量信息之间的对应关系中。In a fourth way, when the volume adjustment information includes noise information of the current external environment, the electronic device can set a plurality of noise information, and set corresponding volume information for each noise information in the plurality of noise information, and set The plurality of noise information and volume information corresponding to each noise information in the plurality of noise information are stored in the correspondence between noise information and volume information.

需要说明的是,该电子设备设置多个噪声信息,并为该多个噪声信息中每一个噪声设置对应的音量信息的方式,可以和划分多个指定时间段,并为该多个指定时间段中每一个指定时间段确定音量信息的方式相同。It should be noted that the electronic device sets a plurality of noise information, and sets the corresponding volume information for each noise in the plurality of noise information, and can divide a plurality of designated time periods, and for the plurality of designated time periods The volume information is determined in the same way for each specified time period in .

需要强调的一点是,本公开实施例不仅可以通过上述四种方式,从存储的音量调节信息与音量信息之间的对应关系中获取对应的音量信息,实际应用中,还可以将上述四种方式进行结合,或者还可以采用其他的方式来获取,本公开实施例对此不做具体限定。It should be emphasized that the embodiment of the present disclosure can not only obtain the corresponding volume information from the corresponding relationship between the stored volume adjustment information and the volume information through the above four methods, but also can use the above four methods in practical applications. combination, or may also be acquired in other ways, which are not specifically limited in this embodiment of the present disclosure.

在步骤203中,根据获取的音量信息,对播放声音信息的音量进行调节。In step 203, the volume of the playing sound information is adjusted according to the acquired volume information.

其中,由于该音量信息是根据该音量调节信息获取得到,因此,该音量信息是与该电子设备当前系统时间、当前所处地理位置信息或者当前所处外界环境的噪声信息中的至少一种对应的音量信息,所以,该电子设备可以根据该音量信息,对播放声音信息的音量进行调节。Wherein, since the volume information is obtained according to the volume adjustment information, the volume information corresponds to at least one of the current system time of the electronic device, the current geographic location information, or the noise information of the current external environment. Therefore, the electronic device can adjust the volume of the playing sound information according to the volume information.

例如,当该电子设备获取的音量信息为60%时,将播放声音信息的音量调节为该电子设备音量最大值的60%。For example, when the volume information acquired by the electronic device is 60%, the volume of the sound information played is adjusted to 60% of the maximum volume of the electronic device.

在步骤204中,根据调节后的音量播放声音信息。In step 204, the sound information is played according to the adjusted volume.

需要说明的是,当该电子设备播放声音信息时,可以恒定地按照调节后的音量播放,也可以在开始播放时,将播放声音信息的音量由该电子设备音量的最低值逐渐增大至该调节后的音量。It should be noted that when the electronic device plays the sound information, it can be played at the adjusted volume constantly, or the volume of the sound information can be gradually increased from the lowest value of the volume of the electronic device to the volume when starting to play. Adjusted volume.

进一步地,在播放声音信息之后,当接收到音量调节指令时,基于该音量调节指令调节后的音量,对音量调节信息与音量信息之间的对应关系进行更新。Further, after the sound information is played, when a volume adjustment instruction is received, the corresponding relationship between the volume adjustment information and the volume information is updated based on the volume adjusted by the volume adjustment instruction.

其中,当该电子设备根据调节后的音量播放声音信息时,可能该音量还是无法满足用户需求,因此,为了进一步提高调节该电子设备音量的准确率,该电子设备可以在根据调节后的音量播放声音信息之后,接收音量调节指令,并对音量调节信息与音量信息之间的对应关系进行更新,以便于该电子设备调节的音量信息更加符合用户的需求,进一步提高调节音量的效率。Wherein, when the electronic device plays sound information according to the adjusted volume, the volume may still not meet the needs of the user. Therefore, in order to further improve the accuracy of adjusting the volume of the electronic device, the electronic device can play the sound information according to the adjusted volume. After the sound information, the volume adjustment command is received, and the corresponding relationship between the volume adjustment information and the volume information is updated, so that the volume information adjusted by the electronic device can better meet the needs of the user, and further improve the efficiency of volume adjustment.

需要说明的是,该音量调节指令可以由用户通过执行预设操作触发,该预设操作可以是点击操作、滑动操作等操作,本公开实施例对此不做具体限定。It should be noted that the volume adjustment instruction may be triggered by the user by performing a preset operation, and the preset operation may be operations such as a click operation and a slide operation, which are not specifically limited in this embodiment of the present disclosure.

还需要说明的是,当该电子设备基于该音量调节指令调节后的音量,对音量调节信息与音量信息之间的对应关系进行更新时,该电子设备可以根据步骤201中确定的音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,并将获取的音量信息替换为调节后的音量信息,以对音量调节信息与音量信息之间的对应关系进行更新。It should also be noted that when the electronic device updates the corresponding relationship between volume adjustment information and volume information based on the volume adjusted by the volume adjustment instruction, the electronic device may, according to the volume adjustment information determined in step 201, Obtain the corresponding volume information from the stored correspondence between the volume adjustment information and the volume information, and replace the acquired volume information with the adjusted volume information, so as to carry out the corresponding relationship between the volume adjustment information and the volume information. renew.

例如,该电子设备根据调节后的音量播放声音信息之后,当接收到音量调节指令时,该音量调节指令调节后的音量为该电子设备音量最大值的80%,因此,该电子设备根据步骤201中确定的音量调节信息为音量调节信息1,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息为60%,并将获取的音量信息60%替换为调节后的音量信息80%。For example, after the electronic device plays sound information according to the adjusted volume, when a volume adjustment command is received, the volume adjusted by the volume adjustment command is 80% of the maximum volume of the electronic device. Therefore, the electronic device according to step 201 The volume adjustment information determined in is volume adjustment information 1. From the stored correspondence between volume adjustment information and volume information, the corresponding volume information is obtained as 60%, and the acquired volume information 60% is replaced with the adjusted Volume information 80%.

在本公开实施例中,该电子设备可以按照预设时长获取该音量调节信息或者在播放声音信息时获取该音量调节信息,且该音量调节信息可以根据实际需要包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的一种或者多种,提高了获取该音量调节信息的灵活性;并且,该电子设备可以根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,即该电子设备能够根据不同的音量调节信息,获取到不同的音量信息,提高了该电子设备获取音量信息的准确率;另外,该电子设备可以根据获取的音量信息,对播放声音信息的音量进行调节,而且在根据调节后的音量播放声音信息,并接收音量调节指令时,该电子设备基于该音量调节指令调节后的音量,对音量调节信息与音量信息之间的对应关系进行更新,进一步提高了调节该电子设备播放声音音量的准确率。In an embodiment of the present disclosure, the electronic device can acquire the volume adjustment information according to a preset duration or when playing sound information, and the volume adjustment information can include the current system time, the current geographic location One or more of the location information and the noise information of the current external environment improves the flexibility of obtaining the volume adjustment information; and the electronic device can use the stored volume adjustment information and the volume adjustment information according to the volume adjustment information. In the corresponding relationship between information, the corresponding volume information is obtained, that is, the electronic device can obtain different volume information according to different volume adjustment information, which improves the accuracy of the electronic device in obtaining volume information; in addition, the electronic device The volume of the sound information to be played can be adjusted according to the acquired volume information, and when the sound information is played according to the adjusted volume and a volume adjustment instruction is received, the electronic device adjusts the volume based on the volume adjusted by the volume adjustment instruction. The corresponding relationship between the information and the volume information is updated, further improving the accuracy of adjusting the volume of the sound played by the electronic device.

图3是根据一示例性实施例示出的一种音量调节装置框图。参照图3,该装置包括第一获取模块301、第二获取模块302和调节模块303。Fig. 3 is a block diagram of a volume adjustment device according to an exemplary embodiment. Referring to FIG. 3 , the device includes a first acquisition module 301 , a second acquisition module 302 and an adjustment module 303 .

第一获取模块301,用于获取音量调节信息,该音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;The first acquiring module 301 is configured to acquire volume adjustment information, where the volume adjustment information includes at least one of the current system time, the current geographic location information, and the noise information of the current external environment;

第二获取模块302,用于根据该第一获取模块获取的音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;The second obtaining module 302 is configured to obtain the corresponding volume information from the stored correspondence between the volume adjustment information and the volume information according to the volume adjustment information obtained by the first obtaining module;

调节模块303,用于根据该第二获取模块获取的音量信息,对播放声音信息的音量进行调节。The adjusting module 303 is configured to adjust the volume of the playing sound information according to the volume information acquired by the second acquiring module.

在本公开的另一实施例中,该第一获取模块包括:In another embodiment of the present disclosure, the first acquisition module includes:

第一确定单元,用于当该音量调节信息包括当前系统时间时,从多个指定时间段中,确定该当前系统时间所处的指定时间段;A first determining unit, configured to, when the volume adjustment information includes the current system time, determine a specified time period in which the current system time is located from a plurality of specified time periods;

第一获取单元,用于根据当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。The first acquiring unit is configured to acquire the corresponding volume information from the stored correspondence between the time period and the volume information according to the specified time period in which the current system time is located.

在本公开的另一实施例中,该第一获取模块包括:In another embodiment of the present disclosure, the first acquisition module includes:

第二确定单元,用于当该音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定该当前系统时间所处的指定时间段;The second determining unit is used to determine the specified time period of the current system time from a plurality of specified time periods when the volume adjustment information includes the current system time and the current geographic location information;

第二获取单元,用于根据该当前系统时间所处的指定时间段和该当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。The second acquisition unit is configured to acquire the corresponding volume from the stored correspondence between the time period, geographic location information, and volume information according to the specified time period of the current system time and the current geographic location information information.

在本公开的另一实施例中,该第一获取模块包括:In another embodiment of the present disclosure, the first acquisition module includes:

第三获取单元,用于当该音量调节信息包括当前所处外界环境的噪声信息时,根据该当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。The third acquiring unit is configured to, when the volume adjustment information includes the noise information of the current external environment, obtain from the stored correspondence between the noise information and the volume information according to the noise information of the current external environment. Corresponding volume information.

在本公开的另一实施例中,该装置还包括:In another embodiment of the present disclosure, the device also includes:

播放模块,用于根据该调节模块调节后的音量播放声音信息;A playback module, configured to play sound information according to the volume adjusted by the adjustment module;

更新模块,用于在该播放模块播放声音信息之后,当接收到音量调节指令时,基于该音量调节指令调节后的音量,对该音量调节信息与音量信息之间的对应关系进行更新。The update module is configured to update the corresponding relationship between the volume adjustment information and the volume information based on the volume adjusted by the volume adjustment instruction when the volume adjustment instruction is received after the playback module plays the sound information.

在本公开的另一实施例中,该装置还包括:In another embodiment of the present disclosure, the device also includes:

执行模块,用于当播放声音信息时,执行该获取音量调节信息的步骤。The executing module is configured to execute the step of acquiring volume adjustment information when the sound information is played.

在本公开实施例中,该电子设备可以获取该音量调节信息,且该音量调节信息可以根据实际需要包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的一种或者多种,提高了获取该音量调节信息的灵活性;并且,该电子设备可以根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,由于该音量信息是与该音量调节信息对应的音量信息,因此,该电子设备可以根据获取的音量信息,对播放声音信息的音量进行调节,能够提高调节该电子设备播放声音音量的准确率。In the embodiment of the present disclosure, the electronic device can obtain the volume adjustment information, and the volume adjustment information can include one of the current system time, the current geographic location information, and the noise information of the current external environment according to actual needs. or multiple types, improving the flexibility of obtaining the volume adjustment information; and, according to the volume adjustment information, the electronic device can obtain the corresponding volume information from the corresponding relationship between the stored volume adjustment information and the volume information, because The volume information is volume information corresponding to the volume adjustment information. Therefore, the electronic device can adjust the volume of the sound information played according to the acquired volume information, which can improve the accuracy of adjusting the volume of the sound played by the electronic device.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图4是根据一示例性实施例示出的一种用于音量调节装置400的框图。例如,装置400可以是移动电话,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 4 is a block diagram of a volume adjusting device 400 according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图4,装置400可以包括以下一个或多个组件:处理组件402,存储器404,电源组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。4, device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input/output (I/O) interface 412, sensor component 414, and communication component 416 .

处理组件402通常控制装置400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其它组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operations of the device 400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402 .

存储器404被配置为存储各种类型的数据以支持在装置400的操作。这些数据的示例包括用于在装置400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 404 is configured to store various types of data to support operations at the device 400 . Examples of such data include instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage device or their combination, 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 Disk.

电源组件406为装置400的各种组件提供电源。电源组件406可以包括电源管理系统,一个或多个电源,及其它与为装置400生成、管理和分配电源相关联的组件。The power supply component 406 provides power to various components of the device 400 . Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 400 .

多媒体组件408包括在所述装置400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当装置400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 408 includes a screen that provides an output interface between the device 400 and the 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 input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the device 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当装置400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC), which is configured to receive external audio signals when the device 400 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 404 or sent via communication component 416 . In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为装置400提供各个方面的状态评估。例如,传感器组件414可以检测到装置400的打开/关闭状态,组件的相对定位,例如所述组件为装置400的显示器和小键盘,传感器组件414还可以检测装置400或装置400一个组件的位置改变,用户与装置400接触的存在或不存在,装置400方位或加速/减速和装置400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing status assessments of various aspects of device 400 . For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor component 414 can also detect a change in the position of the device 400 or a component of the device 400 , the presence or absence of user contact with the device 400 , the device 400 orientation or acceleration/deceleration and the temperature change of the device 400 . The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件416被配置为便于装置400和其它设备之间有线或无线方式的通信。装置400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其它技术来实现。The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The device 400 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其它电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 400 may be programmed 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, microcontrollers, microprocessors or other electronic component implementations for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由装置400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, which can be executed by the processor 420 of the device 400 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种音量调节方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute a volume adjustment method, the method comprising:

获取音量调节信息,该音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;Acquiring volume adjustment information, the volume adjustment information includes at least one of the current system time, the current geographic location information, and the noise information of the current external environment;

根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;According to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information;

根据获取的音量信息,对播放声音信息的音量进行调节。According to the obtained volume information, the volume of the playing sound information is adjusted.

在本公开的另一实施例中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:In another embodiment of the present disclosure, according to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information, including:

当该音量调节信息包括当前系统时间时,从多个指定时间段中,确定该当前系统时间所处的指定时间段;When the volume adjustment information includes the current system time, determine the specified time period in which the current system time is located from a plurality of specified time periods;

根据该当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。According to the designated time period where the current system time is located, the corresponding volume information is obtained from the stored correspondence between the time period and the volume information.

在本公开的另一实施例中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:In another embodiment of the present disclosure, according to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information, including:

当该音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定该当前系统时间所处的指定时间段;When the volume adjustment information includes current system time and current geographic location information, determine the specified time period in which the current system time is located from a plurality of specified time periods;

根据该当前系统时间所处的指定时间段和该当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。According to the designated time period of the current system time and the current geographic location information, the corresponding volume information is obtained from the stored correspondence between the time period, geographic location information, and volume information.

在本公开的另一实施例中,根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:In another embodiment of the present disclosure, according to the volume adjustment information, the corresponding volume information is obtained from the stored correspondence between the volume adjustment information and the volume information, including:

当该音量调节信息包括当前所处外界环境的噪声信息时,根据该当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。When the volume adjustment information includes noise information of the current external environment, the corresponding volume information is obtained from the stored correspondence between noise information and volume information according to the noise information of the current external environment.

在本公开的另一实施例中,根据获取的音量信息,对播放声音信息的音量进行调节之后,还包括:In another embodiment of the present disclosure, after adjusting the volume of the sound information to be played according to the acquired volume information, it further includes:

根据调节后的音量播放声音信息;Play sound information according to the adjusted volume;

在播放声音信息之后,当接收到音量调节指令时,基于该音量调节指令调节后的音量,对该音量调节信息与音量信息之间的对应关系进行更新。After the sound information is played, when a volume adjustment instruction is received, the corresponding relationship between the volume adjustment information and the volume information is updated based on the volume adjusted by the volume adjustment instruction.

在本公开的另一实施例中,获取音量调节信息之前,还包括:In another embodiment of the present disclosure, before acquiring the volume adjustment information, it further includes:

当播放声音信息时,执行该获取音量调节信息的步骤。When the sound information is played, the step of acquiring volume adjustment information is performed.

在本公开实施例中,该电子设备可以获取该音量调节信息,且该音量调节信息可以根据实际需要包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的一种或者多种,提高了获取该音量调节信息的灵活性;并且,该电子设备可以根据该音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,由于该音量信息是与该音量调节信息对应的音量信息,因此,该电子设备可以根据获取的音量信息,对播放声音信息的音量进行调节,能够提高调节该电子设备播放声音音量的准确率。In the embodiment of the present disclosure, the electronic device can obtain the volume adjustment information, and the volume adjustment information can include one of the current system time, the current geographic location information, and the noise information of the current external environment according to actual needs. or multiple types, improving the flexibility of obtaining the volume adjustment information; and, according to the volume adjustment information, the electronic device can obtain the corresponding volume information from the corresponding relationship between the stored volume adjustment information and the volume information, because The volume information is volume information corresponding to the volume adjustment information. Therefore, the electronic device can adjust the volume of the sound information played according to the acquired volume information, which can improve the accuracy of adjusting the volume of the sound played by the electronic device.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (13)

1.一种音量调节方法,其特征在于,所述方法包括:1. A volume adjustment method, characterized in that the method comprises: 获取音量调节信息,所述音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;Acquiring volume adjustment information, where the volume adjustment information includes at least one of current system time, current geographic location information, and noise information of the current external environment; 根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;Acquiring corresponding volume information from the stored correspondence between volume adjustment information and volume information according to the volume adjustment information; 根据获取的音量信息,对播放声音信息的音量进行调节。According to the obtained volume information, the volume of the playing sound information is adjusted. 2.如权利要求1所述的方法,其特征在于,所述根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:2. The method according to claim 1, wherein, according to the volume adjustment information, obtaining the corresponding volume information from the stored correspondence between the volume adjustment information and the volume information comprises: 当所述音量调节信息包括当前系统时间时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;When the volume adjustment information includes the current system time, determine the specified time period in which the current system time is located from a plurality of specified time periods; 根据所述当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。According to the specified time period in which the current system time is located, the corresponding volume information is obtained from the stored correspondence between the time period and the volume information. 3.如权利要求1所述的方法,其特征在于,所述根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:3. The method according to claim 1, wherein the obtaining corresponding volume information from the stored correspondence between volume adjustment information and volume information according to the volume adjustment information comprises: 当所述音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;When the volume adjustment information includes current system time and current geographic location information, determine a specified time period in which the current system time is located from a plurality of specified time periods; 根据所述当前系统时间所处的指定时间段和所述当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。According to the specified time period where the current system time is located and the current geographic location information, the corresponding volume information is acquired from the stored correspondence between the time period, geographic location information, and volume information. 4.如权利要求1所述的方法,其特征在于,所述根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息,包括:4. The method according to claim 1, wherein the obtaining corresponding volume information from the stored correspondence between volume adjustment information and volume information according to the volume adjustment information comprises: 当所述音量调节信息包括当前所处外界环境的噪声信息时,根据所述当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。When the volume adjustment information includes noise information of the current external environment, the corresponding volume information is obtained from a stored correspondence between noise information and volume information according to the noise information of the current external environment. 5.如权利要求1所述的方法,其特征在于,所述根据获取的音量信息,对播放声音信息的音量进行调节之后,还包括:5. The method according to claim 1, characterized in that, after adjusting the volume of the playing sound information according to the acquired volume information, further comprising: 根据调节后的音量播放声音信息;Play sound information according to the adjusted volume; 在播放声音信息之后,当接收到音量调节指令时,基于所述音量调节指令调节后的音量,对所述音量调节信息与音量信息之间的对应关系进行更新。After the sound information is played, when a volume adjustment instruction is received, the corresponding relationship between the volume adjustment information and the volume information is updated based on the volume adjusted by the volume adjustment instruction. 6.如权利要求1-5任一权利要求所述的方法,其特征在于,所述获取音量调节信息之前,还包括:6. The method according to any one of claims 1-5, characterized in that, before acquiring the volume adjustment information, further comprising: 当播放声音信息时,执行所述获取音量调节信息的步骤。When the sound information is played, the step of acquiring volume adjustment information is performed. 7.一种音量调节装置,其特征在于,所述装置包括:7. A volume adjustment device, characterized in that the device comprises: 第一获取模块,用于获取音量调节信息,所述音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;A first acquiring module, configured to acquire volume adjustment information, where the volume adjustment information includes at least one of current system time, current geographic location information, and noise information of the current external environment; 第二获取模块,用于根据所述第一获取模块获取的音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;The second obtaining module is configured to obtain the corresponding volume information from the stored correspondence between the volume adjustment information and the volume information according to the volume adjustment information obtained by the first obtaining module; 调节模块,用于根据所述第二获取模块获取的音量信息,对播放声音信息的音量进行调节。An adjusting module, configured to adjust the volume of the playing sound information according to the volume information acquired by the second acquiring module. 8.如权利要求7所述的装置,其特征在于,所述第一获取模块包括:8. The device according to claim 7, wherein the first acquiring module comprises: 第一确定单元,用于当所述音量调节信息包括当前系统时间时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;A first determining unit, configured to, when the volume adjustment information includes the current system time, determine a specified time period in which the current system time is located from a plurality of specified time periods; 第一获取单元,用于根据当前系统时间所处的指定时间段,从存储的时间段与音量信息之间的对应关系中,获取对应的音量信息。The first acquiring unit is configured to acquire the corresponding volume information from the stored correspondence between the time period and the volume information according to the specified time period in which the current system time is located. 9.如权利要求7所述的装置,其特征在于,所述第一获取模块包括:9. The device according to claim 7, wherein the first acquiring module comprises: 第二确定单元,用于当所述音量调节信息包括当前系统时间和当前所处地理位置信息时,从多个指定时间段中,确定所述当前系统时间所处的指定时间段;A second determining unit, configured to determine a specified time period in which the current system time is located from a plurality of specified time periods when the volume adjustment information includes current system time and current geographical location information; 第二获取单元,用于根据所述当前系统时间所处的指定时间段和所述当前所处地理位置信息,从存储的时间段、地理位置信息与音量信息之间的对应关系中,获取对应的音量信息。The second obtaining unit is configured to obtain the corresponding time period, geographic location information, and volume information from the stored correspondence between the time period, geographic location information, and volume information according to the specified time period of the current system time and the current geographic location information. volume information. 10.如权利要求7所述的装置,其特征在于,所述第一获取模块包括:10. The device according to claim 7, wherein the first acquiring module comprises: 第三获取单元,用于当所述音量调节信息包括当前所处外界环境的噪声信息时,根据所述当前所处外界环境的噪声信息,从存储的噪声信息与音量信息之间的对应关系中,获取对应的音量信息。A third acquiring unit, configured to, when the volume adjustment information includes noise information of the current external environment, from the stored correspondence between the noise information and the volume information according to the noise information of the current external environment , to obtain the corresponding volume information. 11.如权利要求7所述的装置,其特征在于,所述装置还包括:11. The device of claim 7, further comprising: 播放模块,用于根据所述调节模块调节后的音量播放声音信息;a playback module, configured to play sound information according to the volume adjusted by the adjustment module; 更新模块,用于在所述播放模块播放声音信息之后,当接收到音量调节指令时,基于所述音量调节指令调节后的音量,对所述音量调节信息与音量信息之间的对应关系进行更新。An update module, configured to update the correspondence between the volume adjustment information and the volume information based on the volume adjusted by the volume adjustment instruction when the volume adjustment instruction is received after the playback module plays the sound information . 12.如权利要求7-11任一权利要求所述的装置,其特征在于,所述装置还包括:12. The device according to any one of claims 7-11, wherein the device further comprises: 执行模块,用于当播放声音信息时,执行所述获取音量调节信息的步骤。An executing module, configured to execute the step of acquiring volume adjustment information when the sound information is played. 13.一种音量调节装置,其特征在于,所述装置包括:13. A volume adjustment device, characterized in that the device comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 获取音量调节信息,所述音量调节信息包括当前系统时间、当前所处地理位置信息和当前所处外界环境的噪声信息中的至少一种;Acquiring volume adjustment information, where the volume adjustment information includes at least one of current system time, current geographic location information, and noise information of the current external environment; 根据所述音量调节信息,从存储的音量调节信息与音量信息之间的对应关系中,获取对应的音量信息;Acquiring corresponding volume information from the stored correspondence between volume adjustment information and volume information according to the volume adjustment information; 根据获取的音量信息,对播放声音信息的音量进行调节。According to the obtained volume information, the volume of the playing sound information is adjusted.
CN201610258618.7A 2016-04-22 2016-04-22 Volume regulation method and device Pending CN105975241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610258618.7A CN105975241A (en) 2016-04-22 2016-04-22 Volume regulation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610258618.7A CN105975241A (en) 2016-04-22 2016-04-22 Volume regulation method and device

Publications (1)

Publication Number Publication Date
CN105975241A true CN105975241A (en) 2016-09-28

Family

ID=56994705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610258618.7A Pending CN105975241A (en) 2016-04-22 2016-04-22 Volume regulation method and device

Country Status (1)

Country Link
CN (1) CN105975241A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528036A (en) * 2016-10-09 2017-03-22 腾讯科技(深圳)有限公司 Volume adjusting method and device
CN106603819A (en) * 2016-11-25 2017-04-26 滁州昭阳电信通讯设备科技有限公司 Method for adjusting volume of mobile terminal, and mobile terminal
CN106791163A (en) * 2017-01-06 2017-05-31 深圳市金立通信设备有限公司 A kind of volume adjusting method and terminal
CN106970774A (en) * 2017-03-29 2017-07-21 广州阿里巴巴文学信息技术有限公司 A kind of volume adjustment device and method, a kind of terminal
CN107329729A (en) * 2017-06-26 2017-11-07 深圳市泰衡诺科技有限公司 Volume adjusting method, volume adjustment device and terminal
CN107508978A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Volume adjustment method, device, storage medium and terminal equipment
CN107508982A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Volume adjustment method, device, storage medium and electronic equipment
CN107741841A (en) * 2017-09-26 2018-02-27 深圳市丰巢科技有限公司 A kind of method and system that express delivery cabinet volume is automatically adjusted according to ambient sound
CN107766030A (en) * 2017-11-13 2018-03-06 百度在线网络技术(北京)有限公司 Volume adjusting method, device, equipment and computer-readable medium
CN108052306A (en) * 2017-12-12 2018-05-18 广东小天才科技有限公司 Method and device for adjusting playing volume, playing equipment and storage medium
CN108089838A (en) * 2018-01-10 2018-05-29 上海展扬通信技术有限公司 Volume adjusting method, mobile terminal and storage medium under screen lock state
CN108279861A (en) * 2017-08-31 2018-07-13 腾讯科技(深圳)有限公司 volume adjusting method, device and storage medium
WO2018166089A1 (en) * 2017-03-15 2018-09-20 华为技术有限公司 Method for controlling audio and mobile terminal
CN109471608A (en) * 2018-10-31 2019-03-15 北京羽扇智信息科技有限公司 A kind of method of adjustment and device of volume
CN109660653A (en) * 2017-10-11 2019-04-19 成都鼎桥通信技术有限公司 Method for controlling volume and device
CN111324328A (en) * 2018-12-14 2020-06-23 云丁网络技术(北京)有限公司 Volume adjusting method and device
CN112581968A (en) * 2019-09-30 2021-03-30 青岛海尔电冰箱有限公司 Intelligent adjusting method and device of prompt tone and refrigerator
CN113467747A (en) * 2021-06-01 2021-10-01 荣耀终端有限公司 Volume adjustment method, electronic device, storage medium, and computer program product
CN114554278A (en) * 2022-01-28 2022-05-27 青岛海尔科技有限公司 Playback control method and device, storage medium and electronic device
CN115878069A (en) * 2022-12-02 2023-03-31 珠海格力电器股份有限公司 Volume control method and device, intelligent terminal and storage medium
US11743336B2 (en) 2018-07-04 2023-08-29 Yunding Network Technology (Beijing) Co., Ltd. Method and system for operating an electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345929A (en) * 2013-06-25 2013-10-09 三星电子(中国)研发中心 Method and device for adjusting volume
CN104427075A (en) * 2013-08-26 2015-03-18 深圳富泰宏精密工业有限公司 Volume adjusting system and method
JP2015228054A (en) * 2014-05-30 2015-12-17 和俊 尾花 Information processing system, information processing apparatus, information processing program, and information processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345929A (en) * 2013-06-25 2013-10-09 三星电子(中国)研发中心 Method and device for adjusting volume
CN104427075A (en) * 2013-08-26 2015-03-18 深圳富泰宏精密工业有限公司 Volume adjusting system and method
JP2015228054A (en) * 2014-05-30 2015-12-17 和俊 尾花 Information processing system, information processing apparatus, information processing program, and information processing method

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528036B (en) * 2016-10-09 2020-02-14 腾讯科技(深圳)有限公司 Volume adjusting method and device
CN106528036A (en) * 2016-10-09 2017-03-22 腾讯科技(深圳)有限公司 Volume adjusting method and device
CN106603819A (en) * 2016-11-25 2017-04-26 滁州昭阳电信通讯设备科技有限公司 Method for adjusting volume of mobile terminal, and mobile terminal
CN106791163A (en) * 2017-01-06 2017-05-31 深圳市金立通信设备有限公司 A kind of volume adjusting method and terminal
WO2018166089A1 (en) * 2017-03-15 2018-09-20 华为技术有限公司 Method for controlling audio and mobile terminal
CN106970774A (en) * 2017-03-29 2017-07-21 广州阿里巴巴文学信息技术有限公司 A kind of volume adjustment device and method, a kind of terminal
CN107329729A (en) * 2017-06-26 2017-11-07 深圳市泰衡诺科技有限公司 Volume adjusting method, volume adjustment device and terminal
CN107508982A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Volume adjustment method, device, storage medium and electronic equipment
CN107508978A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Volume adjustment method, device, storage medium and terminal equipment
CN108279861B (en) * 2017-08-31 2021-04-27 腾讯科技(深圳)有限公司 Volume adjusting method and device and storage medium
CN108279861A (en) * 2017-08-31 2018-07-13 腾讯科技(深圳)有限公司 volume adjusting method, device and storage medium
CN107741841A (en) * 2017-09-26 2018-02-27 深圳市丰巢科技有限公司 A kind of method and system that express delivery cabinet volume is automatically adjusted according to ambient sound
CN109660653A (en) * 2017-10-11 2019-04-19 成都鼎桥通信技术有限公司 Method for controlling volume and device
CN107766030A (en) * 2017-11-13 2018-03-06 百度在线网络技术(北京)有限公司 Volume adjusting method, device, equipment and computer-readable medium
CN108052306A (en) * 2017-12-12 2018-05-18 广东小天才科技有限公司 Method and device for adjusting playing volume, playing equipment and storage medium
CN108089838A (en) * 2018-01-10 2018-05-29 上海展扬通信技术有限公司 Volume adjusting method, mobile terminal and storage medium under screen lock state
US11743336B2 (en) 2018-07-04 2023-08-29 Yunding Network Technology (Beijing) Co., Ltd. Method and system for operating an electronic device
CN109471608A (en) * 2018-10-31 2019-03-15 北京羽扇智信息科技有限公司 A kind of method of adjustment and device of volume
CN111324328A (en) * 2018-12-14 2020-06-23 云丁网络技术(北京)有限公司 Volume adjusting method and device
CN111324328B (en) * 2018-12-14 2021-12-24 云丁网络技术(北京)有限公司 Volume adjusting method and device
CN112581968A (en) * 2019-09-30 2021-03-30 青岛海尔电冰箱有限公司 Intelligent adjusting method and device of prompt tone and refrigerator
CN113467747A (en) * 2021-06-01 2021-10-01 荣耀终端有限公司 Volume adjustment method, electronic device, storage medium, and computer program product
CN114554278A (en) * 2022-01-28 2022-05-27 青岛海尔科技有限公司 Playback control method and device, storage medium and electronic device
CN114554278B (en) * 2022-01-28 2023-12-19 青岛海尔科技有限公司 Playing control method and device, storage medium and electronic device
CN115878069A (en) * 2022-12-02 2023-03-31 珠海格力电器股份有限公司 Volume control method and device, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN105975241A (en) Volume regulation method and device
CN111128092B (en) Screen brightness adjustment method, screen brightness adjustment device and computer storage medium
CN105898032B (en) Prompt sound adjustment method and device
CN107493500B (en) Multimedia resource playback method and device
CN104065818A (en) Method and device for prompting user
CN106371802A (en) Terminal volume control method and device
CN106331338A (en) Volume adjustment method and device
CN108845787B (en) Method, device, terminal and storage medium for audio adjustment
CN106161781A (en) Method for regulation of sound volume and device
CN104902059A (en) Call reminding method and device
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
CN105407433A (en) Method and device for controlling sound output equipment
CN111128091B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN107360326A (en) terminal volume adjusting processing method and terminal
CN109522058B (en) Wake-up method, device, terminal and storage medium
CN111601377B (en) Temperature control method, device and storage medium
CN105933539A (en) Audio playing control method and device, and terminal
EP3024211A1 (en) Method and device for announcing voice call
CN106250138A (en) Method for controlling volume and device
CN105653236A (en) Sound volume control method and device and mobile terminal
CN106484392A (en) icon display method and device
CN107529699A (en) Control method of electronic device and device
CN105657690A (en) Method and device for processing mobile terminal setting information
CN105979465A (en) Method and device for determining maximum output power value of earphone equipment
CN106408258A (en) Ringtone reminding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160928

RJ01 Rejection of invention patent application after publication