








技术领域technical field
本公开涉及音频处理领域,尤其涉及响度控制方法及装置。The present disclosure relates to the field of audio processing, and in particular, to a loudness control method and device.
背景技术Background technique
随着科技的发展,音频播放设备例如智能音箱能够通过网络获取海量的可用于播放的音频文件,其中所获取的音频文件可能是由多家提供方所提供的,同时所获取的音频文件还可能包括多种内容类型例如相声、话剧、古典音乐、摇滚音乐等。相关技术中,当音频播放设备的音量一定时,可能出现音频播放设备播放一个提供方所提供的内容类型为相声的音频文件时输出的响度刚好适合用户听取,而该音频播放设备播放另一个提供方所提供的内容类型为古典音乐的音频文件时输出的响度较大或较小不适合用户听取的状况,因此需要用户针对不同类型的音频文件调整响度增益值或音量值,使音频播放器输出的响度适合用户听取,从而损害了用户体验。With the development of science and technology, audio playback devices such as smart speakers can obtain a large number of audio files that can be played through the network. The obtained audio files may be provided by multiple providers, and the obtained audio files may also be Including a variety of content types such as comic dialogue, drama, classical music, rock music, etc. In the related art, when the volume of the audio playback device is constant, it may happen that when the audio playback device plays an audio file whose content type is crosstalk provided by one provider, the output loudness is just suitable for the user to listen to, while the audio playback device plays another provider. When the content type provided by the party is an audio file of classical music, the output loudness is large or small, which is not suitable for the user to listen to. Therefore, the user needs to adjust the loudness gain value or volume value for different types of audio files to make the audio player output. The loudness is suitable for the user to hear, thus impairing the user experience.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开的实施例提供一种响度控制方法及装置。技术方案如下:To overcome the problems existing in the related art, embodiments of the present disclosure provide a loudness control method and apparatus. The technical solution is as follows:
根据本公开的实施例的第一方面,提供一种响度控制方法,该方法应用于音频播放设备,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a loudness control method, which is applied to an audio playback device, including:
获取音频文件以及用于播放音频文件的音量值;Get the audio file and the volume value used to play the audio file;
确定音频文件的音频类型,音频类型至少包括音频文件的内容类型以及音频文件的提供方类型中至少一项;Determine the audio type of the audio file, the audio type includes at least one of the content type of the audio file and the provider type of the audio file;
获取与音量值以及音频类型对应的目标响度增益值;Get the target loudness gain value corresponding to the volume value and audio type;
根据目标响度增益值对音频文件进行响度增益调整。Makes a loudness gain adjustment to the audio file based on the target loudness gain value.
本公开的实施例提供的技术方案中,通过获取音频文件以及用于播放音频文件的音量值,其中音量值能够反映用户希望音频播放设备输出响度的大小,通过确定音频文件的音频类型,获取与音量值以及音频类型对应的目标响度增益值,并根据目标响度增益值对音频文件进行响度增益调整,其中目标响度增益值为适合在该音量值下播放该音频类型的音频文件时对音频文件进行响度增益调整所使用的增益值。因此当音频播放设备播放经过上述响度增益调整后的音频文件时,在无需用户整响度增益值或音量值的前提下,使音频播放设备所输出的响度为适于用户听取该音频类型的音频文件的响度,从而改善了用户体验。In the technical solution provided by the embodiments of the present disclosure, by acquiring an audio file and a volume value for playing the audio file, where the volume value can reflect the loudness output of the audio playback device desired by the user, and by determining the audio type of the audio file, the corresponding The volume value and the target loudness gain value corresponding to the audio type, and the loudness gain adjustment is performed on the audio file according to the target loudness gain value, where the target loudness gain value is suitable for playing the audio file of the audio type at the volume value. The gain value used for the Loudness Gain adjustment. Therefore, when the audio playback device plays the audio file after the above-mentioned loudness gain adjustment, without the need for the user to adjust the loudness gain value or the volume value, the loudness output by the audio playback device is suitable for the user to listen to the audio file of the audio type. loudness, thereby improving the user experience.
在一个实施例中,方法还包括:In one embodiment, the method further includes:
获取音频文件的音频标识,音频标识用于指示音频文件的音频类型;Obtain the audio identifier of the audio file, and the audio identifier is used to indicate the audio type of the audio file;
确定音频文件的音频类型,包括:Determine the audio type of an audio file, including:
根据音频文件的音频标识确定音频文件的音频类型。The audio type of the audio file is determined according to the audio identification of the audio file.
在一个实施例中,获取与音量值以及音频类型对应的目标响度增益值,包括:In one embodiment, obtaining the target loudness gain value corresponding to the volume value and the audio type includes:
根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值,响度增益数据库用于指示至少一组音量值以及音频类型与响度增益值的对应关系。The loudness gain database is queried according to the volume value and the audio type to obtain the target loudness gain value, and the loudness gain database is used to indicate at least one set of the corresponding relationship between the volume value and the audio type and the loudness gain value.
根据本公开的实施例的第二方面,提供一种响度增益数据库生成方法,包括:According to a second aspect of the embodiments of the present disclosure, a method for generating a loudness gain database is provided, including:
获取参考音频文件以及参考音频文件的音频类型,音频类型至少包括参考音频文件的内容类型以及参考音频文件的提供方类型中至少一项;Obtain the reference audio file and the audio type of the reference audio file, where the audio type at least includes at least one of the content type of the reference audio file and the provider type of the reference audio file;
获取参考音量值以与音频类型以及参考音量值对应的参考响度值;Obtain the reference volume value to correspond to the audio type and the reference loudness value corresponding to the reference volume value;
根据参考音量值以及实际响度增益值播放参考音频文件以获取实际响度值;Play the reference audio file according to the reference volume value and the actual loudness gain value to obtain the actual loudness value;
当实际响度值与参考响度值一致时,生成至少用于指示参考音量值以及音频类型与实际响度增益值的对应关系的响度增益数据库。When the actual loudness value is consistent with the reference loudness value, a loudness gain database for indicating at least the reference volume value and the corresponding relationship between the audio type and the actual loudness gain value is generated.
根据本公开的实施例的第三方面,提供一种响度控制装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a loudness control device, comprising:
音频文件获取模块,用于获取音频文件以及用于播放音频文件的音量值;The audio file acquisition module is used to acquire the audio file and the volume value used to play the audio file;
音频类型确定模块,用于确定音频文件的音频类型,音频类型至少包括音频文件的内容类型以及音频文件的提供方类型中至少一项;an audio type determination module, configured to determine the audio type of the audio file, the audio type at least includes at least one of the content type of the audio file and the provider type of the audio file;
响度增益值获取模块,用于获取与音量值以及音频类型对应的目标响度增益值;The loudness gain value acquisition module is used to acquire the target loudness gain value corresponding to the volume value and the audio type;
响度增益调整模块,用于根据目标响度增益值对音频文件进行响度增益调整。The loudness gain adjustment module is used to adjust the loudness gain of the audio file according to the target loudness gain value.
在一个实施例中,装置还包括:In one embodiment, the apparatus further includes:
音频标识获取模块,用于获取音频文件的音频标识,音频标识用于指示音频文件的音频类型;an audio identification acquisition module, used to obtain the audio identification of the audio file, and the audio identification is used to indicate the audio type of the audio file;
音频类型确定模块,包括:Audio type determination module, including:
音频类型确定子模块,用于根据音频文件的音频标识确定音频文件的音频类型。The audio type determination submodule is used to determine the audio type of the audio file according to the audio identifier of the audio file.
在一个实施例中,响度增益值获取模块,包括:In one embodiment, the loudness gain value acquisition module includes:
响度增益值获取子模块,用于根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值,响度增益数据库用于指示至少一组音量值以及音频类型与响度增益值的对应关系。The loudness gain value acquisition sub-module is used to query the loudness gain database according to the volume value and the audio type to obtain the target loudness gain value, and the loudness gain database is used to indicate at least one set of volume values and the corresponding relationship between the audio type and the loudness gain value .
根据本公开的实施例的第四方面,提供一种响度增益数据库生成装置,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for generating a loudness gain database, comprising:
音频文件获取模块,用于获取参考音频文件以及参考音频文件的音频类型,音频类型至少包括参考音频文件的内容类型以及参考音频文件的提供方类型中至少一项;an audio file acquisition module, configured to acquire a reference audio file and an audio type of the reference audio file, where the audio type at least includes at least one of the content type of the reference audio file and the provider type of the reference audio file;
参考响度值获取模块,用于获取参考音量值以与音频类型以及参考音量值对应的参考响度值;a reference loudness value acquisition module, used for acquiring a reference volume value to a reference loudness value corresponding to the audio type and the reference volume value;
实际响度值获取模块,用于根据参考音量值以及实际响度增益值播放参考音频文件以获取实际响度值;The actual loudness value acquisition module is used to play the reference audio file according to the reference volume value and the actual loudness gain value to obtain the actual loudness value;
数据库生成模块,用于当实际响度值与参考响度值一致时,生成至少用于指示参考音量值以及音频类型与实际响度增益值的对应关系的响度增益数据库。The database generation module is configured to generate a loudness gain database for at least indicating the corresponding relationship between the reference volume value and the audio type and the actual loudness gain value when the actual loudness value is consistent with the reference loudness value.
根据本公开的实施例的第五方面,提供一种响度控制装置,包括:According to a fifth aspect of the embodiments of the present disclosure, there is provided a loudness control device, comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,处理器被配置为:where the processor is configured as:
获取音频文件以及用于播放音频文件的音量值;Get the audio file and the volume value used to play the audio file;
确定音频文件的音频类型,音频类型至少包括音频文件的内容类型以及音频文件的提供方类型中至少一项;Determine the audio type of the audio file, the audio type includes at least one of the content type of the audio file and the provider type of the audio file;
获取与音量值以及音频类型对应的目标响度增益值;Get the target loudness gain value corresponding to the volume value and audio type;
根据目标响度增益值对音频文件进行响度增益调整。Makes a loudness gain adjustment to the audio file based on the target loudness gain value.
根据本公开的实施例的第六方面,提供一种计算机可读存储介质,其上存储有计算机指令,其特征在于,该指令被处理器执行时实现本公开的实施例的第一方面所提供的任一项方法的步骤。According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which computer instructions are stored, wherein the instructions are executed by a processor to implement the first aspect of the embodiments of the present disclosure. steps of any of the methods.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that 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 disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的响度控制方法的流程示意图;1 is a schematic flowchart of a loudness control method according to an exemplary embodiment;
图2是根据一示例性实施例示出的响度控制方法的流程示意图;2 is a schematic flowchart of a loudness control method according to an exemplary embodiment;
图3是根据一示例性实施例示出的响度增益数据库生成的流程示意图;3 is a schematic flowchart of generating a loudness gain database according to an exemplary embodiment;
图4a是根据一示例性实施例示出的响度控制装置的结构示意图1;FIG. 4a is a schematic structural diagram 1 of a loudness control apparatus according to an exemplary embodiment;
图4b是根据一示例性实施例示出的响度控制装置的结构示意图2;FIG. 4b is a schematic structural diagram 2 of a loudness control apparatus according to an exemplary embodiment;
图4c是根据一示例性实施例示出的响度控制装置的结构示意图3;FIG. 4c is a schematic structural diagram 3 of a loudness control apparatus according to an exemplary embodiment;
图5是根据一示例性实施例示出的响度增益数据库生成装置的结构示意图;5 is a schematic structural diagram of an apparatus for generating a loudness gain database according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种装置的框图;6 is a block diagram of an apparatus according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种装置的框图。Fig. 7 is a block diagram of an apparatus according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
随着科学技术的高速发展和人们生活水平的不断提高,近年来,音频播放设备例如随身音乐播放器、智能手机、智能音箱等逐渐在人们的生活中普及。随着网络技术的发展,音频播放器例如智能音箱或智能手机可以接入网络,并通过网络获取海量的可用于播放的音频文件。其中,音频播放器所获取的音频文件可能是由多家提供方所提供的,同时音频播放器所获取的音频文件还可能包括多种内容类型。例如,音频播放器所获取的音频文件可能是某网页播放器里“我喜欢的音乐”歌单中内容为古典音乐音乐会现场录音的音频文件,也可能是音频播放器上储存的内容为相声的音频文件,甚至可能是音频播放器的提示语音或提示音等。响度是电信号转换为声波振动时度量声音能量的一个指标,是人耳听觉对声音强弱的主观感受,当用户为音频播放设备设定的音量一定时,可能使音频播放设备播放一个提供方所提供的内容类型为相声的音频文件时输出的响度刚好适合用户听取,而该音频播放设备播放另一个提供方所提供的内容类型为古典音乐的音频文件时输出的响度较大或较小不适合用户听取,因此在音频播放设备播放音频文件时,需要用户针对不同类型的音频文件调整响度增益值或音量值,使音频播放器输出的响度适合自身听取,从而损害了用户体验。With the rapid development of science and technology and the continuous improvement of people's living standards, in recent years, audio playback devices such as portable music players, smart phones, and smart speakers have gradually become popular in people's lives. With the development of network technology, audio players such as smart speakers or smart phones can access the network and obtain a large number of audio files available for playback through the network. The audio files acquired by the audio player may be provided by multiple providers, and the audio files acquired by the audio player may also include multiple content types. For example, the audio file obtained by the audio player may be the audio file of the live recording of a classical music concert in the "My Favorite Music" playlist in a web player, or the content stored on the audio player may be cross talk audio files, and may even be the prompt voice or prompt tone of the audio player. Loudness is an indicator that measures the energy of sound when an electrical signal is converted into sound wave vibration. It is the subjective perception of human hearing on the strength of sound. When the volume set by the user for the audio playback device is constant, it may cause the audio playback device to play a provider. When the provided audio file whose content type is crosstalk, the output loudness is just suitable for the user to listen to, but when the audio playback device plays the audio file whose content type is classical music provided by another provider, the output loudness is larger or smaller. It is suitable for users to listen to. Therefore, when an audio playback device plays an audio file, the user needs to adjust the loudness gain value or volume value for different types of audio files, so that the loudness output by the audio player is suitable for their own listening, which damages the user experience.
为了解决上述问题,本公开的实施例提供的技术方案中,通过获取音频文件以及用于播放音频文件的音量值,其中音量值能够反映用户希望音频播放设备输出响度的大小,通过确定音频文件的音频类型,获取与音量值以及音频类型对应的目标响度增益值,并根据目标响度增益值对音频文件进行响度增益调整,其中目标响度增益值为适合在该音量值下播放该音频类型的音频文件时对音频文件进行响度增益调整所使用的增益值。因此当音频播放设备播放经过上述响度增益调整后的音频文件时,在无需用户整响度增益值或音量值的前提下,使音频播放设备所输出的响度为适于用户听取该音频类型的音频文件的响度,从而改善了用户体验。In order to solve the above problem, in the technical solution provided by the embodiments of the present disclosure, by acquiring the audio file and the volume value used for playing the audio file, the volume value can reflect the output loudness of the audio playback device desired by the user, and by determining the volume of the audio file Audio type, obtain the target loudness gain value corresponding to the volume value and audio type, and adjust the audio file according to the target loudness gain value, where the target loudness gain value is suitable for playing the audio file of this audio type at this volume value The gain value used to make loudness gain adjustments to the audio file. Therefore, when the audio playback device plays the audio file after the above-mentioned loudness gain adjustment, without the need for the user to adjust the loudness gain value or the volume value, the loudness output by the audio playback device is suitable for the user to listen to the audio file of the audio type. loudness, thereby improving the user experience.
本公开的实施例提供了一种响度控制方法,该方法应用于音频播放设备,音频播放设备可以为智能手机、平板电脑、随身听、智能可穿戴装置以及智能音箱等,如图1所示,包括如下步骤101至步骤104:Embodiments of the present disclosure provide a loudness control method, which is applied to an audio playback device, and the audio playback device may be a smart phone, a tablet computer, a Walkman, a smart wearable device, a smart speaker, etc. As shown in FIG. 1 , It includes the following
在步骤101中,获取音频文件以及用于播放音频文件的音量值。In
示例的,获取音频文件可以为当音频播放设备接入网络时通过网络下载音频文件,也可以为读取事先储存在音频播放设备中的音频文件。例如,当音频播放设备接入网络时,音频播放设备可以通过访问网络音乐播放程序的音频文件分享接口获取网络音乐播放程序提供的音频文件。用于播放音频文件的音量值为用户针对该音频文件在音频播放设备上设定的音量值。获取用于播放音频文件的音量值可以为读取储存在音频播放设备中的针对该音频文件的播放设置文件以获取音量值,也可以为通过音频播放设备上的人机交互装置例如触摸屏或与音频播放设备连接的其他设备例如智能手机接收用户输入的音量值。For example, acquiring the audio file may be downloading the audio file through the network when the audio playback device is connected to the network, or may be reading the audio file stored in the audio playback device in advance. For example, when the audio playing device is connected to the network, the audio playing device can obtain the audio file provided by the network music playing program by accessing the audio file sharing interface of the network music playing program. The volume value used for playing the audio file is the volume value set by the user on the audio playing device for the audio file. Obtaining the volume value for playing the audio file can be to read the playback setting file for the audio file stored in the audio playback device to obtain the volume value, or to obtain the volume value by means of a human-computer interaction device such as a touch screen or an interface with the audio playback device. Other devices connected to the audio playback device, such as a smartphone, receive the volume value input by the user.
在步骤102中,确定音频文件的音频类型。In
其中,音频类型至少包括音频文件的内容类型以及音频文件的提供方类型中至少一项。The audio type includes at least one of the content type of the audio file and the provider type of the audio file.
示例性的,可以在确定音频文件的音频类型前获取音频文件的音频标识,根据音频文件的音频标识确定音频文件的音频类型,其中音频标识用于指示音频文件的音频类型,音频标识可以为由音频文件的提供方提供,也可以为由用户针对音频文件指定。也可以为音频播放器对音频文件进行检测并根据检测结果确定音频文件的音频类型。其中,音频文件的内容类型可以用于为音乐、相声、铃声、提示语音等,其中音乐类型还可以进一步用于指示音频文件的语种、风格、场景、情感以及主题等,例如,语种可以为华语、欧美、日语、汉语、粤语、小语种等,风格可以为流行、摇滚、民谣、电子、舞曲、说唱、轻、爵士、乡村、古典、民族、金属、朋克、蓝调、拉丁等,场景可以为清晨、夜晚、学习、工作、午休、驾车、运动、旅行、散步、酒吧等,情感可以为怀旧、清新、浪漫、性感、伤感、治愈、放松、孤独、感动、兴奋、快乐等,主题可以为影视原声、动漫原声、校园、游戏、网络歌曲等;提供方类型可以为终端、网络音乐播放程序等,其中终端可以通过无线或有线方式与音频播放器连接,其中,有线方式可以包括音频电信号缆、音频光信号缆等,无线方式可以为蓝牙、WIFI、红外信号等,终端可以包括智能手机、平板电脑、随身音乐播放器、激光唱片(Compact Disc,CD)播放器、迷你磁光盘播放器(Mini Disc,MD)、黑胶唱片播放器等,网络音乐播放程序可以包括小米音乐、QQ音乐、虾米音乐、网易云音乐、喜马拉雅、蜻蜓FM等。例如,音频播放器可以将音频文件的名称与关键字进行匹配,当音频文件的名称包括关键字“相声”时,确定该音频文件的内容类型为相声,当音频文件的名称包括关键字“小米音乐”时,确定该音频文件的提供方类型为小米音乐。Exemplarily, the audio identification of the audio file can be obtained before the audio type of the audio file is determined, and the audio identification of the audio file is determined according to the audio identification of the audio file, wherein the audio identification is used to indicate the audio type of the audio file, and the audio identification can be by Provided by the provider of the audio file, or specified by the user for the audio file. The audio file can also be detected for the audio player and the audio type of the audio file can be determined according to the detection result. Among them, the content type of the audio file can be used for music, cross talk, ringtone, prompt voice, etc., wherein the music type can be further used to indicate the language, style, scene, emotion and theme of the audio file, etc. For example, the language can be Chinese , European and American, Japanese, Chinese, Cantonese, minor languages, etc. The style can be pop, rock, folk, electronic, dance, rap, light, jazz, country, classical, ethnic, metal, punk, blues, Latin, etc. The scene can be Early morning, night, study, work, lunch break, driving, sports, travel, walking, bar, etc. Emotions can be nostalgic, fresh, romantic, sexy, sad, healing, relaxing, lonely, moving, excited, happy, etc. The theme can be Film and television original sound, animation original sound, campus, games, network songs, etc.; the type of provider can be terminal, network music player, etc., where the terminal can be connected to the audio player wirelessly or wiredly, wherein the wired method can include audio electrical signals cable, audio optical signal cable, etc., the wireless method can be Bluetooth, WIFI, infrared signal, etc., and the terminal can include smart phone, tablet computer, portable music player, compact disc (CD) player, mini magneto-optical disc player (Mini Disc, MD), vinyl record players, etc. The online music playback programs can include Xiaomi Music, QQ Music, Xiami Music, NetEase Cloud Music, Himalaya, Dragonfly FM, etc. For example, the audio player can match the name of the audio file with the keyword, when the name of the audio file includes the keyword "Xiaosheng", the content type of the audio file is determined to be Xiansheng, and when the name of the audio file includes the keyword "Xiaomi" Music", make sure that the provider type of the audio file is Xiaomi Music.
需要说明的是,通过在确定音频文件的音频类型前获取音频文件的音频标识,并根据音频文件的音频标识确定音频文件的音频类型,可以加快确定音频文件的音频类型的速度,从而改善了用户体验。It should be noted that, by obtaining the audio identifier of the audio file before determining the audio type of the audio file, and determining the audio type of the audio file according to the audio identifier of the audio file, the speed of determining the audio type of the audio file can be accelerated, thereby improving the user experience. experience.
在步骤103中,获取与音量值以及音频类型对应的目标响度增益值。In
示例性的,获取与音量值以及音频类型对应的目标响度增益值,可以为根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值,其中响度增益数据库用于指示至少一组音量值以及音频类型与响度增益值的对应关系,也可以为获取与音频类型对应的音频类型值,并音量值以及音频类型值代入预设算法进行计算以获取目标响度增益值。需要说明的是,响度增益数据库可以为事先储存在音频播放器中,也可以为音频播放器从其他装置或系统处获取。Exemplarily, to obtain the target loudness gain value corresponding to the volume value and the audio type, a query can be performed in the loudness gain database to obtain the target loudness gain value according to the volume value and the audio type, wherein the loudness gain database is used to indicate at least one group. The correspondence between the volume value and the audio type and the loudness gain value can also be obtained by obtaining the audio type value corresponding to the audio type, and substituting the volume value and the audio type value into a preset algorithm for calculation to obtain the target loudness gain value. It should be noted that the loudness gain database may be stored in the audio player in advance, or may be obtained from other devices or systems for the audio player.
需要说明的是,通过根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值,可以提高确定与音量值以及音频类型对应的目标响度增益值的准确性,从而改善了用户体验。It should be noted that by querying the loudness gain database according to the volume value and the audio type to obtain the target loudness gain value, the accuracy of determining the target loudness gain value corresponding to the volume value and the audio type can be improved, thereby improving user experience. .
在步骤104中,根据目标响度增益值对音频文件进行响度增益调整。In
本公开的实施例提供的技术方案中,通过获取音频文件以及用于播放音频文件的音量值,其中音量值能够反映用户希望音频播放设备输出响度的大小,通过确定音频文件的音频类型,获取与音量值以及音频类型对应的目标响度增益值,并根据目标响度增益值对音频文件进行响度增益调整,其中目标响度增益值为适合在该音量值下播放该音频类型的音频文件时对音频文件进行响度增益调整所使用的增益值。因此当音频播放设备播放经过上述响度增益调整后的音频文件时,在无需用户整响度增益值或音量值的前提下,使音频播放设备所输出的响度为适于用户听取该音频类型的音频文件的响度,从而改善了用户体验。In the technical solution provided by the embodiments of the present disclosure, by acquiring an audio file and a volume value for playing the audio file, where the volume value can reflect the loudness output of the audio playback device desired by the user, and by determining the audio type of the audio file, the corresponding The volume value and the target loudness gain value corresponding to the audio type, and the loudness gain adjustment is performed on the audio file according to the target loudness gain value, where the target loudness gain value is suitable for playing the audio file of the audio type at the volume value. The gain value used for the Loudness Gain adjustment. Therefore, when the audio playback device plays the audio file after the above-mentioned loudness gain adjustment, without the need for the user to adjust the loudness gain value or the volume value, the loudness output by the audio playback device is suitable for the user to listen to the audio file of the audio type. loudness, thereby improving the user experience.
图2是根据一示例性实施例示出的一种响度控制方法的示意性流程图进行说明。如图2所示,包括以下步骤:Fig. 2 is a schematic flow chart of a method for controlling loudness according to an exemplary embodiment for illustration. As shown in Figure 2, it includes the following steps:
在步骤201中,获取音频文件以及用于播放音频文件的音量值。In
在步骤202中,获取音频文件的音频标识。In
其中音频标识用于指示音频文件的音频类型。The audio identifier is used to indicate the audio type of the audio file.
在步骤203中,根据音频文件的音频标识确定音频文件的音频类型。In
在步骤204中,根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值。In
其中响度增益数据库用于指示至少一组音量值以及音频类型与响度增益值的对应关系。The loudness gain database is used to indicate at least one set of volume values and the corresponding relationship between audio types and loudness gain values.
在步骤205中,根据目标响度增益值对音频文件进行响度增益调整。In
本公开的实施例提供的技术方案中,通过获取音频文件以及用于播放音频文件的音量值,其中音量值能够反映用户希望音频播放设备输出响度的大小,通过确定音频文件的音频类型,获取与音量值以及音频类型对应的目标响度增益值,并根据目标响度增益值对音频文件进行响度增益调整,其中目标响度增益值为适合在该音量值下播放该音频类型的音频文件时对音频文件进行响度增益调整所使用的增益值。因此当音频播放设备播放经过上述响度增益调整后的音频文件时,在无需用户整响度增益值或音量值的前提下,使音频播放设备所输出的响度为适于用户听取该音频类型的音频文件的响度,从而改善了用户体验。In the technical solution provided by the embodiments of the present disclosure, by acquiring an audio file and a volume value for playing the audio file, where the volume value can reflect the loudness output of the audio playback device desired by the user, and by determining the audio type of the audio file, the corresponding The volume value and the target loudness gain value corresponding to the audio type, and the loudness gain adjustment is performed on the audio file according to the target loudness gain value, where the target loudness gain value is suitable for playing the audio file of the audio type at the volume value. The gain value used for the Loudness Gain adjustment. Therefore, when the audio playback device plays the audio file after the above-mentioned loudness gain adjustment, without the need for the user to adjust the loudness gain value or the volume value, the loudness output by the audio playback device is suitable for the user to listen to the audio file of the audio type. loudness, thereby improving the user experience.
本公开的实施例提供了一种响度增益数据库生成方法,该方法可以应用于终端或服务器,其中终端可以为智能手机、平板电脑、随身听、智能可穿戴装置以及智能音箱等,服务器可以为可以为由响度增益数据库生成服务运营商提供并使用的提供计算服务的设备,也可以为由网络运营商提供由响度增益数据库生成服务运营商使用的提供计算服务的设备。如图3所示,该方法包括如下步骤301至步骤304:Embodiments of the present disclosure provide a method for generating a loudness gain database, which can be applied to a terminal or a server, where the terminal can be a smart phone, a tablet computer, a Walkman, a smart wearable device, a smart speaker, etc., and the server can be a A device providing computing services provided and used by a loudness gain database generation service operator may also be provided by a network operator for a device providing computing services used by a loudness gain database generation service operator. As shown in Figure 3, the method includes the following
在步骤301中,获取参考音频文件以及参考音频文件的音频类型。In
其中,音频类型至少包括参考音频文件的内容类型以及参考音频文件的提供方类型中至少一项。The audio type includes at least one of the content type of the reference audio file and the provider type of the reference audio file.
在步骤302中,获取参考音量值。In
示例性的,参考音量值可以为由用户设定的音量值,可以为事先生成的音量值,也可以为随机生成的音量值。Exemplarily, the reference volume value may be a volume value set by a user, a volume value generated in advance, or a volume value generated randomly.
在步骤303中,获取与音频类型以及参考音量值对应的参考响度值。In
与音频类型以及参考音量值对应的参考响度值为在以参考音量值播放音频类型的音频文件时能够使用户感到舒适的响度的大小,获取参考响度值,可以为在根据参考音量值向用户播放参考音频文件时,不断调整播放该音频文件所使用的响度增益值,当所输出的响度大小使用户感到舒适时,确定此时的响度为参考响度值。The reference loudness value corresponding to the audio type and the reference volume value is the loudness that can make the user feel comfortable when the audio file of the audio type is played at the reference volume value. When referring to an audio file, the loudness gain value used for playing the audio file is continuously adjusted, and when the output loudness makes the user feel comfortable, the loudness at this time is determined as the reference loudness value.
在步骤304中,根据参考音量值以及实际响度增益值播放参考音频文件以获取实际响度值。In
示例性的,实际响度增益值可以为由用户设定的响度增益值,可以为事先生成的响度增益值,也可以为随机生成的响度增益值。Exemplarily, the actual loudness gain value may be a loudness gain value set by a user, may be a pre-generated loudness gain value, or may be a randomly generated loudness gain value.
在步骤305中,当实际响度值与参考响度值一致时,生成至少用于指示参考音量值以及音频类型与实际响度增益值的对应关系的响度增益数据库。In
示例性的,为了使实际响度值与参考响度值一致,可以逐步增大或缩小实际响度增益值,当增大或缩小后的实际响度增益值一致时,确定此时的实际响度增益值与参考音量值以及音频类型对应,生成用于指示上述对应关系的响度增益数据库。Exemplarily, in order to make the actual loudness value consistent with the reference loudness value, the actual loudness gain value may be gradually increased or decreased. The volume value corresponds to the audio type, and a loudness gain database indicating the above-mentioned correspondence is generated.
本公开的实施例提供的技术方案中,通过获取参考音频文件以及参考音频文件的音频类型,获取参考音量值,获取与音频类型以及参考音量值对应的参考响度值以确定在以参考音量值播放该音频类型的音频文件时能够让用户感到舒适的响度,根据参考音量值以及实际响度增益值播放参考音频文件以获取实际响度值,并当实际响度值与参考响度值一致时,确定根据参考音量值以及实际响度增益值播放该音频类型的参考音频文件时输出的响度能够让用户感到舒适,通过生成至少用于指示参考音量值以及音频类型与实际响度增益值的对应关系的响度增益数据库,使响度增益数据库能够指示在音量值与音频文件的音频类型已经确定的前提下,使用多大的响度增益值播放音频文件能够使用户感到舒适,改善了用户体验。In the technical solution provided by the embodiments of the present disclosure, by acquiring the reference audio file and the audio type of the reference audio file, the reference volume value is acquired, and the reference loudness value corresponding to the audio type and the reference volume value is acquired to determine when playing at the reference volume value. The audio file of this audio type can make the user feel comfortable loudness, play the reference audio file according to the reference volume value and the actual loudness gain value to obtain the actual loudness value, and when the actual loudness value is consistent with the reference loudness value, determine the reference volume The loudness output when playing a reference audio file of this audio type can make the user feel comfortable. By generating a loudness gain database at least used to indicate the corresponding relationship between the reference volume value and the audio type and the actual loudness gain value, so as to make the user feel comfortable. The loudness gain database can indicate, on the premise that the volume value and the audio type of the audio file are determined, how much loudness gain value is used to play the audio file, which can make the user feel comfortable and improve the user experience.
下述为本公开装置实施例,可以用于执行本公开方法实施例。The following are the apparatus embodiments of the present disclosure, which can be used to execute the method embodiments of the present disclosure.
图4a是根据一个示例性实施例示出的一种响度控制装置40的结构示意图,响度控制装置40可以为终端也可以为终端的一部分,响度控制装置40可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图4a所示,该响度控制装置40包括:FIG. 4a is a schematic structural diagram of a loudness control apparatus 40 according to an exemplary embodiment. The loudness control apparatus 40 may be a terminal or a part of a terminal, and the loudness control apparatus 40 may be implemented by software, hardware or a combination of the two. be part or all of an electronic device. As shown in Figure 4a, the loudness control device 40 includes:
音频文件获取模块401,用于获取音频文件以及用于播放音频文件的音量值。The audio file acquiring module 401 is used for acquiring the audio file and the volume value for playing the audio file.
音频类型确定模块402,用于确定音频文件的音频类型,音频类型至少包括音频文件的内容类型以及音频文件的提供方类型中至少一项。The audio type determination module 402 is configured to determine the audio type of the audio file, where the audio type at least includes at least one of the content type of the audio file and the provider type of the audio file.
响度增益值获取模块403,用于获取与音量值以及音频类型对应的目标响度增益值。The loudness gain
响度增益调整模块404,用于根据目标响度增益值对音频文件进行响度增益调整。The loudness gain adjustment module 404 is used for adjusting the loudness gain of the audio file according to the target loudness gain value.
在一个实施例中,如图4b所示,响度控制装置40还包括In one embodiment, as shown in FIG. 4b, the loudness control device 40 further includes
音频标识获取模块405,用于获取音频文件的音频标识,音频标识用于指示音频文件的音频类型。The audio identification acquiring module 405 is configured to acquire the audio identification of the audio file, where the audio identification is used to indicate the audio type of the audio file.
音频类型确定模块402,包括:The audio type determination module 402 includes:
音频类型确定子模块4021,用于根据音频文件的音频标识确定音频文件的音频类型。The audio type determination sub-module 4021 is configured to determine the audio type of the audio file according to the audio identifier of the audio file.
在一个实施例中,如图4c所示,响度增益值获取模块403,包括In one embodiment, as shown in Figure 4c, the loudness gain
响度增益值获取子模块4031,用于根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值,响度增益数据库用于指示至少一组音量值以及音频类型与响度增益值的对应关系。The loudness gain value acquisition sub-module 4031 is used to query the loudness gain database according to the volume value and the audio type to obtain the target loudness gain value, and the loudness gain database is used to indicate at least one set of volume values and the correspondence between the audio type and the loudness gain value relation.
本公开的实施例提供一种响度控制装置,该响度控制装置可以通过获取音频文件以及用于播放音频文件的音量值,其中音量值能够反映用户希望音频播放设备输出响度的大小,通过确定音频文件的音频类型,获取与音量值以及音频类型对应的目标响度增益值,并根据目标响度增益值对音频文件进行响度增益调整,其中目标响度增益值为适合在该音量值下播放该音频类型的音频文件时对音频文件进行响度增益调整所使用的增益值。因此当音频播放设备播放经过上述响度增益调整后的音频文件时,在无需用户整响度增益值或音量值的前提下,使音频播放设备所输出的响度为适于用户听取该音频类型的音频文件的响度,从而改善了用户体验。Embodiments of the present disclosure provide a loudness control device, which can obtain an audio file and a volume value used for playing the audio file, wherein the volume value can reflect the loudness output of an audio playback device that a user wants, and determine the audio file by determining the volume value of the audio file. obtains the target loudness gain value corresponding to the volume value and the audio type, and adjusts the audio file according to the target loudness gain value, where the target loudness gain value is suitable for playing the audio of this audio type at this volume value The gain value used to make loudness gain adjustments to the audio file when the file is used. Therefore, when the audio playback device plays the audio file after the above-mentioned loudness gain adjustment, without the need for the user to adjust the loudness gain value or the volume value, the loudness output by the audio playback device is suitable for the user to listen to the audio file of the audio type. loudness, thereby improving the user experience.
图5是根据一个示例性实施例示出的一种响度增益数据库生成装置50的结构示意图,响度增益数据库生成装置50可以为终端或终端的一部分,也可以为服务器或服务器的一部分,响度增益数据库生成装置50可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图5所示,该响度增益数据库生成装置50包括:FIG. 5 is a schematic structural diagram of a loudness gain database generating apparatus 50 according to an exemplary embodiment. The loudness gain database generating apparatus 50 may be a terminal or a part of a terminal, or a server or a part of a server. The loudness gain database generates The apparatus 50 may be implemented by software, hardware or a combination of the two to become part or all of the electronic device. As shown in Figure 5, the loudness gain database generating device 50 includes:
音频文件获取模块501,用于获取参考音频文件以及参考音频文件的音频类型,音频类型至少包括参考音频文件的内容类型以及参考音频文件的提供方类型中至少一项。The audio file acquisition module 501 is configured to acquire a reference audio file and an audio type of the reference audio file, where the audio type at least includes at least one of a content type of the reference audio file and a provider type of the reference audio file.
参考响度值获取模块502,用于获取参考音量值以与音频类型以及参考音量值对应的参考响度值。The reference loudness value obtaining module 502 is configured to obtain a reference volume value as a reference loudness value corresponding to the audio type and the reference volume value.
实际响度值获取模块503,用于根据参考音量值以及实际响度增益值播放参考音频文件以获取实际响度值。The actual loudness
数据库生成模块504,用于当实际响度值与参考响度值一致时,生成至少用于指示参考音量值以及音频类型与实际响度增益值的对应关系的响度增益数据库。The database generation module 504 is configured to generate a loudness gain database at least for indicating the corresponding relationship between the reference volume value and the audio type and the actual loudness gain value when the actual loudness value is consistent with the reference loudness value.
本公开的实施例提供一种响度增益数据库生成装置,该响度增益数据库生成装置可以通过获取参考音频文件以及参考音频文件的音频类型,获取参考音量值,获取与音频类型以及参考音量值对应的参考响度值以确定在以参考音量值播放该音频类型的音频文件时能够让用户感到舒适的响度,根据参考音量值以及实际响度增益值播放参考音频文件以获取实际响度值,并当实际响度值与参考响度值一致时,确定根据参考音量值以及实际响度增益值播放该音频类型的参考音频文件时输出的响度能够让用户感到舒适,通过生成至少用于指示参考音量值以及音频类型与实际响度增益值的对应关系的响度增益数据库,使响度增益数据库能够指示在音量值与音频文件的音频类型已经确定的前提下,使用多大的响度增益值播放音频文件能够使用户感到舒适,改善了用户体验。An embodiment of the present disclosure provides a loudness gain database generating apparatus, which can obtain a reference volume value by obtaining a reference audio file and an audio type of the reference audio file, and obtain a reference corresponding to the audio type and the reference volume value. The loudness value determines the loudness that can make the user feel comfortable when playing the audio file of this audio type at the reference volume value, and plays the reference audio file according to the reference volume value and the actual loudness gain value to obtain the actual loudness value, and when the actual loudness value is the same as the actual loudness value. When the reference loudness value is the same, it is determined that the output loudness when the reference audio file of the audio type is played according to the reference volume value and the actual loudness gain value can make the user feel comfortable. The loudness gain database of the corresponding relationship of the values enables the loudness gain database to indicate, on the premise that the volume value and the audio type of the audio file have been determined, how much loudness gain value is used to play the audio file to make the user feel comfortable and improve the user experience.
图6是根据一示例性实施例示出的一种响度控制装置60的框图,该响度控制装置60可以为终端或终端的一部分,也可以为服务器或服务器的一部分,响度控制装置60包括:FIG. 6 is a block diagram of a loudness control apparatus 60 according to an exemplary embodiment. The loudness control apparatus 60 may be a terminal or a part of a terminal, or a server or a part of the server. The loudness control apparatus 60 includes:
处理器601;
用于存储处理器601可执行指令的存储器602;
其中,处理器601被配置为:Wherein, the
获取音频文件以及用于播放音频文件的音量值;Get the audio file and the volume value used to play the audio file;
确定音频文件的音频类型,音频类型至少包括音频文件的内容类型以及音频文件的提供方类型中至少一项;Determine the audio type of the audio file, the audio type includes at least one of the content type of the audio file and the provider type of the audio file;
获取与音量值以及音频类型对应的目标响度增益值;Get the target loudness gain value corresponding to the volume value and audio type;
根据目标响度增益值对音频文件进行响度增益调整。Makes a loudness gain adjustment to the audio file based on the target loudness gain value.
在一个实施例中,上述处理器601还可以被配置为:In one embodiment, the above-mentioned
获取音频文件的音频标识,音频标识用于指示音频文件的音频类型;Obtain the audio identifier of the audio file, and the audio identifier is used to indicate the audio type of the audio file;
确定音频文件的音频类型,包括:Determine the audio type of an audio file, including:
根据音频文件的音频标识确定音频文件的音频类型。The audio type of the audio file is determined according to the audio identification of the audio file.
在一个实施例中,上述处理器601还可以被配置为:In one embodiment, the above-mentioned
根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值,响度增益数据库用于指示至少一组音量值以及音频类型与响度增益值的对应关系。The loudness gain database is queried according to the volume value and the audio type to obtain the target loudness gain value, and the loudness gain database is used to indicate at least one set of the corresponding relationship between the volume value and the audio type and the loudness gain value.
本公开的实施例提供一种响度控制装置,该响度控制装置可以通过获取音频文件以及用于播放音频文件的音量值,其中音量值能够反映用户希望音频播放设备输出响度的大小,通过确定音频文件的音频类型,获取与音量值以及音频类型对应的目标响度增益值,并根据目标响度增益值对音频文件进行响度增益调整,其中目标响度增益值为适合在该音量值下播放该音频类型的音频文件时对音频文件进行响度增益调整所使用的增益值。因此当音频播放设备播放经过上述响度增益调整后的音频文件时,在无需用户整响度增益值或音量值的前提下,使音频播放设备所输出的响度为适于用户听取该音频类型的音频文件的响度,从而改善了用户体验。Embodiments of the present disclosure provide a loudness control device, which can obtain an audio file and a volume value used for playing the audio file, wherein the volume value can reflect the loudness output of an audio playback device that a user wants, and determine the audio file by determining the volume value of the audio file. obtains the target loudness gain value corresponding to the volume value and the audio type, and adjusts the audio file according to the target loudness gain value, where the target loudness gain value is suitable for playing the audio of this audio type at this volume value The gain value used to make loudness gain adjustments to the audio file when the file is used. Therefore, when the audio playback device plays the audio file after the above-mentioned loudness gain adjustment, without the need for the user to adjust the loudness gain value or the volume value, the loudness output by the audio playback device is suitable for the user to listen to the audio file of the audio type. loudness, thereby improving the user experience.
图7是根据一示例性实施例示出的一种用于控制响度的装置700的框图,该装置700适用于终端。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 7 is a block diagram of an
装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。
处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The
存储器704被配置未存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件706为装置700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。
多媒体组件708包括在装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置700的处理器执行时,使得装置700能够执行上述响度控制方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the
获取音频文件以及用于播放音频文件的音量值;Get the audio file and the volume value used to play the audio file;
确定音频文件的音频类型,音频类型至少包括音频文件的内容类型以及音频文件的提供方类型中至少一项;Determine the audio type of the audio file, the audio type includes at least one of the content type of the audio file and the provider type of the audio file;
获取与音量值以及音频类型对应的目标响度增益值;Get the target loudness gain value corresponding to the volume value and audio type;
根据目标响度增益值对音频文件进行响度增益调整。Makes a loudness gain adjustment to the audio file based on the target loudness gain value.
在一个实施例中,所述方法还包括:In one embodiment, the method further includes:
获取音频文件的音频标识,音频标识用于指示音频文件的音频类型;Obtain the audio identifier of the audio file, and the audio identifier is used to indicate the audio type of the audio file;
确定音频文件的音频类型,包括:Determine the audio type of an audio file, including:
根据音频文件的音频标识确定音频文件的音频类型。The audio type of the audio file is determined according to the audio identification of the audio file.
在一个实施例中,获取与音量值以及音频类型对应的目标响度增益值,包括:In one embodiment, obtaining the target loudness gain value corresponding to the volume value and the audio type includes:
根据音量值以及音频类型在响度增益数据库中进行查询以获取目标响度增益值,响度增益数据库用于指示至少一组音量值以及音频类型与响度增益值的对应关系。The loudness gain database is queried according to the volume value and the audio type to obtain the target loudness gain value, and the loudness gain database is used to indicate at least one set of the corresponding relationship between the volume value and the audio type and the loudness gain value.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711261088.2ACN107994879B (en) | 2017-12-04 | 2017-12-04 | Loudness control method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711261088.2ACN107994879B (en) | 2017-12-04 | 2017-12-04 | Loudness control method and device |
| Publication Number | Publication Date |
|---|---|
| CN107994879A CN107994879A (en) | 2018-05-04 |
| CN107994879Btrue CN107994879B (en) | 2022-07-08 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711261088.2AActiveCN107994879B (en) | 2017-12-04 | 2017-12-04 | Loudness control method and device |
| Country | Link |
|---|---|
| CN (1) | CN107994879B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12412595B2 (en) | 2020-03-27 | 2025-09-09 | Dolby Laboratories Licensing Corporation | Automatic leveling of speech content |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109217834B (en)* | 2018-10-19 | 2022-06-21 | 歌尔科技有限公司 | Gain adjustment method, audio device and readable storage medium |
| CN109658942B (en)* | 2018-12-27 | 2021-04-30 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio data processing method and device and related equipment |
| CN111131888A (en)* | 2019-12-19 | 2020-05-08 | 北京达佳互联信息技术有限公司 | Volume control method and device, electronic equipment and storage medium |
| CN114827337B (en)* | 2021-01-19 | 2023-08-18 | 博泰车联网(南京)有限公司 | Method, device, equipment and storage medium for adjusting volume |
| CN113986183B (en)* | 2021-09-30 | 2024-03-22 | 青岛海尔科技有限公司 | Volume adjustment method and device for smart home equipment |
| CN114579077B (en)* | 2022-02-23 | 2024-04-16 | 青岛海信宽带多媒体技术有限公司 | Volume control equipment |
| CN114615599B (en)* | 2022-03-11 | 2024-12-03 | 游密科技(深圳)有限公司 | Audio processing method, device, computer equipment, storage medium and program product |
| CN114879929B (en)* | 2022-04-11 | 2025-06-03 | 维沃移动通信有限公司 | Multimedia file playing method and device |
| CN117727334B (en)* | 2023-05-10 | 2025-04-25 | 书行科技(北京)有限公司 | Audio processing method, device, equipment and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102693737A (en)* | 2012-06-11 | 2012-09-26 | 华为终端有限公司 | Volume adjusting method and device |
| CN103812462A (en)* | 2012-11-15 | 2014-05-21 | 华为技术有限公司 | Loudness control method and device |
| CN104393848A (en)* | 2014-10-27 | 2015-03-04 | 常州听觉工坊智能科技有限公司 | Method and device for adjusting volume |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118016076A (en)* | 2013-09-12 | 2024-05-10 | 杜比实验室特许公司 | Loudness adjustment for downmixed audio content |
| CN103618514A (en)* | 2013-10-31 | 2014-03-05 | 小米科技有限责任公司 | Volume adjustment method, device and electronic equipment |
| CN107241497B (en)* | 2017-05-26 | 2021-01-26 | 努比亚技术有限公司 | Mobile terminal and loudness output adjusting method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102693737A (en)* | 2012-06-11 | 2012-09-26 | 华为终端有限公司 | Volume adjusting method and device |
| CN103812462A (en)* | 2012-11-15 | 2014-05-21 | 华为技术有限公司 | Loudness control method and device |
| CN104393848A (en)* | 2014-10-27 | 2015-03-04 | 常州听觉工坊智能科技有限公司 | Method and device for adjusting volume |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12412595B2 (en) | 2020-03-27 | 2025-09-09 | Dolby Laboratories Licensing Corporation | Automatic leveling of speech content |
| Publication number | Publication date |
|---|---|
| CN107994879A (en) | 2018-05-04 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107994879B (en) | Loudness control method and device | |
| KR102042152B1 (en) | Control method and device for playing audio | |
| CN106464939B (en) | Method and device for playing sound effects | |
| CN111246283B (en) | Video playing method and device, electronic equipment and storage medium | |
| CN106911967B (en) | Live playback method and device | |
| CN107105314A (en) | Video broadcasting method and device | |
| CN106024033B (en) | Control method for playing back and device | |
| CN108845787B (en) | Method, device, terminal and storage medium for audio adjustment | |
| WO2016165325A1 (en) | Audio information recognition method and apparatus | |
| CN106354471A (en) | Method and device for audio play control and electronic device | |
| CN106484856B (en) | Audio playback method and device | |
| KR20170023769A (en) | Event prompting mehtod and device | |
| CN110113256B (en) | Information interaction method and device, server, user terminal and readable storage medium | |
| CN106060707B (en) | Reverberation processing method and device | |
| CN105516451A (en) | Sound effect adjustment method and device | |
| CN114416015A (en) | Audio adjustment method, device, electronic device and readable storage medium | |
| CN106020766A (en) | Music playing method and device | |
| CN106375846A (en) | Live audio processing method and device | |
| WO2022227589A1 (en) | Audio processing method and apparatus | |
| WO2018058331A1 (en) | Method and apparatus for controlling volume | |
| CN107340990B (en) | Playback method and device | |
| CN111540341B (en) | Data processing method and device for data processing | |
| CN108668028B (en) | Message prompting method, device and storage medium | |
| CN106294747A (en) | Audio synchronization method and device | |
| CN115134675B (en) | Sound output method and device, electronic device, and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |