CN110809219A - Method, device and equipment for playing audio and storage medium - Google Patents

Method, device and equipment for playing audio and storage medium Download PDF

Info

Publication number
CN110809219A
CN110809219A CN201911174226.2A CN201911174226A CN110809219A CN 110809219 A CN110809219 A CN 110809219A CN 201911174226 A CN201911174226 A CN 201911174226A CN 110809219 A CN110809219 A CN 110809219A
Authority
CN
China
Prior art keywords
audio
playing
volume
application
option
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911174226.2A
Other languages
Chinese (zh)
Other versions
CN110809219B (en
Inventor
刘佳泽
陈普森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911174226.2A priority Critical patent/CN110809219B/en
Publication of CN110809219A publication Critical patent/CN110809219A/en
Application granted granted Critical
Publication of CN110809219B publication Critical patent/CN110809219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for playing audio, and belongs to the technical field of audio. The method comprises the following steps: and displaying a safe playing option in the application, wherein the application currently plays a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device. And when the triggering operation of the safe playing option is detected, starting the recording device, and controlling the recording device to start recording to obtain a second audio. And when the second audio is determined to meet the reference playing condition, playing the second audio through the earphone equipment. Because the user can hear external environment sound in earphone equipment, can avoid because of can't knowing the unexpected emergence that external environment sound caused.

Description

Method, device and equipment for playing audio and storage medium
Technical Field
The present application relates to the field of audio technologies, and in particular, to a method, an apparatus, a device, and a storage medium for playing audio.
Background
More and more users play audio by using earphones in life, however, because the earphones have certain sealing performance, when the users wear the earphones to play the audio, the users hardly notice external sound, which causes many conditions unfavorable to the safety of the users, such as when the users wear the earphones to listen to songs, if the surrounding cars whistle and the users do not hear, traffic accidents may occur.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for playing audio, which can solve the problem of accidents caused by the fact that a user cannot know the sound of an external environment in the related art. The technical scheme is as follows:
in one aspect, a method of playing audio is provided, the method comprising:
displaying a safe playing option in an application, wherein the application is currently playing a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device;
when the triggering operation of the safe playing option is detected, starting a recording device, and controlling the recording device to start recording to obtain a second audio;
and when the second audio is determined to meet the reference playing condition, playing the second audio through the earphone equipment.
In a possible implementation manner of the present application, before the determining that the second audio satisfies the reference playing condition and is played by the earphone device, the method further includes:
determining a volume of the second audio;
when the volume of the second audio is greater than or equal to a first volume threshold, determining that the second audio meets the reference playing condition.
In a possible implementation manner of the present application, before the determining that the second audio satisfies the reference playing condition and is played by the earphone device, the method further includes:
determining an audio category of the second audio;
and when the audio category of the second audio belongs to the abnormal audio category, determining that the second audio meets the reference playing condition.
In one possible implementation manner of the present application, the method further includes:
when the audio category of the second audio belongs to the abnormal audio category, performing abnormal prompt;
alternatively, the first and second electrodes may be,
and when the audio category of the second audio belongs to the abnormal audio category, sending an abnormal prompt instruction to the earphone equipment, wherein the abnormal prompt instruction is used for indicating the earphone equipment to carry out abnormal prompt.
In a possible implementation manner of the present application, before the playing the second audio through the earphone device, the method further includes:
increasing the volume of the second audio by a second volume threshold;
accordingly, the playing the second audio by the earphone device includes:
and playing the second audio with increased volume through the earphone equipment.
In a possible implementation manner of the present application, after determining that the second audio satisfies the reference playing condition, the method further includes:
pausing playback of the first audio through the earphone device.
In one possible implementation manner of the present application, the method further includes:
respectively displaying a first volume adjustment option and a second volume adjustment option, wherein the first volume adjustment option is used for adjusting the volume of the first audio, and the second volume adjustment option is used for adjusting the volume of the second audio.
In another aspect, an apparatus for playing audio is provided, the apparatus including:
the display module is used for displaying a safe playing option in an application, wherein the application currently plays a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device;
the starting module is used for starting the recording device when the triggering operation of the safe playing option is detected, and controlling the recording device to start recording to obtain a second audio;
and the playing module is used for playing the second audio through the earphone equipment when the second audio is determined to meet the reference playing condition.
In one possible implementation manner of the present application, the playing module is further configured to:
determining a volume of the second audio;
when the volume of the second audio is greater than or equal to a first volume threshold, determining that the second audio meets the reference playing condition.
In one possible implementation manner of the present application, the playing module is further configured to:
determining an audio category of the second audio;
and when the audio category of the second audio belongs to the abnormal audio category, determining that the second audio meets the reference playing condition.
In a possible implementation manner of the present application, the apparatus further includes an exception prompting module, configured to:
when the audio category of the second audio belongs to the abnormal audio category, performing abnormal prompt;
alternatively, the first and second electrodes may be,
and when the audio category of the second audio belongs to the abnormal audio category, sending an abnormal prompt instruction to the earphone device, wherein the abnormal prompt instruction is used for instructing the earphone device to perform abnormal prompt.
In one possible implementation manner of the present application, the playing module is further configured to:
increasing the volume of the second audio by a second volume threshold;
and playing the second audio with increased volume through the earphone equipment.
In one possible implementation manner of the present application, the playing module is further configured to:
pausing playback of the first audio through the earphone device.
In one possible implementation manner of the present application, the display module is further configured to:
respectively displaying a first volume adjustment option and a second volume adjustment option, wherein the first volume adjustment option is used for adjusting the volume of the first audio, and the second volume adjustment option is used for adjusting the volume of the second audio.
In another aspect, a smart device is provided, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of playing audio of the above aspect.
In another aspect, a computer-readable storage medium is provided, which stores instructions that, when executed by a processor, implement a method of playing audio according to one aspect of the above.
In another aspect, a computer program product comprising instructions is provided, which when run on a computer, causes the computer to perform a method of playing audio as described in one aspect above.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
and displaying a safe playing option in the application, wherein the application currently plays a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device. When the triggering operation of the safe playing option is detected, namely when the user is determined to select to start the safe playing function, the recording device is started, and the recording device is controlled to start recording to obtain a second audio frequency, namely the current environment audio frequency. And when the second audio is determined to meet the reference playing condition, namely when the situation needing the attention of the user possibly exists in the current environment, playing the second audio through the earphone device. Because the user can hear external environment sound in earphone equipment, can avoid because of can't knowing the unexpected emergence that external environment sound caused.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow diagram illustrating a method of playing audio according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a secure playback according to an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating another secure playback according to an example embodiment;
FIG. 4 is a schematic diagram illustrating another secure playback according to an example embodiment;
FIG. 5 is a schematic diagram illustrating another secure playback according to an example embodiment;
FIG. 6 is a block diagram illustrating an apparatus for playing audio according to an exemplary embodiment;
fig. 7 is a schematic diagram illustrating a smart device according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before describing the method for playing audio provided by the embodiment of the present application in detail, the implementation environment related to the embodiment of the present application is briefly described.
The method for playing the audio provided by the embodiment of the application can be executed by an intelligent device, and the intelligent device can establish a communication connection with a headset device so as to play the audio through the headset device. As an example, the smart device may be a smart phone, a tablet computer, a notebook computer, a portable computer, a desktop computer, and the like, which is not limited in this application.
After describing the implementation environment related to the embodiments of the present application, a detailed description will be given below of a method for playing audio provided by the embodiments of the present application with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for playing audio according to an exemplary embodiment, which may be implemented by a smart device in the above-described implementation environment, and which may include the following implementation steps:
step 101: and displaying a safe playing option in the application, wherein the application currently plays a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device.
The application refers to an application that can provide an audio playing function, for example, the application may be a video playing application, an audio playing application, and the like, which is not limited in this embodiment.
The safe playing option refers to an option provided by the application to the user, and the application can determine whether to start the safe playing function according to the operation of the user on the safe playing option.
The first audio is an audio currently played by the application, and it should be noted that the first audio may also be an audio stored locally, an audio uploaded by a cloud, and the like.
The earphone device can be a wired earphone device, the wired earphone device can be connected with the intelligent device through a data line, and the wired earphone device can be an in-ear wired earphone device and also can be a head-mounted wired earphone device. Earphone equipment also can be wireless earphone equipment, and wireless earphone equipment can be established with intelligence and compare and pass through the bluetooth and be connected, and wireless earphone equipment can be the wireless earphone equipment of in-ear, also can be the wireless earphone equipment of wear-type. When the intelligent device is in communication connection with the earphone device, the audio required to be played by the intelligent device can be played through the earphone device.
That is, the application is installed in the smart device, and the application can provide a secure play function. When the user opens the application, the display interface of the application can display the safe playing option, and the user can select to start the safe playing function according to the actual situation or select not to start the safe playing function according to the actual situation.
It should be noted that, when the user opens the application, the secure playing option may not be directly displayed in the display interface of the application, but the user enters the application interface corresponding to the designated option by selecting the designated option in the display interface, and the secure playing option is displayed in the application interface corresponding to the designated option, as shown in fig. 2, the user may select to start the secure playing function according to an actual situation, or select not to start the secure playing function according to the actual situation.
Step 102: and when the triggering operation of the safe playing option is detected, starting the recording device, and controlling the recording device to start recording to obtain a second audio.
The triggering operation refers to an operation triggered by the user on the safe playing option. For example, the triggering operation may be that the user clicks the secure playback option, or that the user drags the secure playback option. It should be noted that the triggering operation may also be an operation triggered by a voice instruction from a user, for example, the triggering operation may issue a voice instruction "start the secure play function" to the user.
Wherein, the recording device can be the recording device in the intelligent terminal, also can be the recording device in the earphone equipment. The recording device may be a microphone, a receiver, etc., which is not limited in this embodiment.
The second audio may include sounds in the external environment, for example, the second audio may include a car whistle, a passerby speaking, a vehicle stop announcement, and the like.
That is, when the triggering operation of the user on the safe playing option is detected, it can be stated that the current user selects to start the safe playing function according to the actual situation, control the sound recording device to start, and control the sound recording device to record the sound in the external environment, that is, to obtain the second audio.
For example, as shown in fig. 3, when the user clicks the safe playing option, it indicates that the current user selects to start the safe playing function according to the actual situation, and the application controls the recording device to start and record the sound in the external environment according to the selection of the user.
When the second audio is acquired, the second audio may be further judged to determine whether to play the second audio through the earphone device, which is specifically implemented as follows.
Step 103: and when the second audio is determined to meet the reference playing condition, playing the second audio through the earphone equipment.
Wherein, the reference playing condition can be set according to the actual situation.
That is, in the case of determining the reference playing condition, if the second audio meets the reference playing condition, it indicates that there may be a situation that needs the attention of the user in the current external environment, the headphone device plays the second audio, and if the second audio does not meet the reference playing condition, it indicates that there is no situation that the user needs the attention in the current external environment, the headphone device does not play the second audio.
As an example, before the second audio is played through the headphone device, the following operations may be further performed to determine that the second audio satisfies the reference playing condition: and determining the volume of the second audio, and determining that the second audio meets the reference playing condition when the volume of the second audio is greater than or equal to the first volume threshold.
The first volume threshold may be set according to actual conditions.
That is, the application may perform audio analysis on the second audio recorded by the recording device to determine the volume of the second audio. When the volume of the second audio is greater than or equal to the first volume threshold, it indicates that there may be a situation in the current external environment that requires the attention of the user, for example, there may be a vehicle whistle to remind the user that he should avoid. Therefore, the application can control the earphone device to play the second audio, so that the user can hear the sound in the external environment, and the accident caused by the fact that the sound in the external environment cannot be known can be avoided.
For example, the first volume threshold may be set to 80 db, and if the volume of the second audio is detected to be 90 db, it indicates that there may be a situation in the current external environment that requires the attention of the user. Therefore, the application can control the earphone device to play the second audio, so that the user can hear the sound in the external environment, and the user can avoid the dangerous situation caused by not hearing the sound in the external environment.
As an example, before the second audio is played through the headphone device, the following operations may be further performed to determine that the second audio satisfies the reference playing condition: an audio category of the second audio is determined. And when the audio category of the second audio belongs to the abnormal audio category, determining that the second audio meets the reference playing condition.
The audio category of the second audio can be classified into a car whistle category, an arrival reminding category, a pedestrian conversation category and the like according to actual conditions.
In general, the audio class of the second audio may be determined by a target network model, which may be trained. For example, a plurality of audio samples representing different audio categories may be pre-selected, the actual audio categories of the plurality of audio samples may be determined, the plurality of audio samples may be input into the network model to be trained, the network model to be trained analyzes and processes a plurality of sections of audio samples based on the initial model parameters, outputs the recognition result of the audio category, compares the output audio category with the actual audio category, and if the recognition result of the output audio category is wrong, the initial model parameters are adjusted until a large number of audio samples, such as 1000 segments, wherein, when the accuracy of the audio category identification result is higher, such as when the accuracy is greater than or equal to 95%, the network model to be trained may be considered to have been trained, and the network model with training completed obtained at this time may be determined as a target network model, and thus, the audio category of the second audio may be determined based on the target network model.
The abnormal audio category may be set according to actual conditions, for example, the car whistle category may be set as the abnormal audio category.
That is, the application performs audio analysis on the second audio recorded by the recording device to determine the audio category of the second audio, and when it is determined that the audio category of the second audio belongs to the abnormal audio category, it can be described that a situation that the user needs to pay attention in the current environment may exist, for example, the user may be reminded to get off by the station arrival reminding type audio. Therefore, the application can control the earphone device to play the second audio, so that the user can hear the sound in the external environment, and the accident caused by the fact that the sound in the external environment cannot be known can be avoided.
For example, the abnormal audio category may be set as a car whistle category, and when the application determines that the second audio is the car whistle category through audio analysis, it indicates that there may be a situation that needs the attention of the user in the current external environment. Therefore, the application can control the earphone device to play the second audio, so that the user can hear the sound in the external environment, and the accident caused by the fact that the sound in the external environment cannot be known can be avoided.
Further, when the audio category of the second audio is the abnormal audio category, the second audio is played through the earphone device, and the user can be reminded through other operations, so that accidents caused by the fact that the external environment sound cannot be known can be avoided.
For example, an exception prompt may be performed when the audio category of the second audio belongs to an exception audio category. Or when the audio category of the second audio belongs to the abnormal audio category, sending an abnormal prompt instruction to the earphone device, wherein the abnormal prompt instruction is used for instructing the earphone device to perform abnormal prompt.
Wherein, unusual suggestion can be for the smart machine vibration, earphone equipment vibrations, earphone equipment broadcast suggestion pronunciation, smart machine vibration and earphone equipment broadcast suggestion pronunciation, earphone equipment broadcast while vibrating suggestion pronunciation, smart machine vibration and earphone equipment broadcast while vibrating suggestion pronunciation etc. this embodiment does not restrict this. It should be noted that the prompt voice may be set according to actual situations, for example, the prompt voice may be "please pay attention to the external environment", "get on or get off the car", and the like, which is not limited in this embodiment.
That is, when the application detects that the audio category of the second audio belongs to the abnormal audio category, the user may be prompted by an abnormal prompt that there may be situations in the current environment that need attention.
For example, when the abnormal prompt is to play the prompt voice for the earphone device, if it is detected that the audio class of the second audio belongs to the abnormal audio class, the prompt voice "please pay attention to the external environment" may be played through the earphone device.
It should be noted that, while the exception prompt is performed, a prompt message may be displayed in the display interface of the smart device, and the prompt message may be set according to an actual situation. As shown in FIG. 4, if it is detected that the audio category of the second audio belongs to the abnormal audio category, an abnormal prompt may be prompted while displaying "ambient environment abnormal, please note! | A ".
Further, before determining that the second audio meets the reference playing condition and playing the second audio through the headphone device, the following operations may be further performed:
as an example, the volume of the second audio may also be increased by a second volume threshold before the second audio is played through the headset device. Accordingly, playing the second audio through the earphone device includes: and playing the second audio with the increased volume through the earphone equipment.
The second volume threshold may be set according to actual conditions, for example, the second volume threshold may be set to be 3 times, that is, the volume of the second audio is increased by 3 times.
That is, when it is determined that the second audio satisfies the reference playing condition, the volume of the second audio may be increased, that is, the earphone device plays the second audio with increased volume, so that the user may be prompted to pay attention to the current environment by playing the second audio with increased volume, and the user may hear the external environment sound more clearly, thereby avoiding an unexpected occurrence caused by the fact that the external environment sound cannot be known.
As an example, after determining that the second audio satisfies the reference playing condition, the playing of the first audio through the headphone apparatus may also be paused.
That is, when it is determined that the second audio meets the reference playing condition, the headphone device may be controlled to pause playing the first audio, so that when the user perceives that the first audio is paused, it may be determined that a situation that needs to be noticed may exist in the current environment, and thus, an accident caused by the fact that the external environment sound cannot be known may be avoided.
It should be noted that, when the earphone device suspends playing the first audio, the earphone device may play the second audio or may not play the second audio, which is not limited in this embodiment.
Furthermore, a first volume adjustment option and a second volume adjustment option can be respectively displayed, wherein the first volume adjustment option is used for adjusting the volume of the first audio, and the second volume adjustment option is used for adjusting the volume of the second audio.
The first volume adjustment option refers to an option provided by the application to the user, and the application can adjust the first volume according to the operation of the user on the first volume adjustment option. Typically, the first volume adjustment option may include a first volume up option and a first volume down option.
It should be noted that the first volume may also be adjusted by a volume adjustment key in the smart device, or may also be adjusted by a volume adjustment key in the headset device, which is not limited in this embodiment.
The second volume adjustment option is an option provided by the application to the user, and the application can adjust the second volume according to the operation of the user on the second volume adjustment option. In general, as shown in fig. 5, the second volume adjustment option may include a second volume hold option, a second volume increase option, and a second volume decrease option.
That is, the user can adjust the volume of the first audio and the volume of the second audio according to the actual situation. For example, when the user wishes to hear the first audio louder, the first volume increase option may be clicked to increase the first volume. When the user wishes to hear a little louder sound from the external environment, the second volume up option may be clicked to increase the second volume.
It should be noted that the application may also provide the user with an overall volume adjustment option, that is, the application may simultaneously adjust the first volume and the second volume according to the operation of the user on the overall volume adjustment option. Typically, the overall volume adjustment option may include an overall volume hold option, an overall volume boost option, and an overall volume down option. For example, when the user clicks on the overall volume increase option, the application increases the first volume while increasing the second volume.
It should be noted that, the user may also adjust the first volume and the second volume by using the voice instruction, for example, the user may adjust the first volume by sending voice instructions such as "enhance the first volume", "reduce the first volume", etc., may adjust the second volume by sending voice instructions such as "enhance the second volume", "keep the second volume", "reduce the second volume", etc., and may adjust the first volume and the second volume by sending voice instructions such as "enhance the first volume and the second volume", "keep the first volume and the second volume", "reduce the first volume and the second volume", etc., which is not limited in this embodiment.
In the embodiment of the application, a safe playing option is displayed in the application, wherein the application is currently playing a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device. When the triggering operation of the safe playing option is detected, namely the user is determined to select the safe playing function, the recording device is started, and the recording device is controlled to start recording to obtain a second audio frequency, namely the current environment audio frequency. When the second audio is determined to meet the reference playing condition, it can be stated that a situation that needs the attention of the user exists in the current environment, and the second audio is played through the earphone device. Because the user can hear external environment sound in earphone equipment, can avoid because of can't knowing the unexpected emergence that external environment sound caused.
Fig. 6 is a schematic diagram illustrating a structure of an apparatus for playing audio, which may be implemented by software, hardware or a combination of the two according to an exemplary embodiment. The apparatus for playing audio may include:
a display module 610, configured to display a secure play option in an application, where the application is currently playing a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the smart device;
the starting module 620 is configured to start a recording device when the triggering operation on the secure play option is detected, and control the recording device to start recording to obtain a second audio;
a playing module 630, configured to play the second audio through the earphone device when it is determined that the second audio meets a reference playing condition.
In a possible implementation manner of the present application, the playing module 630 is further configured to:
determining a volume of the second audio;
when the volume of the second audio is greater than or equal to a first volume threshold, determining that the second audio meets the reference playing condition.
In a possible implementation manner of the present application, the playing module 630 is further configured to:
determining an audio category of the second audio;
and when the audio category of the second audio belongs to the abnormal audio category, determining that the second audio meets the reference playing condition.
In a possible implementation manner of the present application, the apparatus further includes an exception prompting module 640, configured to:
when the audio category of the second audio belongs to the abnormal audio category, performing abnormal prompt;
alternatively, the first and second electrodes may be,
and when the audio category of the second audio belongs to the abnormal audio category, sending an abnormal prompt instruction to the earphone device, wherein the abnormal prompt instruction is used for instructing the earphone device to perform abnormal prompt.
In a possible implementation manner of the present application, the playing module 630 is further configured to:
increasing the volume of the second audio by a second volume threshold;
and playing the second audio with increased volume through the earphone equipment.
In a possible implementation manner of the present application, the playing module 630 is further configured to:
pausing playback of the first audio through the earphone device.
In one possible implementation manner of the present application, the presentation module 610 is further configured to:
respectively displaying a first volume adjustment option and a second volume adjustment option, wherein the first volume adjustment option is used for adjusting the volume of the first audio, and the second volume adjustment option is used for adjusting the volume of the second audio.
In the embodiment of the application, a safe playing option is displayed in the application, wherein the application is currently playing a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device. When the triggering operation of the safe playing option is detected, namely the user is determined to select the safe playing function, the recording device is started, and the recording device is controlled to start recording to obtain a second audio frequency, namely the current environment audio frequency. When the second audio is determined to meet the reference playing condition, it can be stated that a situation that needs the attention of the user exists in the current environment, and the second audio is played through the earphone device. Because the user can hear external environment sound in earphone equipment, can avoid because of can't knowing the unexpected emergence that external environment sound caused.
It should be noted that: in the device for playing audio provided in the foregoing embodiment, when playing audio, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for playing audio and the method for playing audio provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and will not be described herein again.
Fig. 7 is a schematic structural diagram of an intelligent device 700 according to an embodiment of the present application, where the intelligent device 700 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 701 and one or more memories 702, where at least one instruction is stored in the memory 702, and the at least one instruction is loaded and executed by the processors 701 to implement the method for playing audio provided by the above method embodiments.
Certainly, the intelligent device 700 may further include components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the intelligent device 700 may further include other components for implementing device functions, which are not described herein again.
Embodiments of the present application further provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the method for playing audio provided in the embodiment shown in fig. 1.
Embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the method for playing audio provided in the embodiment shown in fig. 1.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for playing audio, which is applied to a smart device, the method comprising:
displaying a safe playing option in an application, wherein the application is currently playing a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device;
when the triggering operation of the safe playing option is detected, starting a recording device, and controlling the recording device to start recording to obtain a second audio;
and when the second audio is determined to meet the reference playing condition, playing the second audio through the earphone equipment.
2. The method of claim 1, wherein prior to playing the second audio through the headphone device when it is determined that the second audio satisfies a reference playing condition, further comprising:
determining a volume of the second audio;
when the volume of the second audio is greater than or equal to a first volume threshold, determining that the second audio meets the reference playing condition.
3. The method of claim 1, wherein prior to playing the second audio through the headphone device when it is determined that the second audio satisfies a reference playing condition, further comprising:
determining an audio category of the second audio;
and when the audio category of the second audio belongs to the abnormal audio category, determining that the second audio meets the reference playing condition.
4. The method of claim 3, wherein the method further comprises:
when the audio category of the second audio belongs to the abnormal audio category, performing abnormal prompt;
alternatively, the first and second electrodes may be,
and when the audio category of the second audio belongs to the abnormal audio category, sending an abnormal prompt instruction to the earphone equipment, wherein the abnormal prompt instruction is used for indicating the earphone equipment to carry out abnormal prompt.
5. The method of claim 3 or 4, wherein prior to playing the second audio by the headset device, further comprising:
increasing the volume of the second audio by a second volume threshold;
accordingly, the playing the second audio by the earphone device includes:
and playing the second audio with increased volume through the earphone equipment.
6. The method of claim 1, wherein after determining that the second audio satisfies a reference playback condition, further comprising:
pausing playback of the first audio through the earphone device.
7. The method of claim 1, wherein the method further comprises:
respectively displaying a first volume adjustment option and a second volume adjustment option, wherein the first volume adjustment option is used for adjusting the volume of the first audio, and the second volume adjustment option is used for adjusting the volume of the second audio.
8. An apparatus for playing audio, applied to a smart device, the apparatus comprising:
the display module is used for displaying a safe playing option in an application, wherein the application currently plays a first audio, the first audio is any audio in the application, and the first audio is played through an earphone device in communication connection with the intelligent device;
the starting module is used for starting the recording device when the triggering operation of the safe playing option is detected, and controlling the recording device to start recording to obtain a second audio;
and the playing module is used for playing the second audio through the earphone equipment when the second audio is determined to meet the reference playing condition.
9. A smart device, comprising:
a processor;
a memory storing instructions executable by the processor;
wherein the processor is configured to execute the instructions and to implement the steps of any of the methods of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-7.
CN201911174226.2A 2019-11-26 2019-11-26 Method, device and equipment for playing audio and storage medium Active CN110809219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911174226.2A CN110809219B (en) 2019-11-26 2019-11-26 Method, device and equipment for playing audio and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911174226.2A CN110809219B (en) 2019-11-26 2019-11-26 Method, device and equipment for playing audio and storage medium

Publications (2)

Publication Number Publication Date
CN110809219A true CN110809219A (en) 2020-02-18
CN110809219B CN110809219B (en) 2021-06-01

Family

ID=69491442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911174226.2A Active CN110809219B (en) 2019-11-26 2019-11-26 Method, device and equipment for playing audio and storage medium

Country Status (1)

Country Link
CN (1) CN110809219B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385701A (en) * 2020-04-03 2020-07-07 西安极蜂天下信息科技有限公司 Sound playing control method and device of earphone

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202551297U (en) * 2012-05-04 2012-11-21 安百特半导体有限公司 Safe earphone device capable of tuning intelligently
CN106162413A (en) * 2016-09-07 2016-11-23 合肥中感微电子有限公司 The Headphone device of specific environment sound prompting pattern
CN106791109A (en) * 2016-12-23 2017-05-31 维沃移动通信有限公司 A kind of sound prompting method and mobile terminal
CN107247572A (en) * 2017-05-08 2017-10-13 深圳市科迈爱康科技有限公司 Audio frequency playing method, terminal and computer-readable recording medium
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 The control method and earphone of a kind of earphone
CN108156550A (en) * 2017-12-27 2018-06-12 上海传英信息技术有限公司 The playing method and device of headphone
CN108391206A (en) * 2018-03-30 2018-08-10 广东欧珀移动通信有限公司 Signal processing method, device, terminal, earphone and readable storage medium storing program for executing
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202551297U (en) * 2012-05-04 2012-11-21 安百特半导体有限公司 Safe earphone device capable of tuning intelligently
CN106162413A (en) * 2016-09-07 2016-11-23 合肥中感微电子有限公司 The Headphone device of specific environment sound prompting pattern
CN106791109A (en) * 2016-12-23 2017-05-31 维沃移动通信有限公司 A kind of sound prompting method and mobile terminal
CN107247572A (en) * 2017-05-08 2017-10-13 深圳市科迈爱康科技有限公司 Audio frequency playing method, terminal and computer-readable recording medium
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 The control method and earphone of a kind of earphone
CN108156550A (en) * 2017-12-27 2018-06-12 上海传英信息技术有限公司 The playing method and device of headphone
CN108391206A (en) * 2018-03-30 2018-08-10 广东欧珀移动通信有限公司 Signal processing method, device, terminal, earphone and readable storage medium storing program for executing
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385701A (en) * 2020-04-03 2020-07-07 西安极蜂天下信息科技有限公司 Sound playing control method and device of earphone

Also Published As

Publication number Publication date
CN110809219B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US11705878B2 (en) Intelligent audio output devices
KR102091003B1 (en) Method and apparatus for providing context aware service using speech recognition
KR101585793B1 (en) Smart Hearing Aid Device
US10503462B2 (en) Systems and methods for handling application notifications
AU2013211541B2 (en) Mobile apparatus and control method thereof
US20160100267A1 (en) Method and devices for outputting an audio file
US20130101125A1 (en) Acoustic Shock Prevention Apparatus
CN105848037A (en) Headset and terminal device controlling method
WO2017148270A1 (en) Volume control method and device, and terminal
US11355135B1 (en) Phone stand using a plurality of microphones
US9558730B2 (en) Audio signal processing system
CN110809219B (en) Method, device and equipment for playing audio and storage medium
CN103853646A (en) Called prompting system and method
CN116471355B (en) Audio playing method and electronic equipment
CN104754099A (en) Conversation volume adjusting method
CN109600470B (en) Mobile terminal and sound production control method thereof
CN108184193B (en) Play control method of Bluetooth play terminal, Bluetooth device and computer storage medium
CN105472128A (en) Call control method and call control device
CN115022773A (en) Bluetooth device audio control method, device and storage medium
JP2022095689A (en) Voice data noise reduction method, device, equipment, storage medium, and program
CN106293607B (en) Method and system for automatically switching audio output modes
CN112102829A (en) Player control system and method based on voice recognition
EP4156181A1 (en) Controlling playback of audio data
CN113271491B (en) Electronic device and play control method
KR101687894B1 (en) Apparatus for controlling audio output of user terminal for safety and convenience

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant