WO2018205423A1 - Method and terminal for playing audio, and computer-readable storage medium - Google Patents
Method and terminal for playing audio, and computer-readable storage medium Download PDFInfo
- Publication number
- WO2018205423A1 WO2018205423A1 PCT/CN2017/094934 CN2017094934W WO2018205423A1 WO 2018205423 A1 WO2018205423 A1 WO 2018205423A1 CN 2017094934 W CN2017094934 W CN 2017094934W WO 2018205423 A1 WO2018205423 A1 WO 2018205423A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- audio
- playing
- played
- current environment
- standard
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Definitions
- the present invention relates to the field of audio playback technologies, and in particular, to an audio playback method, a terminal, and a computer readable storage medium.
- the loudness of audio playback is an important indicator. Loudness is the subjective feeling of the strength of the sound heard by the human ear. In different environments, due to the presence of environmental noise, there are different requirements for loudness. However, it is often inaccurate to judge the influence of environmental noise on the played audio according to the human ear, so that it is impossible to dynamically adjust the loudness corresponding to the played audio based on the influence of the ambient noise on the played audio.
- the main purpose of the present invention is to provide an audio playing method, which aims to solve the problem that the influence of ambient noise on playing audio according to the human ear is often not accurate enough in the prior art, and thus the impact of environmental noise on playing audio cannot be scientifically determined. To dynamically adjust the technical problem of the loudness corresponding to the playback audio.
- the present invention provides an audio playing method, where the audio playing method includes:
- the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained;
- the prompt information is used to prompt the user to adjust the play volume.
- the detecting whether the current environment is suitable for playing audio comprises:
- the proportion of the total duration in the preset time period is greater than a preset ratio threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- the detecting whether the current environment is suitable for playing audio further includes:
- the sharpness value corresponding to the sharpness value is greater than the preset sharpness threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- the method includes:
- the audio information to be played is retrieved according to the historical play record and played, and the play criteria corresponding to the audio information to be played are:
- the playing standard comprises:
- the standard characteristic loudness curve corresponding to the audio to be played is the standard characteristic loudness curve corresponding to the audio to be played.
- the prompting information is used to prompt the user to adjust the play volume, including:
- the feedback lowers the volume prompt to prompt the user to lower the playing volume.
- the prompting information is used to prompt the user to adjust the play volume, and the method further includes:
- the feedback increases the volume prompt to prompt the user to increase the playing volume.
- the present invention further provides an audio playing terminal, the audio playing terminal comprising: a memory, a processor, and an audio playing program stored on the memory and operable on the processor, The steps of the audio playback method as described above are implemented when the audio playback program is executed by the processor.
- the present invention also provides a computer readable storage medium having an audio playback program stored thereon, the audio playback program being executed by a processor to implement audio as described above The steps of the playback method.
- the audio to be played before playing the audio to be played, it is detected whether the current environment is suitable for playing audio. If the current environment is suitable for playing audio, the audio to be played is retrieved and played, and the loudness curve corresponding to the audio to be played is denoised. Corresponding playback effect loudness curve, when it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard corresponding to the audio to be played, the prompt information is used to prompt the user to adjust the play volume.
- the invention the scientific influence on the playing audio according to the environmental noise is realized, and the playing volume is dynamically adjusted, so that the loudness felt by the human ear is at an appropriate level when the audio is played.
- FIG. 1 is a schematic flow chart of a first embodiment of an audio playing method according to the present invention.
- FIG. 2 is a schematic diagram of a refinement process of step S20 in FIG. 1;
- FIG. 3 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
- FIG. 1 is a schematic flowchart of a first embodiment of an audio playing method according to the present invention.
- the audio playback method comprises:
- Step S10 detecting whether the current environment is suitable for playing audio
- the environmental noise in the current environment is acquired.
- a sound acquisition device similar to a microphone is used to obtain the current environmental noise, and the sound acquisition device may be integrated into the terminal or externally connected to the terminal, which is not limited herein, and may be determined according to actual needs. It is possible to obtain environmental noise for a period of time, for example, to obtain ambient noise of 10S in the current environment.
- the acquired environmental noise is processed. For example, audio processing software is built in the terminal, and the ambient noise is processed to obtain a characteristic band loudness curve and a noise spectrum corresponding to the environmental noise.
- the characteristic frequency band loudness curve is analyzed, and the duration corresponding to the portion of the characteristic frequency band loudness curve exceeding the preset loudness threshold (which can be set as desired, for example, 50 squares) is calculated in the sampling duration (ie, said above)
- the proportion in 10S determines whether the proportion exceeds the preset ratio (can be set manually according to needs, for example, set to 10%). If the ratio does not exceed the preset ratio, the current environment is suitable for playing audio; If the ratio is greater than or equal to the preset ratio, it indicates that the current environment is not suitable for playing audio, and the warning message is fed back. For example, the text “currently not suitable for playing audio” is displayed in the display area of the terminal, or an audible alarm or flashing light is issued.
- the sharpness calculation formula is used to obtain a sharpness curve corresponding to the environmental noise, and the sharpness curve is analyzed. If a certain value corresponding to the sharpness curve exists, a certain value is greater than or equal to
- the preset sharpness threshold can be set according to actual needs, for example, 1.0
- the text “currently not suitable for playing audio” is displayed in the terminal display area, or is issued. Sound alarms, or flashing lights, etc., are not limited here.
- Step S20 If the current environment is suitable for playing audio, the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained;
- the historical play record of the current user is acquired according to the current user identity information (for example, a historical time node of a certain piece of article/song audio play), according to the historical play record, Obtaining the playing time node of the currently to-be-played audio (for example, an audio history playing record is 15 minutes and 25 seconds, and the playing start time point of the to-be-played audio is 15 minutes and 25 seconds), and playing the to-be-played audio, and acquiring the to-be-played The playback standard corresponding to the audio information.
- the current user identity information for example, a historical time node of a certain piece of article/song audio play
- the playing standard includes the upper and lower limits corresponding to the standard characteristic loudness curve of the currently to-be-played audio when playing in a noiseless state (for example, the standard characteristic loudness curve when the currently to-be-played audio is played in a quiet environment such as a recording studio) Corresponding upper and lower limits).
- Step S30 performing denoising processing on the loudness curve corresponding to the currently played audio, and obtaining a playback effect loudness curve corresponding to the currently played audio;
- the denoising process of the loudness curve corresponding to the currently played audio may be processed by an audio denoising software (eg, speex, etc.) or a denoising algorithm preset in the terminal, to obtain a corresponding audio of the currently played audio. Play the effect loudness curve.
- an audio denoising software eg, speex, etc.
- a denoising algorithm preset in the terminal to obtain a corresponding audio of the currently played audio. Play the effect loudness curve.
- step S40 when it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard, the prompt information is used to prompt the user to adjust the play volume.
- the corresponding range of the play standard is the upper and lower limits corresponding to the standard characteristic loudness curve when the currently played audio is played in the no-noise state. If the playback effect loudness curve exceeds the corresponding range of the play standard, the current play audio corresponds to If the loudness is not suitable, feedback prompt information, such as a text prompt (prompting the user to lower or increase the volume), a light prompt (the color 1 light represents a decrease in volume, and the color 2 light represents an increase in volume). For example, when it is detected that the playback effect loudness curve exceeds the upper limit corresponding to the play standard, the user is prompted to lower the play volume.
- a text prompt prompting the user to lower or increase the volume
- a light prompt the color 1 light represents a decrease in volume
- the color 2 light represents an increase in volume
- the play effect loudness curve exceeds the lower limit corresponding to the play standard
- the user is prompted to increase the play volume, and when the play is detected.
- the effect loudness curve exceeds the upper limit corresponding to the play standard and exceeds the lower limit corresponding to the play standard. If the play effect at this time is not good, the play is stopped, and the process returns to step S10.
- the audio to be played before playing the audio to be played, it is detected whether the current environment is suitable for playing audio. If the current environment is suitable for playing audio, the audio to be played is retrieved and played, and the loudness curve corresponding to the audio to be played is denoised. The corresponding playback effect loudness curve is obtained. When it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard corresponding to the audio to be played, the prompt information is used to prompt the user to adjust the play volume.
- the invention the scientific influence on the playing audio according to the environmental noise is realized, and the playing volume is dynamically adjusted, so that the loudness felt by the human ear is at an appropriate level when the audio is played.
- step S10 includes:
- the proportion of the total duration in the preset time period is greater than a preset ratio threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- the environmental noise in the current environment is acquired.
- a sound acquisition device similar to a microphone is used to obtain the current environmental noise, and the sound acquisition device may be integrated into the terminal or externally connected to the terminal, which is not limited herein, and may be determined according to actual needs. It is possible to obtain environmental noise for a period of time, for example, to obtain ambient noise of 10S in the current environment.
- the acquired environmental noise is processed. For example, audio processing software is built in the terminal, and the ambient noise is processed to obtain a characteristic band loudness curve and a noise spectrum corresponding to the environmental noise.
- the characteristic band loudness curve is analyzed, and the duration corresponding to the portion of the characteristic band loudness curve that exceeds the preset loudness threshold (which can be set as desired, for example, 50 squares) is calculated for a preset time period (ie, the above Say the proportion of 10S), determine whether the proportion exceeds the preset ratio (can be set manually according to needs, for example, set to 10%), if the ratio does not exceed the preset ratio, the current environment is suitable for playback Audio; if the ratio is greater than or equal to the preset ratio, it indicates that the current environment is not suitable for playing audio, and the warning message is fed back. For example, the text “currently not suitable for playing audio” is displayed in the display area of the terminal, or an audible alarm or a flashing light is emitted. Etc. There is no limit here.
- step S10 further includes:
- the sharpness value corresponding to the sharpness value is greater than the preset sharpness threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- the environmental noise in the current environment is acquired.
- a sound acquisition device similar to a microphone is used to obtain the current environmental noise, and the sound acquisition device may be integrated into the terminal or externally connected to the terminal, which is not limited herein, and may be determined according to actual needs. It is possible to obtain environmental noise for a period of time, for example, to obtain ambient noise of 10S in the current environment.
- the obtained environmental noise is processed, and the sharpness calculation formula is used to obtain the sharpness curve corresponding to the environmental noise, and the sharpness curve is analyzed, and if some values corresponding to the sharpness curve exist, If a value is greater than or equal to the preset sharpness threshold (can be set according to actual needs, for example, 1.0), it indicates that the current environment is not suitable for playback, and the warning message is fed back. For example, the text "currently not suitable for playing audio" is displayed in the terminal display area. ", or sound alarms, or flashing lights, etc., no restrictions here.
- the preset sharpness threshold can be set according to actual needs, for example, 1.0
- a sharpness curve corresponding to the environmental noise is obtained, and whether a certain value corresponding to the sharpness curve is greater than a preset sharpness threshold is detected. If it exists, the current environment is not suitable for playback, and the environmental noise can be scientifically analyzed, and subsequent audio playback can be guided according to the analysis result.
- step S10 the method includes:
- the warning information when the current environment is not suitable for playing audio, the warning information may be fed back, and the text “currently unsuitable for playing audio” may be displayed in the display area of the terminal, or an audible alarm or a flashing light may be issued, which is not limited herein.
- the ambient noise collected in the preset time period is analyzed, and if the analysis result indicates that the current environment is not suitable for playing audio, the warning information is fed back.
- FIG. 2 is a schematic diagram of the refinement process of step S20 in FIG.
- step S20 includes:
- Step S201 if the current environment is suitable for playing audio, acquiring identity information of the current user;
- step S202 the historical play record corresponding to the identity information is obtained, and the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained.
- the identity information of the current user is obtained, for example, the identity input by the user when the audio playing software is started.
- Information for example, account number, password, fingerprint information, etc.
- Obtain a corresponding historical play record according to the identity information of the user for example, a historical time node of a certain piece of article/song audio play
- obtain a play time node of the currently to-be-played audio according to the historical play record for example, an audio history play record is 15 In 25 seconds, the playback start time of the audio to be played is 15 minutes and 25 seconds, and the audio to be played is played, and the playback standard corresponding to the audio information to be played is obtained.
- the playing standard includes the upper and lower limits corresponding to the standard characteristic loudness curve of the currently to-be-played audio when playing in a noiseless state (for example, the standard characteristic loudness curve when the currently to-be-played audio is played in a quiet environment such as a recording studio) Corresponding upper and lower limits).
- the audio playback is automatically entered only when the current environment is suitable for playing audio, thereby improving the user's listening experience during the playing of the audio and increasing the user experience.
- the playing standard includes: a standard characteristic loudness curve corresponding to the audio to be played.
- the playing standard includes an upper limit and a lower limit corresponding to a standard characteristic loudness curve when the currently to-be-played audio is played in a noiseless state (for example, a standard characteristic loudness curve when the currently to-be-played audio is played in a quiet environment such as a studio). Corresponding upper and lower limits).
- the user is instructed to adjust the audio playing volume to improve the user.
- the auditory experience during the playback of the audio increases the user experience.
- step S40 includes:
- the feedback lowers the volume prompt to prompt the user to lower the playing volume.
- the corresponding range of the play standard is the upper and lower limits corresponding to the standard characteristic loudness curve when the currently played audio is played in the no-noise state. If the playback effect loudness curve exceeds the corresponding range of the play standard, the current play audio corresponds to If the loudness is not suitable, feedback prompt information, such as a text prompt (prompting the user to lower or increase the volume), a light prompt (the color 1 light represents a decrease in volume, and the color 2 light represents an increase in volume). For example, when it is detected that the playback effect loudness curve exceeds the upper limit corresponding to the play standard, it indicates that the corresponding audio of the play audio may be louder at this time, and the user is prompted to lower the play volume.
- a text prompt prompting the user to lower or increase the volume
- a light prompt the color 1 light represents a decrease in volume
- the color 2 light represents an increase in volume
- the user is instructed to adjust the audio playing volume to improve the user.
- the auditory experience during the playback of the audio increases the user experience.
- step S40 further includes:
- the feedback increases the volume prompt to prompt the user to increase the playing volume.
- the corresponding range of the play standard is the upper and lower limits corresponding to the standard characteristic loudness curve when the currently played audio is played in the no-noise state. If the playback effect loudness curve exceeds the corresponding range of the play standard, the current play audio corresponds to If the loudness is not suitable, feedback prompt information, such as a text prompt (prompting the user to lower or increase the volume), a light prompt (the color 1 light represents a decrease in volume, and the color 2 light represents an increase in volume). For example, when it is detected that the playback effect loudness curve exceeds the lower limit corresponding to the play standard, it indicates that the corresponding audio of the play audio may be small at this time, and the user is prompted to increase the play volume.
- a text prompt prompting the user to lower or increase the volume
- a light prompt the color 1 light represents a decrease in volume
- the color 2 light represents an increase in volume
- the user is instructed to adjust the audio playing volume to improve the user.
- the auditory experience during the playback of the audio increases the user experience.
- FIG. 3 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
- the terminal may be a PC, or may be a smart phone, a tablet computer, or an MP3 (Moving Picture Experts). Group Audio Layer III, motion picture expert compression standard audio layer 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic imaging experts compress standard audio layers 3) terminal devices such as players and portable computers.
- MP3 Motion Picture Experts
- Group Audio Layer III motion picture expert compression standard audio layer 3
- MP4 Motion Picture Experts Group Audio Layer IV
- dynamic imaging experts compress standard audio layers 3 terminal devices such as players and portable computers.
- the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
- the communication bus 1002 is used to implement connection communication between these components.
- the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
- the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
- the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
- the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
- the terminal may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more.
- sensors such as light sensors, motion sensors, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting.
- the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
- terminal structure shown in FIG. 3 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
- an operating system may be included in the memory 1005 as a computer storage medium.
- the network interface 1004 is mainly used to connect to the background server for data communication with the background server;
- the user interface 1003 is mainly used for connecting the client (user end), and performing data communication with the client;
- 1001 can be used to invoke an audio playback program stored in memory 1005 and perform the steps of the audio playback method as described above.
- the specific embodiment of the audio playback terminal of the present invention is basically the same as the foregoing embodiments of the audio playback method, and details are not described herein.
- an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores an audio playing program, and when the audio playing program is executed by the processor, the audio playing method as described above is implemented. step.
- the specific embodiment of the computer readable storage medium of the present invention is substantially the same as the embodiment of the audio playback method described above, and is not described herein.
- portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
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)
- Circuit For Audible Band Transducer (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Disclosed are a method and terminal for playing audio, and a computer-readable storage medium. The method comprises: detecting whether a current environment is suitable for playing audio; if the current environment is suitable for playing audio, invoking, according to a historical playing record, information about audio to be played, and playing same, and acquiring a playing standard corresponding to the information about the audio to be played; carrying out de-noising processing on a loudness contour corresponding to a currently played audio to obtain a playing effect loudness contour corresponding to the currently played audio; and when it is detected that the playing effect loudness contour exceeds a range corresponding to the playing standard, feeding back prompt information to prompt a user to adjust a playing volume. By means of the present invention, a playing volume is scientifically and dynamically adjusted according to the degree to which environmental noise affects playing audio, so that when audio is played, the loudness perceived by human ears is at a suitable degree.
Description
技术领域Technical field
本发明涉及音频播放技术领域,尤其涉及音频播放方法、终端及计算机可读存储介质。The present invention relates to the field of audio playback technologies, and in particular, to an audio playback method, a terminal, and a computer readable storage medium.
背景技术Background technique
在音频播放中,音频播放对应的响度是一个重要的指标。响度是指人耳所听到的声音大小强弱的主观感受。在不同的环境中,由于环境噪声的存在,对响度有不同的要求。但根据人耳来判断环境噪声对播放音频的影响大小往往不够准确,从而无法科学的基于环境噪声对播放音频的影响大小来动态调整播放音频对应的响度。In audio playback, the loudness of audio playback is an important indicator. Loudness is the subjective feeling of the strength of the sound heard by the human ear. In different environments, due to the presence of environmental noise, there are different requirements for loudness. However, it is often inaccurate to judge the influence of environmental noise on the played audio according to the human ear, so that it is impossible to dynamically adjust the loudness corresponding to the played audio based on the influence of the ambient noise on the played audio.
发明内容Summary of the invention
本发明的主要目的在于提供一种音频播放方法,旨在解决现有技术中根据人耳来判断环境噪声对播放音频的影响大小往往不够准确,从而无法科学的基于环境噪声对播放音频的影响大小来动态调整播放音频对应的响度的技术问题。The main purpose of the present invention is to provide an audio playing method, which aims to solve the problem that the influence of ambient noise on playing audio according to the human ear is often not accurate enough in the prior art, and thus the impact of environmental noise on playing audio cannot be scientifically determined. To dynamically adjust the technical problem of the loudness corresponding to the playback audio.
为实现上述目的,本发明提供一种音频播放方法,所述音频播放方法包括:To achieve the above object, the present invention provides an audio playing method, where the audio playing method includes:
检测当前环境是否适宜播放音频;Detect whether the current environment is suitable for playing audio;
若当前环境适宜播放音频,则根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准;If the current environment is suitable for playing audio, the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained;
对当前播放的音频对应的响度曲线进行去噪处理,得到当前播放的音频对应的播放效果响度曲线;Denoising the loudness curve corresponding to the currently played audio to obtain a playback effect loudness curve corresponding to the currently played audio;
当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量。When it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard, the prompt information is used to prompt the user to adjust the play volume.
优选地,所述检测当前环境是否适宜播放音频包括:Preferably, the detecting whether the current environment is suitable for playing audio comprises:
获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的特征频带响度曲线;Acquiring the ambient noise collected by the sound collection device in the preset time period, and acquiring the characteristic frequency band loudness curve corresponding to the environmental noise according to the ambient noise;
根据所述特征频带响度曲线,获取所述特征频带响度曲线中大于预设响度阈值部分对应的总时长;Obtaining, according to the characteristic frequency band loudness curve, a total duration corresponding to a portion of the characteristic frequency band loudness curve that is greater than a preset loudness threshold portion;
检测所述总时长在所述预设时间段中的占比是否大于预设比例阈值;Detecting whether the proportion of the total duration in the preset time period is greater than a preset ratio threshold;
若所述总时长在所述预设时间段中的占比大于预设比例阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the proportion of the total duration in the preset time period is greater than a preset ratio threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
优选地,所述检测当前环境是否适宜播放音频还包括:Preferably, the detecting whether the current environment is suitable for playing audio further includes:
获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的尖锐度曲线;Obtaining an environmental noise collected by the sound collecting device in the preset time period, and acquiring a sharpness curve corresponding to the environmental noise according to the environmental noise;
检测是否存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值;Detecting whether the sharpness curve corresponds to a sharpness value greater than a preset sharpness threshold;
若存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the sharpness value corresponding to the sharpness value is greater than the preset sharpness threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
优选地,所述检测当前环境是否适宜播放音频之后包括:Preferably, after the detecting whether the current environment is suitable for playing audio, the method includes:
若当前环境不适宜播放音频,则反馈警告信息。If the current environment is not suitable for playing audio, feedback warning message.
优选地,所述若当前环境适宜播放音频,则根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准包括:Preferably, if the current environment is suitable for playing audio, the audio information to be played is retrieved according to the historical play record and played, and the play criteria corresponding to the audio information to be played are:
若当前环境适宜播放音频,则获取当前用户的身份信息;If the current environment is suitable for playing audio, obtain the identity information of the current user;
获取所述身份信息对应的历史播放记录,并根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准。Obtaining a historical play record corresponding to the identity information, and retrieving the audio information to be played according to the historical play record and playing, and acquiring a play standard corresponding to the audio information to be played.
优选地,所述播放标准包括:Preferably, the playing standard comprises:
所述待播放音频对应的标准特征响度曲线。The standard characteristic loudness curve corresponding to the audio to be played.
优选地,所述当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量包括:Preferably, when detecting that the play effect loudness curve exceeds the corresponding range of the play standard, the prompting information is used to prompt the user to adjust the play volume, including:
当检测到所述播放效果响度曲线超出所述播放标准对应的上限时,反馈降低音量提示,用以提示用户降低播放音量。When it is detected that the playing effect loudness curve exceeds the upper limit corresponding to the playing standard, the feedback lowers the volume prompt to prompt the user to lower the playing volume.
优选地,所述当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量还包括:Preferably, when detecting that the play effect loudness curve exceeds the corresponding range of the play standard, the prompting information is used to prompt the user to adjust the play volume, and the method further includes:
当检测到所述播放效果响度曲线超出所述播放标准对应的下限时,反馈增加音量提示,用以提示用户提高播放音量。When it is detected that the playing effect loudness curve exceeds the lower limit corresponding to the playing standard, the feedback increases the volume prompt to prompt the user to increase the playing volume.
此外,为实现上述目的,本发明还提供一种音频播放终端,所述音频播放终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的音频播放程序,所述音频播放程序被所述处理器执行时实现如上述所述的音频播放方法的步骤。In addition, in order to achieve the above object, the present invention further provides an audio playing terminal, the audio playing terminal comprising: a memory, a processor, and an audio playing program stored on the memory and operable on the processor, The steps of the audio playback method as described above are implemented when the audio playback program is executed by the processor.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有音频播放程序,所述音频播放程序被处理器执行时实现如上述所述的音频播放方法的步骤。Furthermore, in order to achieve the above object, the present invention also provides a computer readable storage medium having an audio playback program stored thereon, the audio playback program being executed by a processor to implement audio as described above The steps of the playback method.
本发明中,在播放待播放音频前,检测当前环境是否适宜播放音频,若当前环境适宜播放音频,则调取待播放音频并播放,对播放待播放音频对应的响度曲线进行去噪处理,得到对应的播放效果响度曲线,当检测到播放效果响度曲线超出待播放音频对应播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量。通过本发明,实现了科学的根据环境噪声对播放音频的影响大小,动态调整播放音量,使得音频播放时,人耳感受到的响度处于适宜的程度。In the present invention, before playing the audio to be played, it is detected whether the current environment is suitable for playing audio. If the current environment is suitable for playing audio, the audio to be played is retrieved and played, and the loudness curve corresponding to the audio to be played is denoised. Corresponding playback effect loudness curve, when it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard corresponding to the audio to be played, the prompt information is used to prompt the user to adjust the play volume. Through the invention, the scientific influence on the playing audio according to the environmental noise is realized, and the playing volume is dynamically adjusted, so that the loudness felt by the human ear is at an appropriate level when the audio is played.
附图说明DRAWINGS
图1为本发明音频播放方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of an audio playing method according to the present invention;
图2为图1中步骤S20的细化流程示意图;2 is a schematic diagram of a refinement process of step S20 in FIG. 1;
图3是本发明实施例方案涉及的硬件运行环境的终端结构示意图。FIG. 3 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参照图1,图1为本发明音频播放方法第一实施例的流程示意图。1 is a schematic flowchart of a first embodiment of an audio playing method according to the present invention.
在一实施例中,音频播放方法包括:In an embodiment, the audio playback method comprises:
步骤S10,检测当前环境是否适宜播放音频;Step S10, detecting whether the current environment is suitable for playing audio;
在本实施例中,检测当前环境是否是否播放音频,首先要获取当前环境中的环境噪声。例如,使用麦克风类似的声音获取装置获取当前的环境噪声,声音获取装置可以集成于终端内部,也可与终端外接,在此不作限制,具体根据实际需要而定。可以在获取一段时间内的环境噪声,例如获取当前环境中10S的环境噪声。获取当前的环境噪声后,对获取的环境噪声进行处理,例如,在终端中内置有音频处理软件,经过对环境噪声音频进行处理,得到环境噪声对应的特征频带响度曲线以及噪声频谱。对特征频带响度曲线进行分析,计算在该特征频带响度曲线中响度超过预设响度阈值(该值可以人为根据需要设置,例如设置为50方)的部分对应的时长在采样时长(即上述说的10S)中的占比,判断该占比是否超过预设比例(可以人为根据需要进行设置,例如,设置为10%),若该占比不超过预设比例,则说明当前环境适宜播放音频;若该占比大于等于预设比例,则说明当前环境不适宜播放音频,则反馈警告消息,例如,在终端显示区域显示文字“当前不适宜播放音频”,或者发出声音告警、或者闪烁灯光等,在此不作限制。在本发明另一可选实施例中,采用尖锐度计算公式,得到环境噪声对应的尖锐度曲线,对该尖锐度曲线进行分析,若尖锐度曲线对应的若干个数值中存在某一数值大于等于预设尖锐度阈值(可根据实际需要进行设置,例如,1.0)时,则说明当前环境不适宜播放,则反馈警告消息,例如,在终端显示区域显示文字“当前不适宜播放音频”,或者发出声音告警、或者闪烁灯光等,在此不作限制。In this embodiment, to detect whether the current environment plays audio, firstly, the environmental noise in the current environment is acquired. For example, a sound acquisition device similar to a microphone is used to obtain the current environmental noise, and the sound acquisition device may be integrated into the terminal or externally connected to the terminal, which is not limited herein, and may be determined according to actual needs. It is possible to obtain environmental noise for a period of time, for example, to obtain ambient noise of 10S in the current environment. After obtaining the current environmental noise, the acquired environmental noise is processed. For example, audio processing software is built in the terminal, and the ambient noise is processed to obtain a characteristic band loudness curve and a noise spectrum corresponding to the environmental noise. The characteristic frequency band loudness curve is analyzed, and the duration corresponding to the portion of the characteristic frequency band loudness curve exceeding the preset loudness threshold (which can be set as desired, for example, 50 squares) is calculated in the sampling duration (ie, said above) The proportion in 10S) determines whether the proportion exceeds the preset ratio (can be set manually according to needs, for example, set to 10%). If the ratio does not exceed the preset ratio, the current environment is suitable for playing audio; If the ratio is greater than or equal to the preset ratio, it indicates that the current environment is not suitable for playing audio, and the warning message is fed back. For example, the text “currently not suitable for playing audio” is displayed in the display area of the terminal, or an audible alarm or flashing light is issued. There are no restrictions here. In another optional embodiment of the present invention, the sharpness calculation formula is used to obtain a sharpness curve corresponding to the environmental noise, and the sharpness curve is analyzed. If a certain value corresponding to the sharpness curve exists, a certain value is greater than or equal to When the preset sharpness threshold (can be set according to actual needs, for example, 1.0), it indicates that the current environment is not suitable for playback, and the warning message is fed back. For example, the text “currently not suitable for playing audio” is displayed in the terminal display area, or is issued. Sound alarms, or flashing lights, etc., are not limited here.
步骤S20,若当前环境适宜播放音频,则根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准;Step S20: If the current environment is suitable for playing audio, the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained;
在本发明一实施例中,当当前环境适宜播放音频时,则根据当前用户身份信息,获取当前用户的历史播放记录(例如某一段文章/歌曲音频播放的历史时间节点),根据历史播放记录,得到当前待播放音频的播放时间节点(例如,一段音频历史播放记录为15分25秒,则待播放音频的播放起始时间点为15分25秒),并播放待播放音频,同时获取待播放音频信息对应的播放标准。在本实施例中,播放标准包括当前待播放音频在无噪声状态下播放时的标准特征响度曲线对应的上下限(例如当前待播放音频在录音棚等安静的环境中播放时的标准特征响度曲线对应的上下限)。In an embodiment of the present invention, when the current environment is suitable for playing audio, the historical play record of the current user is acquired according to the current user identity information (for example, a historical time node of a certain piece of article/song audio play), according to the historical play record, Obtaining the playing time node of the currently to-be-played audio (for example, an audio history playing record is 15 minutes and 25 seconds, and the playing start time point of the to-be-played audio is 15 minutes and 25 seconds), and playing the to-be-played audio, and acquiring the to-be-played The playback standard corresponding to the audio information. In this embodiment, the playing standard includes the upper and lower limits corresponding to the standard characteristic loudness curve of the currently to-be-played audio when playing in a noiseless state (for example, the standard characteristic loudness curve when the currently to-be-played audio is played in a quiet environment such as a recording studio) Corresponding upper and lower limits).
步骤S30,对当前播放的音频对应的响度曲线进行去噪处理,得到当前播放的音频对应的播放效果响度曲线;Step S30, performing denoising processing on the loudness curve corresponding to the currently played audio, and obtaining a playback effect loudness curve corresponding to the currently played audio;
在本实施例中,对当前播放的音频对应的响度曲线进行去噪处理可以通过音频去噪软件(例如speex等)或预置在终端中的去噪算法进行处理,得到当前播放的音频对应的播放效果响度曲线。In this embodiment, the denoising process of the loudness curve corresponding to the currently played audio may be processed by an audio denoising software (eg, speex, etc.) or a denoising algorithm preset in the terminal, to obtain a corresponding audio of the currently played audio. Play the effect loudness curve.
步骤S40,当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量。In step S40, when it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard, the prompt information is used to prompt the user to adjust the play volume.
在本实施例中,播放标准对应范围即当前播放音频在无噪声状态下播放时的标准特征响度曲线对应的上下限,若检测到播放效果响度曲线超过播放标准对应范围,则说明当前播放音频对应的响度不适宜,则反馈提示信息,例如文字提示(提示用户降低或提高音量)、灯光提示(颜色1的灯光代表降低音量,颜色2的灯光代表提高音量)。例如,当检测到播放效果响度曲线超出播放标准对应的上限时,则提示用户降低播放音量,当检测到播放效果响度曲线超出播放标准对应的下限时,则提示用户提高播放音量,当检测到播放效果响度曲线既超出播放标准对应的上限又超出播放标准对应的下限,说明此时的播放效果不好,则停止播放,并返回步骤S10。In this embodiment, the corresponding range of the play standard is the upper and lower limits corresponding to the standard characteristic loudness curve when the currently played audio is played in the no-noise state. If the playback effect loudness curve exceeds the corresponding range of the play standard, the current play audio corresponds to If the loudness is not suitable, feedback prompt information, such as a text prompt (prompting the user to lower or increase the volume), a light prompt (the color 1 light represents a decrease in volume, and the color 2 light represents an increase in volume). For example, when it is detected that the playback effect loudness curve exceeds the upper limit corresponding to the play standard, the user is prompted to lower the play volume. When it is detected that the play effect loudness curve exceeds the lower limit corresponding to the play standard, the user is prompted to increase the play volume, and when the play is detected. The effect loudness curve exceeds the upper limit corresponding to the play standard and exceeds the lower limit corresponding to the play standard. If the play effect at this time is not good, the play is stopped, and the process returns to step S10.
本实施例中,在播放待播放音频前,检测当前环境是否适宜播放音频,若当前环境适宜播放音频,则调取待播放音频并播放,对播放待播放音频对应的响度曲线进行去噪处理,得到对应的播放效果响度曲线,当检测到播放效果响度曲线超出待播放音频对应播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量。通过本发明,实现了科学的根据环境噪声对播放音频的影响大小,动态调整播放音量,使得音频播放时,人耳感受到的响度处于适宜的程度。In this embodiment, before playing the audio to be played, it is detected whether the current environment is suitable for playing audio. If the current environment is suitable for playing audio, the audio to be played is retrieved and played, and the loudness curve corresponding to the audio to be played is denoised. The corresponding playback effect loudness curve is obtained. When it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard corresponding to the audio to be played, the prompt information is used to prompt the user to adjust the play volume. Through the invention, the scientific influence on the playing audio according to the environmental noise is realized, and the playing volume is dynamically adjusted, so that the loudness felt by the human ear is at an appropriate level when the audio is played.
进一步,在本发明一可选实施例中,步骤S10包括:Further, in an optional embodiment of the present invention, step S10 includes:
获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的特征频带响度曲线;Acquiring the ambient noise collected by the sound collection device in the preset time period, and acquiring the characteristic frequency band loudness curve corresponding to the environmental noise according to the ambient noise;
根据所述特征频带响度曲线,获取所述特征频带响度曲线中大于预设响度阈值部分对应的总时长;Obtaining, according to the characteristic frequency band loudness curve, a total duration corresponding to a portion of the characteristic frequency band loudness curve that is greater than a preset loudness threshold portion;
检测所述总时长在所述预设时间段中的占比是否大于预设比例阈值;Detecting whether the proportion of the total duration in the preset time period is greater than a preset ratio threshold;
若所述总时长在所述预设时间段中的占比大于预设比例阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the proportion of the total duration in the preset time period is greater than a preset ratio threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
在本实施例中,检测当前环境是否是否播放音频,首先要获取当前环境中的环境噪声。例如,使用麦克风类似的声音获取装置获取当前的环境噪声,声音获取装置可以集成于终端内部,也可与终端外接,在此不作限制,具体根据实际需要而定。可以在获取一段时间内的环境噪声,例如获取当前环境中10S的环境噪声。获取当前的环境噪声后,对获取的环境噪声进行处理,例如,在终端中内置有音频处理软件,经过对环境噪声音频进行处理,得到环境噪声对应的特征频带响度曲线以及噪声频谱。对特征频带响度曲线进行分析,计算在该特征频带响度曲线中响度超过预设响度阈值(该值可以人为根据需要设置,例如设置为50方)的部分对应的时长在预设时间段(即上述说的10S)中的占比,判断该占比是否超过预设比例(可以人为根据需要进行设置,例如,设置为10%),若该占比不超过预设比例,则说明当前环境适宜播放音频;若该占比大于等于预设比例,则说明当前环境不适宜播放音频,则反馈警告消息,例如,在终端显示区域显示文字“当前不适宜播放音频”,或者发出声音告警、或者闪烁灯光等,在此不作限制。In this embodiment, to detect whether the current environment plays audio, firstly, the environmental noise in the current environment is acquired. For example, a sound acquisition device similar to a microphone is used to obtain the current environmental noise, and the sound acquisition device may be integrated into the terminal or externally connected to the terminal, which is not limited herein, and may be determined according to actual needs. It is possible to obtain environmental noise for a period of time, for example, to obtain ambient noise of 10S in the current environment. After obtaining the current environmental noise, the acquired environmental noise is processed. For example, audio processing software is built in the terminal, and the ambient noise is processed to obtain a characteristic band loudness curve and a noise spectrum corresponding to the environmental noise. The characteristic band loudness curve is analyzed, and the duration corresponding to the portion of the characteristic band loudness curve that exceeds the preset loudness threshold (which can be set as desired, for example, 50 squares) is calculated for a preset time period (ie, the above Say the proportion of 10S), determine whether the proportion exceeds the preset ratio (can be set manually according to needs, for example, set to 10%), if the ratio does not exceed the preset ratio, the current environment is suitable for playback Audio; if the ratio is greater than or equal to the preset ratio, it indicates that the current environment is not suitable for playing audio, and the warning message is fed back. For example, the text “currently not suitable for playing audio” is displayed in the display area of the terminal, or an audible alarm or a flashing light is emitted. Etc. There is no limit here.
在本实施例中,通过对预设时间段内采集的环境噪声进行分析,根据环境噪声对应的特征频带响度曲线中大于预设响度阈值部分对应的总时长在预设时间段中的占比大小,判断当前环境是否适宜播放,能够科学的对环境噪声进行分析,根据分析结果指导后续的音频播放。In this embodiment, by analyzing the ambient noise collected in the preset time period, according to the proportion of the total duration of the characteristic frequency band loudness curve corresponding to the ambient noise corresponding to the preset loudness threshold portion in the preset time period To determine whether the current environment is suitable for playback, scientific analysis of environmental noise, and subsequent audio playback based on the analysis results.
进一步,在本发明另一可选实施例中,步骤S10还包括:Further, in another optional embodiment of the present invention, step S10 further includes:
获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的尖锐度曲线;Obtaining an environmental noise collected by the sound collecting device in the preset time period, and acquiring a sharpness curve corresponding to the environmental noise according to the environmental noise;
检测是否存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值;Detecting whether the sharpness curve corresponds to a sharpness value greater than a preset sharpness threshold;
若存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the sharpness value corresponding to the sharpness value is greater than the preset sharpness threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
在本实施例中,检测当前环境是否是否播放音频,首先要获取当前环境中的环境噪声。例如,使用麦克风类似的声音获取装置获取当前的环境噪声,声音获取装置可以集成于终端内部,也可与终端外接,在此不作限制,具体根据实际需要而定。可以在获取一段时间内的环境噪声,例如获取当前环境中10S的环境噪声。获取当前的环境噪声后,对获取的环境噪声进行处理,采用尖锐度计算公式,得到环境噪声对应的尖锐度曲线,对该尖锐度曲线进行分析,若尖锐度曲线对应的若干个数值中存在某一数值大于等于预设尖锐度阈值(可根据实际需要进行设置,例如,1.0)时,则说明当前环境不适宜播放,则反馈警告消息,例如,在终端显示区域显示文字“当前不适宜播放音频”,或者发出声音告警、或者闪烁灯光等,在此不作限制。In this embodiment, to detect whether the current environment plays audio, firstly, the environmental noise in the current environment is acquired. For example, a sound acquisition device similar to a microphone is used to obtain the current environmental noise, and the sound acquisition device may be integrated into the terminal or externally connected to the terminal, which is not limited herein, and may be determined according to actual needs. It is possible to obtain environmental noise for a period of time, for example, to obtain ambient noise of 10S in the current environment. After obtaining the current environmental noise, the obtained environmental noise is processed, and the sharpness calculation formula is used to obtain the sharpness curve corresponding to the environmental noise, and the sharpness curve is analyzed, and if some values corresponding to the sharpness curve exist, If a value is greater than or equal to the preset sharpness threshold (can be set according to actual needs, for example, 1.0), it indicates that the current environment is not suitable for playback, and the warning message is fed back. For example, the text "currently not suitable for playing audio" is displayed in the terminal display area. ", or sound alarms, or flashing lights, etc., no restrictions here.
在本实施例中,通过对预设时间段内采集的环境噪声进行分析,得到环境噪声对应的尖锐度曲线,检测尖锐度曲线对应的若干数值中是否存在某一数值大于预设尖锐度阈值,若存在,则反馈当前环境不适宜播放,能够科学的对环境噪声进行分析,根据分析结果指导后续的音频播放。In this embodiment, by analyzing the ambient noise collected in the preset time period, a sharpness curve corresponding to the environmental noise is obtained, and whether a certain value corresponding to the sharpness curve is greater than a preset sharpness threshold is detected. If it exists, the current environment is not suitable for playback, and the environmental noise can be scientifically analyzed, and subsequent audio playback can be guided according to the analysis result.
进一步的,在本发明一可选实施例中,步骤S10之后包括:Further, in an optional embodiment of the present invention, after step S10, the method includes:
若当前环境不适宜播放音频,则反馈警告信息。If the current environment is not suitable for playing audio, feedback warning message.
在本实施例中,当当前环境不适宜播放音频时,反馈警告信息,可以是在终端显示区域显示文字“当前不适宜播放音频”,或者发出声音告警、或者闪烁灯光等,在此不作限制。In this embodiment, when the current environment is not suitable for playing audio, the warning information may be fed back, and the text “currently unsuitable for playing audio” may be displayed in the display area of the terminal, or an audible alarm or a flashing light may be issued, which is not limited herein.
本实施例中,通过对预设时间段内采集的环境噪声进行分析,若分析结果显示当前环境不适宜播放音频,则反馈警告信息。科学的分析当前环境中存在的环境噪声对播放音频的影响程度,当影响程度较大时,则反馈警告信息,根据对数据的科学分析,准确指导后续的音频播放。In this embodiment, the ambient noise collected in the preset time period is analyzed, and if the analysis result indicates that the current environment is not suitable for playing audio, the warning information is fed back. Scientifically analyze the degree of influence of ambient noise in the current environment on playing audio. When the degree of influence is large, feedback warning information is provided. According to the scientific analysis of the data, the subsequent audio playback is accurately guided.
参照图2,图2为图1中步骤S20的细化流程示意图。Referring to FIG. 2, FIG. 2 is a schematic diagram of the refinement process of step S20 in FIG.
在一实施例中,步骤S20包括;In an embodiment, step S20 includes:
步骤S201,若当前环境适宜播放音频,则获取当前用户的身份信息;Step S201, if the current environment is suitable for playing audio, acquiring identity information of the current user;
步骤S202,获取所述身份信息对应的历史播放记录,并根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准。In step S202, the historical play record corresponding to the identity information is obtained, and the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained.
在本实施例中,通过对预设时间段内采集的环境噪声进行分析,若分析结果显示当前环境适宜播放音频,则获取当前用户的身份信息,例如,在启动音频播放软件时用户输入的身份信息(例如,账号、密码、指纹信息等)。根据用户的身份信息获取对应的历史播放记录(例如某一段文章/歌曲音频播放的历史时间节点),根据历史播放记录,得到当前待播放音频的播放时间节点(例如,一段音频历史播放记录为15分25秒,则待播放音频的播放起始时间点为15分25秒),并播放待播放音频,同时获取待播放音频信息对应的播放标准。在本实施例中,播放标准包括当前待播放音频在无噪声状态下播放时的标准特征响度曲线对应的上下限(例如当前待播放音频在录音棚等安静的环境中播放时的标准特征响度曲线对应的上下限)。In this embodiment, by analyzing the environmental noise collected in the preset time period, if the analysis result indicates that the current environment is suitable for playing audio, the identity information of the current user is obtained, for example, the identity input by the user when the audio playing software is started. Information (for example, account number, password, fingerprint information, etc.). Obtain a corresponding historical play record according to the identity information of the user (for example, a historical time node of a certain piece of article/song audio play), and obtain a play time node of the currently to-be-played audio according to the historical play record (for example, an audio history play record is 15 In 25 seconds, the playback start time of the audio to be played is 15 minutes and 25 seconds, and the audio to be played is played, and the playback standard corresponding to the audio information to be played is obtained. In this embodiment, the playing standard includes the upper and lower limits corresponding to the standard characteristic loudness curve of the currently to-be-played audio when playing in a noiseless state (for example, the standard characteristic loudness curve when the currently to-be-played audio is played in a quiet environment such as a recording studio) Corresponding upper and lower limits).
在本实施例中,只有在当前环境适宜播放音频时,自动进入音频播放,提高用户在播放音频过程中的听觉感受,增加用户体验度。In this embodiment, the audio playback is automatically entered only when the current environment is suitable for playing audio, thereby improving the user's listening experience during the playing of the audio and increasing the user experience.
进一步的,在本发明一实施例中,播放标准包括:所述待播放音频对应的标准特征响度曲线。Further, in an embodiment of the invention, the playing standard includes: a standard characteristic loudness curve corresponding to the audio to be played.
在一实施例中,播放标准包括当前待播放音频在无噪声状态下播放时的标准特征响度曲线对应的上下限(例如当前待播放音频在录音棚等安静的环境中播放时的标准特征响度曲线对应的上下限)。In an embodiment, the playing standard includes an upper limit and a lower limit corresponding to a standard characteristic loudness curve when the currently to-be-played audio is played in a noiseless state (for example, a standard characteristic loudness curve when the currently to-be-played audio is played in a quiet environment such as a studio). Corresponding upper and lower limits).
在本实施例中,根据播放标准(包括当前待播放音频在无噪声状态(播放环境较安静)下播放时的标准特征响度曲线),用以指导用户对音频播放音量进行适应性调整,提高用户在播放音频过程中的听觉感受,增加用户体验度。In this embodiment, according to the playing standard (including the standard characteristic loudness curve when the currently to-be-played audio is played in a noiseless state (the playing environment is quiet)), the user is instructed to adjust the audio playing volume to improve the user. The auditory experience during the playback of the audio increases the user experience.
进一步的,在本发明一实施例中,步骤S40包括;Further, in an embodiment of the present invention, step S40 includes:
当检测到所述播放效果响度曲线超出所述播放标准对应的上限时,反馈降低音量提示,用以提示用户降低播放音量。When it is detected that the playing effect loudness curve exceeds the upper limit corresponding to the playing standard, the feedback lowers the volume prompt to prompt the user to lower the playing volume.
在本实施例中,播放标准对应范围即当前播放音频在无噪声状态下播放时的标准特征响度曲线对应的上下限,若检测到播放效果响度曲线超过播放标准对应范围,则说明当前播放音频对应的响度不适宜,则反馈提示信息,例如文字提示(提示用户降低或提高音量)、灯光提示(颜色1的灯光代表降低音量,颜色2的灯光代表提高音量)。例如,当检测到播放效果响度曲线超出播放标准对应的上限时,说明此时播放音频对应响度可能较大,则提示用户降低播放音量。In this embodiment, the corresponding range of the play standard is the upper and lower limits corresponding to the standard characteristic loudness curve when the currently played audio is played in the no-noise state. If the playback effect loudness curve exceeds the corresponding range of the play standard, the current play audio corresponds to If the loudness is not suitable, feedback prompt information, such as a text prompt (prompting the user to lower or increase the volume), a light prompt (the color 1 light represents a decrease in volume, and the color 2 light represents an increase in volume). For example, when it is detected that the playback effect loudness curve exceeds the upper limit corresponding to the play standard, it indicates that the corresponding audio of the play audio may be louder at this time, and the user is prompted to lower the play volume.
在本实施例中,根据播放标准(包括当前待播放音频在无噪声状态(播放环境较安静)下播放时的标准特征响度曲线),用以指导用户对音频播放音量进行适应性调整,提高用户在播放音频过程中的听觉感受,增加用户体验度。In this embodiment, according to the playing standard (including the standard characteristic loudness curve when the currently to-be-played audio is played in a noiseless state (the playing environment is quiet)), the user is instructed to adjust the audio playing volume to improve the user. The auditory experience during the playback of the audio increases the user experience.
进一步的,在本发明另一可选实施例中,步骤S40还包括:Further, in another optional embodiment of the present invention, step S40 further includes:
当检测到所述播放效果响度曲线超出所述播放标准对应的下限时,反馈增加音量提示,用以提示用户提高播放音量。When it is detected that the playing effect loudness curve exceeds the lower limit corresponding to the playing standard, the feedback increases the volume prompt to prompt the user to increase the playing volume.
在本实施例中,播放标准对应范围即当前播放音频在无噪声状态下播放时的标准特征响度曲线对应的上下限,若检测到播放效果响度曲线超过播放标准对应范围,则说明当前播放音频对应的响度不适宜,则反馈提示信息,例如文字提示(提示用户降低或提高音量)、灯光提示(颜色1的灯光代表降低音量,颜色2的灯光代表提高音量)。例如,当检测到播放效果响度曲线超出播放标准对应的下限时,说明此时播放音频对应响度可能较小,则提示用户提高播放音量。
In this embodiment, the corresponding range of the play standard is the upper and lower limits corresponding to the standard characteristic loudness curve when the currently played audio is played in the no-noise state. If the playback effect loudness curve exceeds the corresponding range of the play standard, the current play audio corresponds to If the loudness is not suitable, feedback prompt information, such as a text prompt (prompting the user to lower or increase the volume), a light prompt (the color 1 light represents a decrease in volume, and the color 2 light represents an increase in volume). For example, when it is detected that the playback effect loudness curve exceeds the lower limit corresponding to the play standard, it indicates that the corresponding audio of the play audio may be small at this time, and the user is prompted to increase the play volume.
在本实施例中,根据播放标准(包括当前待播放音频在无噪声状态(播放环境较安静)下播放时的标准特征响度曲线),用以指导用户对音频播放音量进行适应性调整,提高用户在播放音频过程中的听觉感受,增加用户体验度。In this embodiment, according to the playing standard (including the standard characteristic loudness curve when the currently to-be-played audio is played in a noiseless state (the playing environment is quiet)), the user is instructed to adjust the audio playing volume to improve the user. The auditory experience during the playback of the audio increases the user experience.
如图3所示,图3是本发明实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 3, FIG. 3 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
本发明实施例终端可以是PC,也可以是智能手机、平板电脑、MP3(Moving Picture Experts
Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group
Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、便携计算机等终端设备。In the embodiment of the present invention, the terminal may be a PC, or may be a smart phone, a tablet computer, or an MP3 (Moving Picture Experts).
Group Audio Layer III, motion picture expert compression standard audio layer 3) player, MP4 (Moving Picture Experts Group
Audio Layer IV, dynamic imaging experts compress standard audio layers 3) terminal devices such as players and portable computers.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile
memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile)
Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
可选地,终端还可以包括摄像头、RF(Radio
Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, RF (Radio)
Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more. Among them, sensors such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
本领域技术人员可以理解,图3中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the terminal structure shown in FIG. 3 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
如图3所示,作为一种计算机存储介质的存储器1005中可以包括操作***、网络通信模块、用户接口模块以及音频播放程序。As shown in FIG. 3, an operating system, a network communication module, a user interface module, and an audio playback program may be included in the memory 1005 as a computer storage medium.
在图3所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的音频播放程序,并执行如上述所述的音频播放方法的步骤。In the terminal shown in FIG. 3, the network interface 1004 is mainly used to connect to the background server for data communication with the background server; the user interface 1003 is mainly used for connecting the client (user end), and performing data communication with the client; 1001 can be used to invoke an audio playback program stored in memory 1005 and perform the steps of the audio playback method as described above.
本发明音频播放终端的具体实施例同上述音频播放方法的各个实施例基本相同,在此不做赘述。The specific embodiment of the audio playback terminal of the present invention is basically the same as the foregoing embodiments of the audio playback method, and details are not described herein.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有音频播放程序,所述音频播放程序被处理器执行时实现如上述所述的音频播放方法的步骤。In addition, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores an audio playing program, and when the audio playing program is executed by the processor, the audio playing method as described above is implemented. step.
本发明计算机可读存储介质具体实施例同上述音频播放方法的各个实施例基本相同,在此不做赘述。The specific embodiment of the computer readable storage medium of the present invention is substantially the same as the embodiment of the audio playback method described above, and is not described herein.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者***不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者***所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者***中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (20)
- 一种音频播放方法,其特征在于,所述音频播放方法包括: An audio playing method, wherein the audio playing method comprises:检测当前环境是否适宜播放音频;Detect whether the current environment is suitable for playing audio;若当前环境适宜播放音频,则根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准;If the current environment is suitable for playing audio, the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained;对当前播放的音频对应的响度曲线进行去噪处理,得到当前播放的音频对应的播放效果响度曲线;Denoising the loudness curve corresponding to the currently played audio to obtain a playback effect loudness curve corresponding to the currently played audio;当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量。When it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard, the prompt information is used to prompt the user to adjust the play volume.
- 如权利要求1所述的音频播放方法,其特征在于,所述检测当前环境是否适宜播放音频包括:The audio playing method according to claim 1, wherein the detecting whether the current environment is suitable for playing audio comprises:获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的特征频带响度曲线;Acquiring the ambient noise collected by the sound collection device in the preset time period, and acquiring the characteristic frequency band loudness curve corresponding to the environmental noise according to the ambient noise;根据所述特征频带响度曲线,获取所述特征频带响度曲线中大于预设响度阈值部分对应的总时长;Obtaining, according to the characteristic frequency band loudness curve, a total duration corresponding to a portion of the characteristic frequency band loudness curve that is greater than a preset loudness threshold portion;检测所述总时长在所述预设时间段中的占比是否大于预设比例阈值;Detecting whether the proportion of the total duration in the preset time period is greater than a preset ratio threshold;若所述总时长在所述预设时间段中的占比大于预设比例阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the proportion of the total duration in the preset time period is greater than a preset ratio threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- 如权利要求1所述的音频播放方法,其特征在于,所述检测当前环境是否适宜播放音频还包括:The audio playing method according to claim 1, wherein the detecting whether the current environment is suitable for playing audio further comprises:获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的尖锐度曲线;Obtaining an environmental noise collected by the sound collecting device in the preset time period, and acquiring a sharpness curve corresponding to the environmental noise according to the environmental noise;检测是否存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值;Detecting whether the sharpness curve corresponds to a sharpness value greater than a preset sharpness threshold;若存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the sharpness value corresponding to the sharpness value is greater than the preset sharpness threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- 如权利要求1所述的音频播放方法,其特征在于,所述检测当前环境是否适宜播放音频之后包括:The audio playing method according to claim 1, wherein the detecting whether the current environment is suitable for playing audio comprises:若当前环境不适宜播放音频,则反馈警告信息。If the current environment is not suitable for playing audio, feedback warning message.
- 如权利要求1所述的音频播放方法,其特征在于,所述若当前环境适宜播放音频,则根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准包括:The audio playing method according to claim 1, wherein if the current environment is suitable for playing audio, the audio information to be played is retrieved according to the historical play record and played, and the playing standard corresponding to the audio information to be played is included. :若当前环境适宜播放音频,则获取当前用户的身份信息;If the current environment is suitable for playing audio, obtain the identity information of the current user;获取所述身份信息对应的历史播放记录,并根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准。Obtaining a historical play record corresponding to the identity information, and retrieving the audio information to be played according to the historical play record and playing, and acquiring a play standard corresponding to the audio information to be played.
- 如权利要求5所述的音频播放方法,其特征在于,所述播放标准包括:The audio playing method according to claim 5, wherein the playing standard comprises:所述待播放音频对应的标准特征响度曲线。The standard characteristic loudness curve corresponding to the audio to be played.
- 如权利要求1所述的音频播放方法,其特征在于,所述当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量包括:The audio playing method according to claim 1, wherein when detecting that the playback effect loudness curve exceeds the corresponding range of the play standard, the prompting information is used to prompt the user to adjust the play volume, including:当检测到所述播放效果响度曲线超出所述播放标准对应的上限时,反馈降低音量提示,用以提示用户降低播放音量。When it is detected that the playing effect loudness curve exceeds the upper limit corresponding to the playing standard, the feedback lowers the volume prompt to prompt the user to lower the playing volume.
- 如权利要求1所述的音频播放方法,其特征在于,所述当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量还包括:The audio playing method according to claim 1, wherein the detecting the loudness curve of the playing effect exceeds the corresponding range of the playing standard, and feeding back the prompting information for prompting the user to adjust the playing volume further includes:当检测到所述播放效果响度曲线超出所述播放标准对应的下限时,反馈增加音量提示,用以提示用户提高播放音量。When it is detected that the playing effect loudness curve exceeds the lower limit corresponding to the playing standard, the feedback increases the volume prompt to prompt the user to increase the playing volume.
- 一种音频播放终端,其特征在于,所述音频播放终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的音频播放程序,所述音频播放程序被所述处理器执行时实现如下步骤:An audio playing terminal, comprising: a memory, a processor, and an audio playing program stored on the memory and operable on the processor, wherein the audio playing program is The processor implements the following steps when it executes:检测当前环境是否适宜播放音频;Detect whether the current environment is suitable for playing audio;若当前环境适宜播放音频,则根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准;If the current environment is suitable for playing audio, the audio information to be played is retrieved according to the historical play record and played, and the play standard corresponding to the audio information to be played is obtained;对当前播放的音频对应的响度曲线进行去噪处理,得到当前播放的音频对应的播放效果响度曲线;Denoising the loudness curve corresponding to the currently played audio to obtain a playback effect loudness curve corresponding to the currently played audio;当检测到所述播放效果响度曲线超出所述播放标准对应范围时,反馈提示信息,用以提示用户调整播放音量。When it is detected that the playback effect loudness curve exceeds the corresponding range of the play standard, the prompt information is used to prompt the user to adjust the play volume.
- 如权利要求9所述的音频播放终端,其特征在于,所述音频播放程序被所述处理器执行时还实现如下步骤:The audio playing terminal according to claim 9, wherein said audio playing program is further executed by said processor:获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的特征频带响度曲线;Acquiring the ambient noise collected by the sound collection device in the preset time period, and acquiring the characteristic frequency band loudness curve corresponding to the environmental noise according to the ambient noise;根据所述特征频带响度曲线,获取所述特征频带响度曲线中大于预设响度阈值部分对应的总时长;Obtaining, according to the characteristic frequency band loudness curve, a total duration corresponding to a portion of the characteristic frequency band loudness curve that is greater than a preset loudness threshold portion;检测所述总时长在所述预设时间段中的占比是否大于预设比例阈值;Detecting whether the proportion of the total duration in the preset time period is greater than a preset ratio threshold;若所述总时长在所述预设时间段中的占比大于预设比例阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the proportion of the total duration in the preset time period is greater than a preset ratio threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- 如权利要求9所述的音频播放终端,其特征在于,所述音频播放程序被所述处理器执行时还实现如下步骤:The audio playing terminal according to claim 9, wherein said audio playing program is further executed by said processor:获取预设时间段内声音采集装置采集到的环境噪声,根据所述环境噪声,获取所述环境噪声对应的尖锐度曲线;Obtaining an environmental noise collected by the sound collecting device in the preset time period, and acquiring a sharpness curve corresponding to the environmental noise according to the environmental noise;检测是否存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值;Detecting whether the sharpness curve corresponds to a sharpness value greater than a preset sharpness threshold;若存在所述尖锐度曲线对应尖锐度数值大于预设尖锐度阈值,则当前环境不适宜播放音频,否则当前环境适宜播放音频。If the sharpness value corresponding to the sharpness value is greater than the preset sharpness threshold, the current environment is not suitable for playing audio, otherwise the current environment is suitable for playing audio.
- 如权利要求9所述的音频播放终端,其特征在于,所述音频播放程序被所述处理器执行时还实现如下步骤:The audio playing terminal according to claim 9, wherein said audio playing program is further executed by said processor:若当前环境不适宜播放音频,则反馈警告信息。If the current environment is not suitable for playing audio, feedback warning message.
- 如权利要求9所述的音频播放终端,其特征在于,所述音频播放程序被所述处理器执行时还实现如下步骤:The audio playing terminal according to claim 9, wherein said audio playing program is further executed by said processor:若当前环境适宜播放音频,则获取当前用户的身份信息;If the current environment is suitable for playing audio, obtain the identity information of the current user;获取所述身份信息对应的历史播放记录,并根据历史播放记录调取待播放音频信息并播放,获取所述待播放音频信息对应的播放标准。Obtaining a historical play record corresponding to the identity information, and retrieving the audio information to be played according to the historical play record and playing, and acquiring a play standard corresponding to the audio information to be played.
- 如权利要求9所述的音频播放终端,其特征在于,所述音频播放程序被所述处理器执行时还实现如下步骤:The audio playing terminal according to claim 9, wherein said audio playing program is further executed by said processor:所述待播放音频对应的标准特征响度曲线。The standard characteristic loudness curve corresponding to the audio to be played.
- 如权利要求9所述的音频播放终端,其特征在于,所述音频播放程序被所述处理器执行时还实现如下步骤:The audio playing terminal according to claim 9, wherein said audio playing program is further executed by said processor:当检测到所述播放效果响度曲线超出所述播放标准对应的上限时,反馈降低音量提示,用以提示用户降低播放音量。When it is detected that the playing effect loudness curve exceeds the upper limit corresponding to the playing standard, the feedback lowers the volume prompt to prompt the user to lower the playing volume.
- 如权利要求9所述的音频播放终端,其特征在于,所述音频播放程序被所述处理器执行时还实现如下步骤:The audio playing terminal according to claim 9, wherein said audio playing program is further executed by said processor:当检测到所述播放效果响度曲线超出所述播放标准对应的下限时,反馈增加音量提示,用以提示用户提高播放音量。When it is detected that the playing effect loudness curve exceeds the lower limit corresponding to the playing standard, the feedback increases the volume prompt to prompt the user to increase the playing volume.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有音频播放程序,所述音频播放程序被处理器执行时实现如权利要求1所述的音频播放方法的步骤。A computer readable storage medium, characterized in that the computer readable storage medium stores an audio playback program, the audio playback program being executed by a processor to implement the steps of the audio playback method of claim 1.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有音频播放程序,所述音频播放程序被处理器执行时实现如权利要求2所述的音频播放方法的步骤。A computer readable storage medium, characterized in that the computer readable storage medium stores an audio playing program, and the audio playing program is executed by a processor to implement the steps of the audio playing method according to claim 2.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有音频播放程序,所述音频播放程序被处理器执行时实现如权利要求3所述的音频播放方法的步骤。A computer readable storage medium, characterized in that the computer readable storage medium stores an audio playback program, and the audio playback program is executed by a processor to implement the steps of the audio playback method according to claim 3.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有音频播放程序,所述音频播放程序被处理器执行时实现如权利要求4所述的音频播放方法的步骤。 A computer readable storage medium, characterized in that the computer readable storage medium stores an audio playback program, the audio playback program being executed by a processor to implement the steps of the audio playback method of claim 4.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710323857.0A CN107247572B (en) | 2017-05-08 | 2017-05-08 | Audio playing method, terminal and computer readable storage medium |
CN201710323857.0 | 2017-05-08 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018205423A1 true WO2018205423A1 (en) | 2018-11-15 |
Family
ID=60016568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/094934 WO2018205423A1 (en) | 2017-05-08 | 2017-07-28 | Method and terminal for playing audio, and computer-readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107247572B (en) |
WO (1) | WO2018205423A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196820B (en) * | 2018-01-31 | 2019-10-18 | 百度在线网络技术(北京)有限公司 | Method and apparatus for adjusting play parameter |
CN108418961B (en) * | 2018-02-13 | 2021-07-30 | 维沃移动通信有限公司 | Audio playing method and mobile terminal |
WO2019178809A1 (en) * | 2018-03-22 | 2019-09-26 | 华为技术有限公司 | Method for adjusting volume, and electronic device |
CN108647005A (en) * | 2018-05-15 | 2018-10-12 | 努比亚技术有限公司 | Audio frequency playing method, mobile terminal and computer readable storage medium |
CN109511037B (en) * | 2018-12-19 | 2023-05-19 | 努比亚技术有限公司 | Earphone volume adjusting method and device and computer readable storage medium |
CN109658942B (en) * | 2018-12-27 | 2021-04-30 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio data processing method and device and related equipment |
CN110928518B (en) * | 2019-11-26 | 2020-12-25 | 北京达佳互联信息技术有限公司 | Audio data processing method and device, electronic equipment and storage medium |
CN110809219B (en) * | 2019-11-26 | 2021-06-01 | 广州酷狗计算机科技有限公司 | Method, device and equipment for playing audio and storage medium |
CN113329315B (en) * | 2021-05-24 | 2022-11-11 | 歌尔股份有限公司 | Detection method, device and equipment of audio playing equipment and storage medium |
CN113757928A (en) * | 2021-08-02 | 2021-12-07 | 珠海格力电器股份有限公司 | Voice broadcast volume control method and device for voice air conditioner and voice air conditioner |
CN114900766A (en) * | 2022-04-19 | 2022-08-12 | 合肥龙旗智能科技有限公司 | Volume adjusting method, volume adjusting device and computer readable storage medium |
CN117459864B (en) * | 2023-10-25 | 2024-04-05 | 广州市杰泰电子科技有限公司 | Wireless microphone system capable of automatically adjusting transmitting power |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120039489A1 (en) * | 2010-08-11 | 2012-02-16 | Yi-Chiung Chen | Volume control method and electronic device capable of automatic volume adjustment |
CN102610232A (en) * | 2012-01-10 | 2012-07-25 | 天津大学 | Method for adjusting self-adaptive audio sensing loudness |
CN106126163A (en) * | 2016-06-16 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of method adjusting audio and terminal |
CN106331338A (en) * | 2016-08-22 | 2017-01-11 | 北京小米移动软件有限公司 | Volume adjusting method and device |
CN106528036A (en) * | 2016-10-09 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Volume adjusting method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8103008B2 (en) * | 2007-04-26 | 2012-01-24 | Microsoft Corporation | Loudness-based compensation for background noise |
CN104010147B (en) * | 2014-04-29 | 2017-11-07 | 京东方科技集团股份有限公司 | Automatically adjust the method and audio playing apparatus of audio frequency broadcast system volume |
-
2017
- 2017-05-08 CN CN201710323857.0A patent/CN107247572B/en active Active
- 2017-07-28 WO PCT/CN2017/094934 patent/WO2018205423A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120039489A1 (en) * | 2010-08-11 | 2012-02-16 | Yi-Chiung Chen | Volume control method and electronic device capable of automatic volume adjustment |
CN102610232A (en) * | 2012-01-10 | 2012-07-25 | 天津大学 | Method for adjusting self-adaptive audio sensing loudness |
CN106126163A (en) * | 2016-06-16 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of method adjusting audio and terminal |
CN106331338A (en) * | 2016-08-22 | 2017-01-11 | 北京小米移动软件有限公司 | Volume adjusting method and device |
CN106528036A (en) * | 2016-10-09 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Volume adjusting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107247572B (en) | 2020-02-07 |
CN107247572A (en) | 2017-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018205423A1 (en) | Method and terminal for playing audio, and computer-readable storage medium | |
WO2018205413A1 (en) | Audio volume adjustment method and terminal, and computer-readable storage medium | |
WO2018205424A1 (en) | Biometric identification method and terminal based on myoelectricity, and computer-readable storage medium | |
WO2020124845A1 (en) | Video parameter adjustment method and apparatus based on voiceprint recognition, and readable storage medium | |
WO2020215373A1 (en) | Health monitoring method, system, and computer-readable storage medium | |
WO2020057227A1 (en) | Television sound adjustment method, television set, and storage medium | |
WO2013157848A1 (en) | Method of displaying multimedia exercise content based on exercise amount and multimedia apparatus applying the same | |
CN109511037A (en) | Earpiece volume adjusting method, device and computer readable storage medium | |
WO2020133765A1 (en) | Fitness management method, device, and computer readable storage medium | |
WO2016036143A1 (en) | Multimedia data processing method of electronic device and electronic device thereof | |
WO2020155088A1 (en) | Noise reduction method for earphone, smart bluetooth earphone and computer-readable storage medium | |
WO2014139296A1 (en) | Method and apparatus for notifying dangerous information, and computer readable storage medium | |
CN113194395B (en) | Parameter adjusting method, device and system of auxiliary listening equipment and readable storage medium | |
WO2020253115A1 (en) | Voice recognition-based product recommendation method, apparatus and device, and storage medium | |
WO2019233190A1 (en) | Display terminal-based text-to-speech conversion method, display terminal, and storage medium | |
CN109862430B (en) | Multimedia playing method and terminal equipment | |
WO2020189837A1 (en) | Apparatus and method for operating wearable device | |
WO2021056766A1 (en) | Video screen capture method, terminal, and computer-readable storage medium | |
WO2020106104A1 (en) | Electronic device for providing meditation contents and operating method thereof | |
WO2018076880A1 (en) | Data backup method, apparatus, storage medium, and terminal | |
WO2021103449A1 (en) | Interaction method, mobile terminal and readable storage medium | |
WO2019114587A1 (en) | Information processing method and apparatus for virtual reality terminal, and readable storage medium | |
WO2021103724A1 (en) | Television sound and picture synchronous self-tuning method and device and storage medium | |
WO2021017332A1 (en) | Voice control error reporting method, electrical appliance and computer-readable storage medium | |
WO2020113850A1 (en) | Implementation method for call-based authentication system, system, and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17909571 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17909571 Country of ref document: EP Kind code of ref document: A1 |