WO2020113473A1 - 音频播放的控制方法、装置、终端及计算机可读存储介质 - Google Patents

音频播放的控制方法、装置、终端及计算机可读存储介质 Download PDF

Info

Publication number
WO2020113473A1
WO2020113473A1 PCT/CN2018/119381 CN2018119381W WO2020113473A1 WO 2020113473 A1 WO2020113473 A1 WO 2020113473A1 CN 2018119381 W CN2018119381 W CN 2018119381W WO 2020113473 A1 WO2020113473 A1 WO 2020113473A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
played
audio
playback
control mode
Prior art date
Application number
PCT/CN2018/119381
Other languages
English (en)
French (fr)
Inventor
林进全
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880098332.4A priority Critical patent/CN112789576A/zh
Priority to PCT/CN2018/119381 priority patent/WO2020113473A1/zh
Publication of WO2020113473A1 publication Critical patent/WO2020113473A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer

Definitions

  • the present application belongs to the technical field of electronic equipment, and particularly relates to an audio playback control method, device, terminal, and computer-readable storage medium.
  • terminals such as mobile phones to listen to music while doing other things.
  • Embodiments of the present application provide an audio playback control method, device, terminal, and computer-readable storage medium, which can solve the technical problem of low efficiency of traditional audio playback control operations.
  • a first aspect of embodiments of the present application provides a method for controlling audio playback, including:
  • the ultrasonic signal of the preset frequency is played while the audio signal to be played is played;
  • a second aspect of an embodiment of the present application provides an audio playback control device, including:
  • the detection unit is used to detect whether the current audio playback mode of the terminal is the speaker playback mode
  • the playback unit is used to play an ultrasonic signal of a preset frequency while the audio signal to be played is played when the current audio playback mode of the terminal is the speaker playback mode;
  • a changing unit configured to receive the reflected signal of the ultrasonic signal and identify whether the reflected signal has a Doppler frequency shift; if the reflected signal has a Doppler frequency shift, change the playback of the audio signal to be played status.
  • a third aspect of the embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, the following steps are implemented:
  • the ultrasonic signal of the preset frequency is played while the audio signal to be played is played;
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to the first aspect described above are implemented.
  • FIG. 1 is a schematic diagram of an implementation process of a method for controlling audio playback provided by an embodiment of the present application
  • step 103 of the audio playback control method provided by an embodiment of the present application
  • step 103 of the audio playback control method provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a control mode setting interface provided by an embodiment of the present application.
  • step 307 of the audio playback control method provided by an embodiment of the present application
  • step 103 of the audio playback control method provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an audio playback control device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the preset frequency can be played while the audio signal to be played is played.
  • the ultrasonic signal realizes the control of the playback state of the audio signal to be played according to whether the reflected signal of the ultrasonic signal has a Doppler frequency shift, and the user does not need to open the audio or video playback interface to control the audio playback , Improve the operation efficiency of audio playback control.
  • FIG. 1 shows a schematic flowchart of an audio playback control method provided by an embodiment of the present application.
  • the control method is applied to a terminal, and may be executed by an audio playback control device configured on the terminal.
  • the audio playback control device may Realized by hardware and/or software, it is suitable for situations where audio playback control needs to be performed efficiently and conveniently.
  • the audio playback control method may include steps 101 to 103.
  • Step 101 Detect whether the current audio playback mode of the terminal is the speaker playback mode.
  • the terminal includes terminal devices such as a smart phone, a tablet computer, a personal digital assistant (PDA), a learning machine, MP3, MP4, and a portable multimedia player (PMP).
  • the terminal device may be installed with applications such as an audio player, a video player, WeChat, Game A, Game B, e-book reader, and browser.
  • the audio player may include: Kugou music, NetEase cloud music, QQ music, and the audio player that comes with the terminal.
  • the audio playback mode of the terminal may include a speaker playback mode, a headset playback mode, and an earpiece playback mode.
  • the earpiece playback mode is suitable for audio playback that requires privacy protection, such as answering calls
  • the speaker playback mode and the headset playback mode are suitable for audio playback of audio players and video players.
  • the earphone can be plugged in.
  • the audio playback mode of the terminal is the earphone mode; when the terminal is not plugged in for music playback, the time The audio playback mode of the terminal is the speaker mode.
  • Step 102 if the current audio playback mode of the terminal is the speaker playback mode, the ultrasonic signal of the preset frequency is played while the audio signal to be played is played.
  • the audio signal to be played refers to an audio signal that needs to be played normally and can be perceived by the user's ears during playback, for example, audio signals such as music and broadcast.
  • the frequency range of the sound that can be heard by the human ear is about 20 Hz to 20000 Hz
  • the audio signal with a frequency greater than 20000 Hz is an ultrasonic signal.
  • the preset frequency for playback is played while the audio signal is to be played The ultrasonic signal will not be heard by the human ear, that is, it will not affect the playback quality of the normal audio signal.
  • the preset frequency of the ultrasonic signal only needs to be greater than 20000 Hz.
  • the preset frequency of the ultrasonic signal may be 25000 Hz or 25500 Hz.
  • the playing of the ultrasonic signal of a preset frequency while the audio signal to be played may include: mixing the audio signal to be played with the ultrasonic signal of the preset frequency and playing.
  • the audio signal to be played and the ultrasonic signal of the preset frequency are mixed into one audio playback signal and played.
  • Step 103 Receive the reflected signal of the ultrasonic signal and identify whether the reflected signal has a Doppler frequency shift. If the reflected signal has a Doppler frequency shift, change the playback state of the audio signal to be played.
  • Doppler frequency shift refers to the change in the phase and frequency of the wavelength of an object's radiation due to the relative motion of the wave source and the observer.
  • the wave In front of the moving wave source, the wave is compressed, the wavelength becomes shorter, and the frequency becomes higher.
  • the motion is behind the wave source, the opposite effect is produced, the wavelength becomes longer, and the frequency becomes lower.
  • the whistle sound becomes stronger and the pitch becomes higher.
  • the whistle sound becomes weaker and the pitch becomes lower; this is due to the relative movement between the vibration source and the observer, which makes the observer
  • the phenomenon that the frequency of the sound heard is different from the frequency of the vibration source is the frequency shift phenomenon.
  • the sound that the observer hears will change.
  • the wavelength of the sound wave increases and the pitch becomes deeper.
  • the wavelength of the sound wave decreases and the pitch becomes higher.
  • the change in pitch is related to the ratio of the relative velocity between the sound source and the observer and the speed of sound. The larger the ratio, the more significant the change.
  • the frequency relationship between the observer and the source is: f'is the observed frequency; f is the original emission frequency from which the emission originates in the medium; where, v is the speed of the wave traveling in the medium; v 0 is the movement speed of the observer, and if it is close to the emission source, the forward operation symbol is + Sign, otherwise it is-sign; v s is the moving speed of the source, if it is close to the observer, the operation symbol in front is-sign, otherwise it is + sign.
  • the reflected signal of the ultrasonic signal by receiving the reflected signal of the ultrasonic signal and identifying whether the reflected signal has a Doppler frequency shift, when the reflected signal has a Doppler frequency shift, it indicates that an object is close to or far from the terminal. Can change the playback state of the audio signal to be played according to the Doppler frequency shift of the reflected signal, so that the user does not need to open the audio or video playback interface for audio playback control operation, which improves audio playback control Operating efficiency.
  • the terminal when the user starts the audio player or video player to play audio, the terminal is triggered to detect whether the current audio playback mode of the terminal is the speaker playback mode, and when the current audio playback mode of the terminal is the speaker playback mode, the audio signal to be played is played. At the same time, the ultrasonic signal of the preset frequency is played, and the reflected signal of the ultrasonic signal is received through the microphone. At this time, when the user needs to pause the audio playback or turn off the audio playback, the user can quickly change the reflected signal by bringing the palm of the hand close to the terminal.
  • Frequency that is, the Doppler frequency shift of the reflected signal
  • the terminal can control the pause playback of the audio signal to be played, or close the playback.
  • the user does not need to open the audio or video playback interface for audio playback control operation, which improves the operation efficiency of audio playback control.
  • the changing the playback state of the audio signal to be played may include: changing the playback state of the audio signal to be played according to an audio playback control object preset by the terminal.
  • the control objects of audio playback may include: pausing playback of the audio signal to be played, closing playback of the audio signal to be played, adjusting the sound intensity of the audio signal to be played, switching audio to the previous audio, and Switch the audio to the next audio.
  • identifying whether the reflected signal has a Doppler frequency shift may include steps 201 to 203.
  • Step 201 Obtain a frequency domain signal corresponding to the reflected signal.
  • performing Fourier transform or fast Fourier transform on the reflected signal to obtain a frequency domain signal corresponding to the reflected signal.
  • Step 202 Calculate the difference between the signal strength of the first preset frequency band and the signal strength of the second preset frequency band in the frequency domain signal.
  • step 203 if the difference is greater than the first preset threshold, it is confirmed that a Doppler frequency shift occurs in the reflected signal.
  • the ultrasonic signal of the preset frequency is 25500 Hz
  • the difference between the signal strength of the audio signal in the frequency domain signal of 24000 Hz to 25500 Hz and the audio signal of 25500 Hz to 27000 Hz is calculated, if the difference is greater than the first preset Threshold, it is confirmed that the Doppler frequency shift of the reflected signal occurs.
  • the value of the first preset threshold can be calculated according to practical experience.
  • the audio is switched to the next audio or the audio signal to be played is reduced Sound intensity; if the signal strength of the audio signal of 24000Hz-25500Hz is less than the audio signal of 25500Hz-27000Hz, and the difference is greater than the first preset threshold, switch the audio to the previous audio or increase the sound of the audio signal to be played strength.
  • the user can quickly move away from the terminal through the palm of the hand, switch the audio to the next audio or reduce the sound intensity of the audio signal to be played, quickly approach the terminal by the palm of the hand, switch the audio to the previous audio or increase the to-be-played The sound intensity of the audio signal.
  • the difference is greater than the first preset threshold
  • the playback of the audio signal to be played is suspended, or the playback of the audio signal to be played is closed, if When the audio signal to be played is in a paused playing state, the audio signal to be played is continued to be played.
  • the above step 103 may further include: steps 301 to 302.
  • Step 301 if the current audio playback mode of the terminal is the speaker playback mode, the control mode of audio playback is acquired.
  • Step 302 If the control mode of the audio playback is the preset first gesture control mode, the ultrasonic signal of the preset frequency is played while the audio signal to be played is played.
  • the above-mentioned preset first gesture control mode may refer to a gesture of a palm or other object quickly approaching the terminal or moving away from the terminal.
  • the control mode of the audio playback of the terminal is the preset first gesture control mode, it indicates that it is possible to detect whether an object is close to or away from the terminal by playing the ultrasonic signal. Therefore, while the audio signal is to be played, the preset frequency is played In order to control the playback state of the audio signal to be played according to the reflected signal.
  • step 303 to step 305 may also be included.
  • Step 303 If the control mode of the audio playback is not the preset first gesture control mode, load the setting interface of the control mode.
  • Step 304 Reset the control mode of the audio playback of the terminal according to the control mode setting instruction received in the control mode setting interface.
  • Step 305 If the reset audio playback control mode is the preset first gesture control mode, the ultrasonic signal with the preset frequency is played while the audio signal to be played is played.
  • FIG. 4 it is a schematic diagram of a control mode setting interface provided by an embodiment of the present application.
  • the setting interface 40 of the control mode may be provided with a first gesture control mode selection control, a second gesture control mode selection control, and a standard control mode selection control.
  • the second gesture control mode selection control When the second gesture control mode selection control is selected, it indicates that the audio playback control mode is to control the audio playback state according to the echo intensity of the sound hole of the speaker; when the standard control mode selection control is selected, it indicates The audio playback control mode is to control the audio playback state by receiving a trigger instruction in the audio playback interface.
  • the setting interface 40 of the control mode shown in FIG. 4 is loaded to remind the user to set the control mode of the audio playback, And receive the user's setting operation on the setting interface 40, and if the re-set audio playback control mode is the preset first gesture control mode, the preset frequency is played while the audio signal is to be played Ultrasonic signal.
  • the method may further include: step 306 To step 308.
  • Step 306 If the reset audio playback control mode is the preset second gesture control mode, the echo intensity of the sound hole of the speaker is acquired while the audio signal is to be played.
  • the echo intensity reflected by the audio signal to be played back by the speaker is detected in real time.
  • Step 307 Determine whether the sound outlet of the speaker is blocked according to the echo intensity.
  • the judging whether the sound output hole of the speaker is blocked according to the echo intensity may include judging according to whether the echo intensity is greater than a third preset threshold.
  • the sound output hole of the speaker is blocked, and if the echo intensity is less than or equal to the third preset threshold, the sound output hole of the speaker is not blocked.
  • the third preset threshold may be a preset threshold set according to practical experience.
  • the third preset threshold value is the echo intensity corresponding to a user who can play normal hearing in a quiet environment when the sound hole of the speaker is partially blocked by the user's hand.
  • the judging whether the sound output hole of the speaker is blocked according to the echo intensity may further include: steps 501 to 503.
  • Step 501 Obtain the signal strength of the audio signal to be played
  • Step 502 Determine whether the ratio of the echo intensity of the sound hole of the speaker to the signal intensity of the audio signal to be played is greater than a second preset threshold
  • Step 503 If the ratio of the echo intensity of the sound outlet of the speaker to the signal strength of the audio signal to be played is greater than the second preset threshold, it is determined that the sound outlet of the speaker is blocked.
  • the echo intensity of the sound hole of the speaker is related to the voice intensity of the voice played by the speaker, the greater the voice intensity of the voice played by the speaker, the greater the echo intensity of the sound hole of the speaker under the same congestion situation, so, pass According to the ratio of the echo intensity of the sound hole of the speaker to the signal strength of the audio signal to be played, it is determined whether the sound hole of the speaker is blocked. Compared with the use of the echo intensity to determine whether the sound hole of the speaker is blocked, it has More precise features.
  • the above second preset threshold may be a preset threshold set according to practical experience.
  • the above second preset threshold is when the sound output hole of the speaker is partially blocked by the user's hand, the echo intensity corresponding to the voice that the user with normal hearing can hear clearly in a quiet environment and the audio signal to be played The ratio of signal strength.
  • Step 308 if the sound outlet of the speaker is blocked, the playing state of the audio signal to be played is changed.
  • the playback of the audio signal to be played is suspended or the playback of the audio signal to be played is closed.
  • step 103 after changing the playback state of the audio signal to be played, it may include: steps 601 to 603.
  • Step 601 Play an ultrasonic signal of a preset frequency after the first preset time interval.
  • Step 602 Receive a reflected signal of the ultrasonic signal and identify whether the reflected signal has a Doppler frequency shift within a second preset time period.
  • Step 603 If the Doppler frequency shift occurs in the reflected signal within the second preset time period, then the playback of the audio signal to be played is resumed.
  • the user can quickly approach the terminal through the palm of his hand, for example, by waving his hand back and forth in front of the terminal, the Doppler frequency shift of the reflected signal of the ultrasonic signal occurs, and the playback state of the audio signal to be played is realized change.
  • the user quickly approaches the terminal with his palm or waves his hand back and forth in front of the terminal, so that the Doppler frequency shift of the reflected signal of the ultrasonic signal occurs, and the terminal has shifted according to the Doppler shift of the reflected signal
  • the terminal After changing the playback state of the audio signal to be played, it is possible that the user is still approaching or waving, causing the terminal to continue to play the ultrasonic signal of the preset frequency after changing the playback state of the audio signal to be played.
  • the reflected signal with Doppler frequency shift is received again.
  • the terminal executes back and forth to change the playback state of the audio signal to be played back and restore the misoperation of playing the audio signal to be played back.
  • the audio signal to be played back is changed After the playback state of, you can play the ultrasonic signal of the preset frequency after the first preset time period, for example, the first preset time period can be 5s, 7s or 10s, and then, in the second preset time period If it is recognized that the reflected signal has a Doppler frequency shift, the playback of the audio signal to be played is resumed.
  • the second preset time period may be a time period set by default when the terminal is shipped from the factory, or may be a time period set by a user, for example, 5 minutes or 10 minutes.
  • step 602 if the Doppler frequency shift does not occur within the second preset time period for the reflected signal, the application for audio playback is closed.
  • the Doppler frequency shift of the reflected signal of the ultrasonic signal when the Doppler frequency shift of the reflected signal of the ultrasonic signal does not appear in the second preset time period, it indicates that the user may need to directly turn off audio playback instead of performing a pause operation. Therefore, By performing the operation of closing the audio playback application, the power consumption of the terminal is reduced.
  • the above-mentioned applications for audio playback may include applications such as audio players and video players that can output audio.
  • the method includes: putting the terminal into a screen-off state.
  • the terminal Since the application for audio playback is closed, the terminal may be in a bright screen state at this time. Therefore, after closing the application for audio playback, the terminal may be turned off to further reduce Power consumption of the terminal.
  • FIG. 7 shows a schematic structural diagram of an audio playback control device 700 provided by an embodiment of the present application, including a detection unit 701, a playback unit 702, and a change unit 703.
  • the detection unit 701 is configured to detect whether the current audio playback mode of the terminal is the speaker playback mode
  • the playback unit 702 is configured to play an ultrasonic signal of a preset frequency while the audio signal to be played is played while the current audio playback mode of the terminal is the speaker playback mode;
  • the changing unit 703 is configured to receive the reflected signal of the ultrasonic signal and identify whether the reflected signal has a Doppler frequency shift; if the reflected signal has a Doppler frequency shift, change the frequency of the audio signal to be played Play status.
  • the present application provides a terminal for implementing the above audio playback control method.
  • the terminal may be a smartphone, tablet computer, personal computer (PC), personal digital assistant (PDA), learning machine, etc.
  • the terminal includes: a processor 81, a memory 82, one or more input devices 83 (only one shown in FIG. 8) and one or more output devices 84 (only one shown in FIG. 8).
  • the processor 81, memory 82, input device 83, and output device 84 are connected by a bus 85.
  • the memory 82 stores a computer program, and the computer program may run on the processor 81.
  • the processor executes the computer program, the following steps are implemented:
  • the ultrasonic signal of the preset frequency is played while the audio signal to be played is played;
  • the processor also implements the following steps when executing the computer program:
  • the audio playback control mode is obtained
  • control mode of the audio playback is the preset first gesture control mode
  • the ultrasonic signal of the preset frequency is played while the audio signal to be played is played.
  • the processor further implements the following steps when executing the computer program:
  • the setting interface of the control mode is loaded;
  • the reset audio playback control mode is the preset first gesture control mode
  • the ultrasonic signal of the preset frequency is played while the audio signal is to be played.
  • control mode for audio playback of the terminal according to the control mode setting instruction received in the control mode setting interface
  • the processor also implements the following steps when executing the computer program:
  • the reset audio playback control mode is the preset second gesture control mode, the echo intensity of the sound hole of the speaker is obtained while the audio signal is to be played;
  • the processor further implements the following steps when executing the computer program:
  • the ratio of the echo intensity of the sound outlet of the speaker to the signal strength of the audio signal to be played is greater than the second preset threshold, it is determined that the sound outlet of the speaker is blocked.
  • the audio signal to be played and the ultrasonic signal of the preset frequency are mixed and played.
  • the so-called processor 81 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP) , Application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 83 may include a keyboard, a touchpad, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, etc.
  • the output device 84 may include a display, a speaker, and the like.
  • the memory 82 may include a read-only memory and a random access memory, and provide instructions and data to the processor 81. Part or all of the memory 81 may also include non-volatile random access memory. For example, the memory 82 may also store device type information.
  • each functional unit and module is used as an example for illustration.
  • the above-mentioned functions can be allocated by different functional units
  • Module completion means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
  • the functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may use hardware It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
  • the disclosed device/terminal and method may be implemented in other ways.
  • the device/terminal embodiments described above are only schematic.
  • the division of the modules or units is only a division of logical functions.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing relevant hardware.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments may be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form.
  • the computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (Read-Only Memory, ROM) , Random Access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals and software distribution media, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunications signals and software distribution media, etc.
  • the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media Does not include electrical carrier signals and telecommunications signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

一种音频播放的控制方法、装置、终端及计算机可读存储介质,其中,所述方法包括:检测终端当前的音频播放模式是否为扬声器播放模式(101);若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号(102);接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态(103);用户不需要打开音频或视频的播放界面进行音频播放的控制操作,提高了音频播放控制的操作效率。

Description

音频播放的控制方法、装置、终端及计算机可读存储介质 技术领域
本申请属于电子设备技术领域,尤其涉及一种音频播放的控制方法、装置、终端及计算机可读存储介质。
背景技术
目前,大多用户习惯于利用手机等终端一边听音乐,一边做其他事情。
然而,在需要进行音乐的播放控制时,一般需要打开音频播放界面进行音乐播放的控制操作,具有操作效率低的缺点。
发明内容
本申请实施例提供一种音频播放的控制方法、装置、终端及计算机可读存储介质,可以解决传统的音频播放控制操作效率低的技术问题。
本申请实施例第一方面提供一种音频播放的控制方法,包括:
检测终端当前的音频播放模式是否为扬声器播放模式;
若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
本申请实施例第二方面提供一种音频播放的控制装置,包括:
检测单元,用于检测终端当前的音频播放模式是否为扬声器播放模式;
播放单元,用于若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
改变单元,用于接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
本申请实施例第三方面提供一种终端,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如下步骤:
检测终端当前的音频播放模式是否为扬声器播放模式;
若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移; 若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
本申请实施例第四方面提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述第一方面所述方法的步骤。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1是本申请实施例提供的音频播放的控制方法的实现流程示意图;
图2是本申请实施例提供的音频播放的控制方法的步骤103的第一具体实现流程示意图;
图3是本申请实施例提供的音频播放的控制方法的步骤103的第二具体实现流程示意图;
图4是本申请实施例提供的控制模式的设置界面的示意图;
图5是本申请实施例提供的音频播放的控制方法的步骤307的具体实现流程示意图;
图6是本申请实施例提供的音频播放的控制方法的步骤103的第三具体实现流程示意图;
图7是本申请实施例提供的音频播放的控制装置的结构示意图;
图8是本申请实施例提供的终端的结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该” 意在包括复数形式。
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。
本申请实施例中,通过检测终端当前的音频播放模式是否为扬声器播放模式,使得在终端当前的音频播放模式为扬声器播放模式时,可以通过在待播放音频信号进行播放的同时,播放预设频率的超声波信号,实现根据所述超声波信号的反射信号是否出现多普勒频移,对所述待播放音频信号进行播放状态的控制,用户不需要打开音频或视频的播放界面进行音频播放的控制操作,提高了音频播放控制的操作效率。
图1示出了本申请实施例提供的一种音频播放的控制方法实现流程示意图,该控制方法应用于终端,可以由终端上配置的音频播放的控制装置执行,所述音频播放的控制装置可以通过硬件和/或软件的方式实现,适用于需要高效便捷地进行音频播放控制的情形。所述音频播放的控制方法可以包括步骤101至步骤103。
步骤101,检测终端当前的音频播放模式是否为扬声器播放模式。
所述终端包括智能手机、平板电脑、个人数字助理(PDA)、学习机、MP3、MP4、便携式多媒体播放器(PMP)等终端设备。所述终端设备可以安装有音频播放器、视频播放器、微信、游戏A、游戏B、电子书阅读器和浏览器等应用。所述音频播放器可以包括:酷狗音乐、网易云音乐、QQ音乐以及所述终端自带的音频播放器。
本申请实施例中,终端的音频播放模式可以包括扬声器播放模式、耳机播放模式和听筒播放模式。其中,听筒播放模式适用于接听电话等需要进行隐私保护的音频播放,扬声器播放模式和耳机播放模式适用于音频播放器和视频播放器的音频播放。
例如,用户打开音频播放器,并选择好歌曲播放列表中的歌曲进行播放时,可以插上耳机,此时终端的音频播放模式为耳机模式;在终端未插上耳机进行音乐播放时,此时终端的音频播放模式为扬声器模式。
步骤102,若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
其中,待播放音频信号是指需要正常播放,并且在播放时可以为用户耳朵感知的音频信号,例如,音乐、广播等音频信号。
具体的,人耳能够听到的声音的频率范围大约是20Hz~20000Hz,频率大于20000Hz的音频信号为超声波信号,本申请实施例中,在对待播放音频信号进行播 放的同时,播放的预设频率的超声波信号将不能被人耳听到,即,不会影响正常的音频信号的播放质量。
可选的,上述超声波信号的预设频率只需要大于20000Hz即可,例如,上述超声波信号的预设频率可以为25000Hz或者为25500Hz。
可选的,所述在待播放音频信号进行播放的同时,播放预设频率的超声波信号,可以包括:将所述待播放音频信号与所述预设频率的超声波信号进行混合后播放。
例如,将所述待播放音频信号与所述预设频率的超声波信号进行混合成一路音频播放信号后播放。
步骤103,接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移,若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
多普勒频移是指物体辐射的波长因为波源和观测者的相对运动产生的相位和频率的变化。在运动的波源前面,波被压缩,波长变得较短,频率变得较高,当运动在波源后面时,会产生相反的效应,波长变得较长,频率变得较低。
例如,火车从远而近时汽笛声变强,音调变高,火车从近而远时汽笛声变弱,音调变低;这是由于振源与观察者之间存在着相对运动,使观察者听到的声音频率不同于振源频率的现象,这就是频移现象。
声源相对于观测者在运动时,观测者所听到的声音会发生变化。当声源离观测者而去时,声波的波长增加,音调变得低沉,当声源接近观测者时,声波的波长减小,音调就变高。音调的变化同声源与观测者间的相对速度和声速的比值有关。这一比值越大,改变就越显著。
具体的,观察者和发射源的频率关系为:
Figure PCTCN2018119381-appb-000001
f'为观察到的频率;f为发射源于该介质中的原始发射频率;其中,v为波在介质中的行进速度;v 0为观察者移动速度,若接近发射源则前方运算符号为+号,反之则为-号;v s为发射源移动速度,若接近观察者则前方运算符号为-号,反之则为+号。
本申请实施例中,通过接收超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移,在所述反射信号出现多普勒频移时,表示有物体靠近或远离终端,此时可以根据所述反射信号出现的多普勒频移,改变所述待播放音频信号的播放状态,从而实现用户不需要打开音频或视频的播放界面进行音频播放的控制操作,提 高了音频播放控制的操作效率。
例如,用户开启音频播放器或视频播放器播放音频时,触发终端检测终端当前的音频播放模式是否为扬声器播放模式,在终端当前的音频播放模式为扬声器播放模式时,对待播放音频信号进行播放的同时,播放预设频率的超声波信号,并通过麦克风接收超声波信号的反射信号,此时,用户在需要暂停音频的播放,或者关闭音频的播放时,可以通过将手掌快速靠近终端实现改变反射信号的频率,即使得反射信号出现多普勒频移,从而使得终端能够在识别到所述反射信号出现多普勒频移时,控制所述待播放音频信号的暂停播放,或者关闭播放。用户不需要打开音频或视频的播放界面进行音频播放的控制操作,提高了音频播放控制的操作效率。
在本申请的一些实施方式中,所述改变所述待播放音频信号的播放状态可以包括:根据终端预先设置的音频播放的控制对象,改变所述待播放音频信号的播放状态。例如,音频播放的控制对象可以包括:暂停对所述待播放音频信号的播放、关闭对所述待播放音频信号的播放、调整所述待播放音频信号的声音强度、将音频切换至上一音频以及将音频切换至下一音频。
可选的,如图2所示,上述步骤103中,识别所述反射信号是否出现多普勒频移,可以包括:步骤201至步骤203。
步骤201,获取所述反射信号对应的频域信号。
例如,对所述反射信号进行傅里叶变换或者快速傅里叶变换,得到所述反射信号对应的频域信号。
步骤202,计算所述频域信号中第一预设频段的信号强度与第二预设频段的信号强度的差值。
步骤203,若所述差值大于第一预设阈值,则确认所述反射信号出现多普勒频移。
例如,上述预设频率的超声波信号为25500Hz时,计算所述频域信号中24000Hz-25500Hz的音频信号的信号强度与25500Hz-27000Hz的音频信号的差值,若所述差值大于第一预设阈值,则确认所述反射信号出现多普勒频移。其中,该第一预设阈值的取值可以根据实践经验计算得到。
又例如,若24000Hz-25500Hz的音频信号的信号强度大于25500Hz-27000Hz的音频信号,且所述差值大于第一预设阈值,则将音频切换至下一音频或者降低所述待播放音频信号的声音强度;若24000Hz-25500Hz的音频信号的信号强度小于25500Hz-27000Hz的音频信号,且所述差值大于第一预设阈值,将音频切换 至上一音频或者增大所述待播放音频信号的声音强度。也就是说,用户可以通过手掌快速远离终端,将音频切换至下一音频或者降低所述待播放音频信号的声音强度,通过手掌快速靠近终端,将音频切换至上一音频或者增大所述待播放音频信号的声音强度。
又例如,所述差值大于第一预设阈值时,若正在播放所述待播放音频信号,则暂停对所述待播放音频信号的播放,或者关闭对所述待播放音频信号的播放,若所述待播放音频信号为暂停播放状态,则继续播放所述待播放音频信号。
可选的,如图3所示,上述步骤103还可以包括:步骤301至步骤302。
步骤301,若终端当前的音频播放模式为扬声器播放模式,则获取音频播放的控制模式。
步骤302,若所述音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
其中,上述预设的第一手势控制模式可以是指手掌或其他物体快速靠近终端或远离终端的手势。
在终端的音频播放的控制模式为预设的第一手势控制模式时,表示可以通过播放超声波信号检测是否有物体靠近或远离终端,因此,在待播放音频信号进行播放的同时,播放预设频率的超声波信号,以便根据所述反射信号对所述待播放音频信号的播放状态进行控制。
可选的,如图3所示,上述步骤301中,获取音频播放的控制模式之后,还可以包括步骤303至步骤305。
步骤303,若所述音频播放的控制模式不是预设的第一手势控制模式,则加载所述控制模式的设置界面。
步骤304,根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置。
步骤305,若重新设置后的音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
例如,如图4所示,为本申请实施例提供的控制模式的设置界面的示意图。其中,所述控制模式的设置界面40可以设置有第一手势控制模式选择控件、第二手势控制模式选择控件和标准控制模式选择控件。所述第二手势控制模式选择控件被选中时,表示所述音频播放的控制模式为根据扬声器出音孔的回声强度进行音频播放状态的控制;所述标准控制模式选择控件被选中时,表示所述音频播放的控制模 式为通过接收音频播放界面中的触发指令进行音频播放状态的控制。
本申请实施例中,若所述音频播放的控制模式不是预设的第一手势控制模式,则加载如图4所示的控制模式的设置界面40,以提醒用户进行音频播放的控制模式设置,并接收用户在所述设置界面40上的设置操作,若重新设置后的音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
可选的,如图3所示,在所述根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置之后,还可以包括:步骤306至步骤308。
步骤306,若重新设置后的音频播放的控制模式为预设的第二手势控制模式,则在待播放音频信号进行播放的同时,获取扬声器出音孔的回声强度。
例如,通过在扬声器的出音孔处设置回声检测装置,实时检测扬声器播放的待播放音频信号反射回来的回声强度。
步骤307,根据所述回声强度判断扬声器的出音孔是否出现堵塞。
本申请实施例中,所述根据所述回声强度判断扬声器的出音孔是否出现堵塞可以包括根据所述回声强度是否大于第三预设阈值进行判断。
例如,若所述回声强度大于第三预设阈值,则扬声器的出音孔出现堵塞,若所述回声强度小于或等于第三预设阈值,则扬声器的出音孔未出现堵塞。
其中,上述第三预设阈值可以为根据实践经验设置的预设阈值。例如,上述第三预设阈值为在扬声器的出音孔被用户的手部部分堵塞时,播放正常听力的用户在安静的环境下能够听清楚的语音对应的回声强度。
可选的,如图5所示,在本申请的一些实施方式中,所述根据所述回声强度判断扬声器的出音孔是否出现堵塞还可以包括:步骤501至步骤503。
步骤501,获取待播放音频信的信号强度;
步骤502,判断所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值是否大于第二预设阈值;
步骤503,若所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值大于所述第二预设阈值,则确定所述扬声器的出音孔出现堵塞。
由于扬声器出音孔的回声强度与扬声器播放的语音的语音强度相关,扬声器播放的语音的语音强度越大,在同样的堵塞情况下,扬声器出音孔的回声强度也将越大,因此,通过根据扬声器出音孔的回声强度与上述待播放音频信的信号强度的比 值判断上述扬声器的出音孔是否出现堵塞,相较于使用回声强度判断上述扬声器的出音孔是否出现堵塞来说,具有更加精确的特点。
其中,上述第二预设阈值可以为根据实践经验设置的预设阈值。例如,上述第二预设阈值为在扬声器的出音孔被用户的手部部分堵塞时,播放正常听力的用户在安静的环境下能够听清楚的语音对应的回声强度与该待播放音频信的信号强度的比值。
步骤308,若所述扬声器的出音孔出现堵塞,则改变所述待播放音频信号的播放状态。
例如,若所述扬声器的出音孔出现堵塞,则暂停对所述待播放音频信号的播放或者关闭对所述待播放音频信号的播放。
可选的,如图6所示,在上述描述的实施方式中,上述步骤103中,改变所述待播放音频信号的播放状态之后,可以包括:步骤601至步骤603。
步骤601,间隔第一预设时间段后播放预设频率的超声波信号。
步骤602,接收所述超声波信号的反射信号,并识别所述反射信号是否在第二预设时间段内出现多普勒频移。
步骤603,若所述反射信号在第二预设时间段内出现多普勒频移,则恢复对所述待播放音频信号的播放。
本申请实施例中,用户可以通过手掌快速靠近终端,例如,通过在终端前方前后挥手,使得所述超声波信号的反射信号出现多普勒频移,并实现所述待播放音频信号的播放状态的改变。
然而,在实际应用中,用户通过手掌快速靠近终端或者在终端前方前后挥手,使得所述超声波信号的反射信号出现多普勒频移,并且终端已经根据所述反射信号出现的多普勒频移改变待播放音频信号的播放状态之后,有可能用户还在进行靠近或挥手操作,导致终端在改变待播放音频信号的播放状态之后,若继续播放预设频率的超声波信号,将有可能在短时间内又接收到出现多普勒频移的反射信号。
因此,为了避免这种情况下,终端来回的执行改变待播放音频信号的播放状态和恢复对所述待播放音频信号的播放的误操作,本申请实施例中,在改变所述待播放音频信号的播放状态之后,可以通过间隔第一预设时间段后再播放预设频率的超声波信号,例如,该第一预设时间段可以为5s、7s或10s,接着,在第二预设时间段内若识别到所述反射信号出现多普勒频移,则恢复对所述待播放音频信号的播放。所述第二预设时间段可以为终端出厂时默认设置的时间段,也可以为用户自定 义设置的时间段,例如,5分钟、10分钟。
可选的,在本申请的一些实施方式中,步骤602之后,若所述反射信号在第二预设时间段内未出现多普勒频移,则关闭进行所述音频播放的应用。
本申请实施例中,在第二预设时间段内所述超声波信号的反射信号未出现多普勒频移时,表示用户有可能是需要直接关闭音频播放,而不是进行暂停操作,因此,可以通过执行关闭所述音频播放的应用的操作,以降低终端的功耗。
其中,上述进行音频播放的应用可以包括音频播放器和视频播放器等可以输出音频的应用。
可选的,所述关闭进行所述音频播放的应用之后,包括:将所述终端置为熄屏状态。
由于关闭进行音频播放的应用之后,此时终端有可能为处于亮屏状态,因此,在关闭进行所述音频播放的应用之后,还可以通过将所述终端置为熄屏状态,以便进一步地降低终端的功耗。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
图7示出了本申请实施例提供的一种音频播放的控制装置700的结构示意图,包括检测单元701、播放单元702和改变单元703。
检测单元701,用于检测终端当前的音频播放模式是否为扬声器播放模式;
播放单元702,用于若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
改变单元703,用于接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
需要说明的是,为描述的方便和简洁,上述描述的音频播放的控制装置700的具体工作过程,可以参考上述图1至图6中所述方法的对应过程,在此不再赘述。
如图8所示,本申请提供一种用于实现上述音频播放的控制方法的终端,所述终端可以为智能手机、平板电脑、个人电脑(PC)、个人数字助理(PDA)、学习机等终端,包括:处理器81、存储器82、一个或多个输入设备83(图8中仅示出一个)和一个或多个输出设备84(图8中仅示出一个)。处理器81、存储器82、输入设备83和输出设备84通过总线85连接。
所述存储器82存储有计算机程序,所述计算机程序可在所述处理器81上运行,所述处理器执行所述计算机程序时实现如下步骤:
检测终端当前的音频播放模式是否为扬声器播放模式;
若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,所述处理器执行所述计算机程序时还实现以下步骤:
获取所述反射信号对应的频域信号;
计算所述频域信号中第一预设频段的信号强度与第二预设频段的信号强度的差值;
若所述差值大于第一预设阈值,则确认所述反射信号出现多普勒频移。
在上述第一种可能的实施方式作为基础而提供的第三种可能的实施方式中,所述处理器执行所述计算机程序时还实现以下步骤:
若终端当前的音频播放模式为扬声器播放模式,则获取音频播放的控制模式;
若所述音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
在上述第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,所述处理器执行所述计算机程序时还实现以下步骤:
在所述获取音频播放的控制模式之后,若所述音频播放的控制模式不是预设的第一手势控制模式,则加载所述控制模式的设置界面;
根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置;
若重新设置后的音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
在上述第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,在根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置之后,所述处理器执行所述计算机程序时还实现以下步骤:
若重新设置后的音频播放的控制模式为预设的第二手势控制模式,则在待播放音频信号进行播放的同时,获取扬声器出音孔的回声强度;
根据所述回声强度判断扬声器的出音孔是否出现堵塞;
若所述扬声器的出音孔出现堵塞,则改变所述待播放音频信号的播放状态。
在上述第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,所述处理器执行所述计算机程序时还实现以下步骤:
获取待播放音频信的信号强度;
判断所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值是否大于第二预设阈值;
若所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值大于所述第二预设阈值,则确定所述扬声器的出音孔出现堵塞。
在上述第一种至第五种可能的实施方式中,所述处理器执行所述计算机程序时还实现以下步骤:
若终端当前的音频播放模式为扬声器播放模式,则将所述待播放音频信号与所述预设频率的超声波信号进行混合后播放。
应当理解,在本申请实施例中,所称处理器81可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
输入设备83可以包括键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备84可以包括显示器、扬声器等。
存储器82可以包括只读存储器和随机存取存储器,并向处理器81提供指令和数据。存储器81的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器82还可以存储设备类型的信息。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上 单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文 件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种音频播放的控制方法,其特征在于,包括:
    检测终端当前的音频播放模式是否为扬声器播放模式;
    若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
    接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
  2. 如权利要求1所述的方法,其特征在于,所述识别所述反射信号是否出现多普勒频移,包括:
    获取所述反射信号对应的频域信号;
    计算所述频域信号中第一预设频段的信号强度与第二预设频段的信号强度的差值;
    若所述差值大于第一预设阈值,则确认所述反射信号出现多普勒频移。
  3. 如权利要求1所述的方法,其特征在于,所述若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号,包括:
    若终端当前的音频播放模式为扬声器播放模式,则获取音频播放的控制模式;
    若所述音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
  4. 如权利要求3所述的方法,其特征在于,在所述获取音频播放的控制模式之后,包括:
    若所述音频播放的控制模式不是预设的第一手势控制模式,则加载所述控制模式的设置界面;
    根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置;
    若重新设置后的音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
  5. 如权利要求4所述的方法,其特征在于,在所述根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置之后,包括:
    若重新设置后的音频播放的控制模式为预设的第二手势控制模式,则在待播放 音频信号进行播放的同时,获取扬声器出音孔的回声强度;
    根据所述回声强度判断扬声器的出音孔是否出现堵塞;
    若所述扬声器的出音孔出现堵塞,则改变所述待播放音频信号的播放状态。
  6. 如权利要求5所述的切换方法,其特征在于,所述根据所述回声强度判断扬声器的出音孔是否出现堵塞,包括:
    获取待播放音频信的信号强度;
    判断所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值是否大于第二预设阈值;
    若所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值大于所述第二预设阈值,则确定所述扬声器的出音孔出现堵塞。
  7. 如权利要求1-6任意一项所述的方法,其特征在于,所述在待播放音频信号进行播放的同时,播放预设频率的超声波信号,包括:
    将所述待播放音频信号与所述预设频率的超声波信号进行混合后播放。
  8. 如权利要求1-6任意一项所述的方法,其特征在于,所述改变所述待播放音频信号的播放状态包括,
    暂停对所述待播放音频信号的播放,或者,关闭对所述待播放音频信号的播放。
  9. 如权利要求8所述的方法,其特征在于,在所述改变所述待播放音频信号的播放状态之后,包括:
    间隔第一预设时间段后播放预设频率的超声波信号;
    接收所述超声波信号的反射信号,并识别所述反射信号是否在第二预设时间段内出现多普勒频移;
    若所述反射信号在第二预设时间段内出现多普勒频移,则恢复对所述待播放音频信号的播放。
  10. 如权利要求9所述的方法,其特征在于,在所述识别所述反射信号是否在第二预设时间段内出现多普勒频移之后,包括:
    若所述反射信号在第二预设时间段内未出现多普勒频移,则关闭进行所述音频播放的应用。
  11. 如权利要求10所述的方法,其特征在于,所述关闭进行所述音频播放的应用之后,包括:
    将所述终端置为熄屏状态。
  12. 一种音频播放的控制装置,其特征在于,包括:
    检测单元,用于检测终端当前的音频播放模式是否为扬声器播放模式;
    播放单元,用于若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
    改变单元,用于接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
  13. 一种终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:
    检测终端当前的音频播放模式是否为扬声器播放模式;
    若终端当前的音频播放模式为扬声器播放模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号;
    接收所述超声波信号的反射信号,并识别所述反射信号是否出现多普勒频移;若所述反射信号出现多普勒频移,则改变所述待播放音频信号的播放状态。
  14. 根据权利要求13所述的终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    获取所述反射信号对应的频域信号;
    计算所述频域信号中第一预设频段的信号强度与第二预设频段的信号强度的差值;
    若所述差值大于第一预设阈值,则确认所述反射信号出现多普勒频移。
  15. 根据权利要求13所述的终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    若终端当前的音频播放模式为扬声器播放模式,则获取音频播放的控制模式;
    若所述音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
  16. 根据权利要求15所述的终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    在所述获取音频播放的控制模式之后,若所述音频播放的控制模式不是预设的第一手势控制模式,则加载所述控制模式的设置界面;
    根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置;
    若重新设置后的音频播放的控制模式为预设的第一手势控制模式,则在待播放音频信号进行播放的同时,播放预设频率的超声波信号。
  17. 根据权利要求16所述的终端,其特征在于,在所述根据在所述控制模式的设置界面中接收到的控制模式设置指令对所述终端音频播放的控制模式进行重新设置之后,所述处理器执行所述计算机程序时还实现以下步骤:
    若重新设置后的音频播放的控制模式为预设的第二手势控制模式,则在待播放音频信号进行播放的同时,获取扬声器出音孔的回声强度;
    根据所述回声强度判断扬声器的出音孔是否出现堵塞;
    若所述扬声器的出音孔出现堵塞,则改变所述待播放音频信号的播放状态。
  18. 根据权利要求17所述的终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    获取待播放音频信的信号强度;
    判断所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值是否大于第二预设阈值;
    若所述扬声器出音孔的回声强度与所述待播放音频信的信号强度的比值大于所述第二预设阈值,则确定所述扬声器的出音孔出现堵塞。
  19. 根据权利要求13-17任意一项所述的终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    若终端当前的音频播放模式为扬声器播放模式,则将所述待播放音频信号与所述预设频率的超声波信号进行混合后播放。
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至11任意一项所述方法的步骤。
PCT/CN2018/119381 2018-12-05 2018-12-05 音频播放的控制方法、装置、终端及计算机可读存储介质 WO2020113473A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098332.4A CN112789576A (zh) 2018-12-05 2018-12-05 音频播放的控制方法、装置、终端及计算机可读存储介质
PCT/CN2018/119381 WO2020113473A1 (zh) 2018-12-05 2018-12-05 音频播放的控制方法、装置、终端及计算机可读存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/119381 WO2020113473A1 (zh) 2018-12-05 2018-12-05 音频播放的控制方法、装置、终端及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2020113473A1 true WO2020113473A1 (zh) 2020-06-11

Family

ID=70974450

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119381 WO2020113473A1 (zh) 2018-12-05 2018-12-05 音频播放的控制方法、装置、终端及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112789576A (zh)
WO (1) WO2020113473A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992985B (zh) * 2021-10-25 2024-03-08 上海艾为电子技术股份有限公司 一种智能播放方法和智能播放装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312600A (zh) * 2007-05-22 2008-11-26 鸿富锦精密工业(深圳)有限公司 音量调节装置以及音量自动调节方法
CN105320252A (zh) * 2014-06-26 2016-02-10 中兴通讯股份有限公司 一种播放器的交互方法和装置
CN105472497A (zh) * 2015-12-07 2016-04-06 京东方科技集团股份有限公司 耳机控制装置、耳机、可穿戴设备及耳机控制方法
CN107526437A (zh) * 2017-07-31 2017-12-29 武汉大学 一种基于音频多普勒特征量化的手势识别方法
CN108307268A (zh) * 2017-12-12 2018-07-20 深圳依偎控股有限公司 一种基于多麦克风的直播方法及直播设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402156B (zh) * 2013-07-25 2016-05-25 瑞声科技(南京)有限公司 声学系统
CN107785027B (zh) * 2017-10-31 2020-02-14 维沃移动通信有限公司 一种音频处理方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312600A (zh) * 2007-05-22 2008-11-26 鸿富锦精密工业(深圳)有限公司 音量调节装置以及音量自动调节方法
CN105320252A (zh) * 2014-06-26 2016-02-10 中兴通讯股份有限公司 一种播放器的交互方法和装置
CN105472497A (zh) * 2015-12-07 2016-04-06 京东方科技集团股份有限公司 耳机控制装置、耳机、可穿戴设备及耳机控制方法
CN107526437A (zh) * 2017-07-31 2017-12-29 武汉大学 一种基于音频多普勒特征量化的手势识别方法
CN108307268A (zh) * 2017-12-12 2018-07-20 深圳依偎控股有限公司 一种基于多麦克风的直播方法及直播设备

Also Published As

Publication number Publication date
CN112789576A (zh) 2021-05-11

Similar Documents

Publication Publication Date Title
CN105828230B (zh) 具有集成图像显示器的耳机
CN107105367B (zh) 一种音频信号处理方法及终端
WO2020082902A1 (zh) 视频的音效处理方法及相关产品
US20170126192A1 (en) Method, device, and computer-readable medium for adjusting volume
WO2021017943A1 (zh) 超声波处理方法、装置、电子设备及计算机可读介质
WO2019033438A1 (zh) 音频信号调节方法、装置、存储介质及终端
CN110809214B (zh) 音频播放方法、音频播放装置及终端设备
CN109062535B (zh) 发声控制方法、装置、电子装置及计算机可读介质
EP3846020A1 (en) Sound effect adjusting method and apparatus, electronic device, and storage medium
US20140241702A1 (en) Dynamic audio perspective change during video playback
CN109032470A (zh) 截图方法、装置、终端及计算机可读存储介质
WO2017215507A1 (zh) 一种音效处理方法及移动终端
WO2022017006A1 (zh) 视频处理方法、装置、终端设备及计算机可读存储介质
CN106303816B (zh) 一种信息控制方法及电子设备
CN110175015B (zh) 一种控制终端设备的音量的方法、装置及终端设备
WO2021017851A1 (zh) 屏幕状态控制方法、装置、移动终端以及存储介质
CN108174269A (zh) 可视化音频播放方法及装置
CN106126184A (zh) 一种音频信号播放方法及移动终端
CN107404587B (zh) 音频播放控制方法、音频播放控制装置及移动终端
CN110086941B (zh) 语音播放方法、装置及终端设备
CN105812586A (zh) 快速静音的方法及移动终端
TWI724507B (zh) 語音處理方法和裝置
WO2020113473A1 (zh) 音频播放的控制方法、装置、终端及计算机可读存储介质
WO2020063028A1 (zh) 3d音效处理方法及相关产品
WO2017215658A1 (zh) 音效添加方法及用户终端

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: 18942601

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/10/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18942601

Country of ref document: EP

Kind code of ref document: A1