CN113793625B - Audio playing method and device - Google Patents

Audio playing method and device Download PDF

Info

Publication number
CN113793625B
CN113793625B CN202110891461.2A CN202110891461A CN113793625B CN 113793625 B CN113793625 B CN 113793625B CN 202110891461 A CN202110891461 A CN 202110891461A CN 113793625 B CN113793625 B CN 113793625B
Authority
CN
China
Prior art keywords
audio
information
preset
audio data
bluetooth
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.)
Active
Application number
CN202110891461.2A
Other languages
Chinese (zh)
Other versions
CN113793625A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110891461.2A priority Critical patent/CN113793625B/en
Publication of CN113793625A publication Critical patent/CN113793625A/en
Priority to PCT/CN2022/109180 priority patent/WO2023011370A1/en
Application granted granted Critical
Publication of CN113793625B publication Critical patent/CN113793625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • 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
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses an audio playing method and device, and belongs to the technical field of communication. The method can solve the problem that the flexibility of playing the audio is poor, so that a user can miss important audio information in a sound source of the external environment, and comprises the following steps: under the condition of playing a first audio file in the electronic equipment, the Bluetooth equipment acquires audio data in the external environment; in the case that the audio data is not matched with at least one preset audio data included in the Bluetooth device, the Bluetooth device sends the audio data to the electronic device; the Bluetooth equipment receives first result information sent by the electronic equipment and executes target operation according to the first result information; the first result information is sent by the electronic device when the audio information included in the audio data meets a first preset condition. The method is applied to a scene that the electronic equipment plays the audio file through the Bluetooth equipment.

Description

Audio playing method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to an audio playing method and device.
Background
With the development of bluetooth technology and smart phones, bluetooth devices (such as bluetooth headsets or vehicle-mounted bluetooth devices) have become a common device in daily life. For example, in a drive, ride, walk, sport, etc. scenario, a user may wear a bluetooth device to listen to audio information.
In general, in the case where a user wears a bluetooth device to listen to audio information, some other sound source may occur in the external environment. However, for bluetooth devices with noise reduction, these sources are masked; or when the bluetooth device is playing audio at a high volume, the user may not be able to clearly hear the audio information of these sources.
As such, the flexibility of playing audio may be poor, so that the user may miss important audio information in the sound source of the external environment.
Disclosure of Invention
The embodiment of the application aims to provide an audio playing method and device, which can solve the problem that the flexibility of playing audio is poor, so that a user may miss important audio information in an audio source in an external environment.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides an audio playing method, where the method includes: under the condition of playing a first audio file in the electronic equipment, the Bluetooth equipment acquires audio data in the external environment; in the case that the audio data is not matched with at least one preset audio data included in the Bluetooth device, the Bluetooth device sends the audio data to the electronic device; the Bluetooth equipment receives first result information sent by the electronic equipment and executes target operation according to the first result information; the first result information is sent by the electronic equipment when the audio information included in the audio data meets a first preset condition; the target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
In a second aspect, an embodiment of the present application provides an audio playing method, including: the electronic equipment receives audio data sent by the Bluetooth equipment, wherein the audio data are acquired from the external environment by the Bluetooth equipment; the electronic equipment acquires audio information contained in the audio data; under the condition that the audio information meets a first preset condition, the electronic equipment sends first result information to the Bluetooth equipment; the first result information is used for indicating the Bluetooth device to execute a target operation, and the target operation comprises at least one of the following steps: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
In a third aspect, an embodiment of the present application provides an audio playing device, including: the device comprises an acquisition module, a sending module, a receiving module and a processing module. The acquisition module is used for acquiring the audio data in the external environment by the Bluetooth equipment under the condition of playing the first audio file in the electronic equipment. And the sending module is used for sending the audio data to the electronic equipment by the Bluetooth equipment under the condition that the audio data acquired by the acquisition module are not matched with at least one preset audio data included in the Bluetooth equipment. And the receiving module is used for receiving the first result information sent by the electronic equipment by the Bluetooth equipment. The processing module is used for executing target operation according to the first result information after the receiving module receives the first result information; the first result information is sent by the electronic equipment when the audio information included in the audio data meets a first preset condition; the target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
In a fourth aspect, an embodiment of the present application provides an audio playing device, including: the device comprises a receiving module, an acquiring module and a sending module. The receiving module is used for receiving the audio data sent by the Bluetooth device by the electronic device, wherein the audio data is acquired from the external environment by the Bluetooth device. And the acquisition module is used for the electronic equipment to acquire the audio information contained in the audio data received by the receiving module. The sending module is used for sending first result information to the Bluetooth equipment by the electronic equipment under the condition that the audio information meets a first preset condition; the first result information is used for indicating the Bluetooth device to execute a target operation, and the target operation comprises at least one of the following steps: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
In a fifth aspect, embodiments of the present application provide a bluetooth device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the method as in the first aspect described above.
In a sixth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of a method as in the second aspect described above.
In a seventh aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as in the first or second aspects described above.
In an eighth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute programs or instructions for implementing a method as in the first or second aspect described above.
In the embodiment of the application, under the condition of playing a first audio file in the electronic equipment, the Bluetooth equipment acquires audio data in the external environment; in the case that the audio data is not matched with at least one preset audio data included in the Bluetooth device, the Bluetooth device sends the audio data to the electronic device; the Bluetooth equipment receives first result information sent by the electronic equipment and executes target operation according to the first result information; the first result information is sent by the electronic equipment when the audio information included in the audio data meets a first preset condition; the target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times. According to the scheme, under the condition that the first audio file in the electronic equipment is played, after the Bluetooth equipment acquires the audio data in the external environment, because the Bluetooth equipment can receive the first result information of the audio data sent by the electronic equipment when the audio data is not matched with at least one preset audio data included in the Bluetooth equipment, the Bluetooth equipment can execute target operation according to the first result information, so that through the target operation, a user can listen to sound in the external environment, and the important audio information in an external sound source is prevented from being missed.
Drawings
Fig. 1 is a schematic diagram of an audio playing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an audio playing device according to an embodiment of the present application;
FIG. 3 is a second schematic structural diagram of an audio playback device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application may be practiced otherwise than as specifically illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as having advantages over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more, for example, a plurality of elements means two or more, elements, etc.
The embodiment of the application provides an audio playing method, which is applied to Bluetooth equipment and electronic equipment and can monitor external sound sources in real time. Specifically, the electronic device is configured to determine whether audio data acquired from an external audio source includes audio information that conforms to a preset audio, and send the result information to the bluetooth device. And the Bluetooth equipment plays the audio file corresponding to the audio data according to the result information so as to avoid the user from missing important information in the external sound source.
Further, the embodiment of the application provides a Bluetooth device and an electronic device.
Wherein, bluetooth device can include: bluetooth module, speech recognition module, main control module and storage module etc.. Specifically, the intelligent Bluetooth device establishes Bluetooth communication connection with a communication connection module of the intelligent mobile terminal through the Bluetooth module. And the voice recognition module on the intelligent Bluetooth device is used for converting the sound signals transmitted by the microphone into electric signals (such as audio signals) and sending the electric signals to the electronic device for processing. The electronic device may include a communication connection module, a processing module, and the like.
The communication connection module of the electronic equipment is used for receiving the audio data sent by the intelligent Bluetooth equipment, comparing the information of the audio data through the processing module, and sending the judged result information to the Bluetooth equipment through Bluetooth communication.
The audio playing method, device and equipment provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Example 1
As shown in fig. 1, an embodiment of the present application provides an audio playing method, which includes the following S101 to S103. The method is applied to Bluetooth equipment which establishes connection with the electronic equipment.
S101, under the condition that a first audio file in the electronic equipment is played, the Bluetooth equipment acquires audio data in the external environment.
Alternatively, the bluetooth device may be a bluetooth headset, a vehicle bluetooth device, or other devices that may have bluetooth functions, which is not limited in the embodiments of the present application.
Alternatively, a plurality of audio files may be stored in the electronic device, and the first audio file is an audio file in the plurality of audio files.
Further, the type of the first audio file may be any one of the following: music type, news type, broadcast type, talk novel type, etc.
It should be noted that, in the embodiment of the present application, the bluetooth device is in a connection state with the electronic device. Specifically, establishing a connection between a bluetooth device and an electronic device may include two ways: one way is that after the electronic equipment and the Bluetooth equipment are successfully paired through Bluetooth, wireless connection is established; in another way, the port of the electronic device is connected with the bluetooth device through a data line, i.e. the electronic device establishes a wired connection with the bluetooth device. The description of the embodiments of the present application will be omitted herein with reference to the related art.
In addition, in S101, the "bluetooth device obtains audio data in the external environment" means: sound signals in an external environment are received through one component of the bluetooth device, i.e., a microphone, and converted into audio data (i.e., an audio signal).
Alternatively, the audio data may be from a sound signal output from a device in the external environment, a sound emitted by vocal cord vibration of a human body, or the like. In addition, the type of the audio data may be music, voice, sound effects, or the like.
S102, the Bluetooth device sends the audio data to the electronic device under the condition that the audio data are not matched with at least one preset audio data included in the Bluetooth device.
Optionally, in the embodiment of the present application, the at least one preset audio data is audio data that needs to be ignored by the bluetooth device, that is, a sound corresponding to the at least one preset audio data may be noise.
Optionally, before S102, the audio playing method provided by the embodiment of the present application may further include: the Bluetooth equipment acquires characteristic information included in the audio data; if the at least one piece of preset characteristic information does not comprise the characteristic information, the Bluetooth device determines that the audio data is not matched with the at least one piece of preset audio data. Wherein, a preset characteristic information is used for indicating a preset audio data in the at least one preset audio data.
Optionally, the characteristic information may include at least one of: amplitude, frequency, phase, decibel, etc.
Further, since different audio data have different corresponding feature information, one preset feature information may be used to indicate one preset audio data. For example, taking the characteristic information as an example, when the frequency range is 20 Hz-250 Hz, the noise audio data of low frequency is corresponded.
It should be noted that at least one preset audio data and at least one preset feature information may be stored in the bluetooth device in advance. Wherein, a preset characteristic information corresponds to a preset audio data. Further, when the at least one preset feature information does not include feature information of the audio data acquired by the bluetooth device, the bluetooth device may determine that the audio data does not match with the at least one preset audio data.
By way of example, the characteristic information is taken as a frequency. It is assumed that the bluetooth device stores therein preset audio data of 20 hz, preset audio data of 30 hz, and preset audio data of 40 hz. When the Bluetooth device acquires the audio data with the frequency of 25 Hz, the audio data can be determined to be not matched with the 3 types of preset audio data included in the Bluetooth device.
S103, the Bluetooth equipment receives first result information sent by the electronic equipment and executes target operation according to the first result information.
The first result information is sent by the electronic equipment under the condition that the audio information included in the audio data meets a first preset condition; the target operation includes at least one of: stopping playing the first audio file, playing the second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, and reducing the volume of the Bluetooth device playing the first audio file and the vibration preset times of the Bluetooth device.
Optionally, the type of the second audio file is determined by audio data. Reference may be made to the specific description of the first audio file in the above embodiment, and this is not repeated in the embodiments of the present application.
Optionally, the preset times and the first result information may be factory set for the manufacturer or user-defined set for the user. When the user is not satisfied with the content or the form of the first result information and the value of the preset times, the user can be triggered to change the content of the first result information or modify the value of the preset times.
For example, the preset number of times may be three, i.e., the bluetooth device vibrates three times.
Alternatively, the first result information may be any one of the following: text information, symbol information, icon information, and the like. The embodiment of the present application may be determined according to actual use conditions, and the embodiment of the present application is not limited thereto.
Illustratively, taking the first result information as text information as an example, the first result information may be "audio data valid", which the bluetooth device needs to process.
It will be appreciated that when the bluetooth device receives the first result information sent by the electronic device, the bluetooth device may determine that important information is included in the audio data, so that the bluetooth device may perform the target operation so that the user does not miss that important information is included in the audio data.
Optionally, the audio information included in the audio data may be audio content information and/or audio tone information. The audio content information is used for indicating specific content included in the audio data, and the audio tone information is used for indicating characteristics of sound corresponding to the audio data.
It will be appreciated that, since the timbre of sounds made by different objects or persons is also different, the corresponding audio timbre information is also different for different audio data, so that the sounding body can be determined according to the audio timbre information.
Illustratively, the audio information may be audio content information. The audio content information is "passengers please notice that the next xxx station is about to arrive"; take the example that the audio information may be audio tone information. The audio tone information is any one of the following: the tone of piano, the tone of violin, the tone of guitar, the tone of boy, the tone of girl, the tone of man, the tone of woman, the tone of elderly, etc.
Alternatively, in the case where the audio information includes audio content information and audio tone information, the first preset condition may include at least one of: the audio content information comprises preset keywords, and the audio tone information is matched with the preset tone information.
Optionally, the preset keywords and preset tone color information may be factory set for the manufacturer or custom set for the user. When the preset keywords and the preset tone color information can not meet the user requirements, the user can trigger to modify the preset keywords and the preset tone color information according to own will.
Further, the number of categories of the preset keyword and the preset tone color information may be one or more. Under the condition that the number of the types of the preset keywords and the preset tone information is one, the audio playing method provided by the embodiment of the application can only be applied to a certain specific use scene; under the condition that the number of the types of the preset keywords and the preset tone information is multiple, one use scene corresponds to one preset keyword or preset tone information, so that the audio playing method provided by the embodiment of the application can be applied to multiple use scenes.
For example, the preset keyword may be "passengers please notice", "movie", "drama", or "cartoon", etc.
For example, the user may trigger the electronic device to record a piece of sound in advance, and then the electronic device records the tone information of the piece of sound, and takes the tone information of the piece of sound as the preset tone information. For example, a parent records a piece of sound of a child through an electronic device, and records tone information of the piece of sound, that is, tone of the child is preset tone information.
Taking the preset keyword as "passengers please notice" as an example. It is assumed that during the process of taking a bus, the user is wearing a bluetooth headset to listen to songs played in the electronic device. When the bus arrives at the A station of the home location of the user, the advertisement of the bus starts to broadcast a section of voice of 'passengers please notice that the A station arrives immediately and the passengers are required to take own articles'. The Bluetooth headset acquires audio data of the section of voice output by a loudspeaker of the bus in the external environment. The Bluetooth headset may send the audio data to the electronic device when it is determined that the audio data does not match at least one preset audio data included in the Bluetooth headset. When the electronic device acquires that the audio content information of the audio data includes "please notice by passengers", the bluetooth headset may receive first result information sent by the electronic device: "audio data valid, which the bluetooth device needs to handle". Therefore, the Bluetooth headset can stop playing music according to the first result information and play the voice corresponding to the audio data, wherein the passengers please notice that the station A arrives immediately and please take the articles of the passengers. Furthermore, the user does not miss important information in the section of voice, and the user is ensured to get off the bus at the time of arrival of the bus.
The embodiment of the application provides an audio playing method, in the case of playing a first audio file in an electronic device, after a Bluetooth device acquires audio data in an external environment, because when the audio data is not matched with at least one preset audio data included in the Bluetooth device, the Bluetooth device can receive first result information of the audio data sent by the electronic device, the Bluetooth device can execute a target operation according to the first result information, so that a user can listen to sound in the external environment through the target operation, and the important audio information in an external sound source is prevented from being missed.
Optionally, after S102 described above, the audio playing method provided in the embodiment of the present application may further include S104 described below.
S104, the Bluetooth equipment receives second result information sent by the electronic equipment and stores audio data according to the second result information;
The second result information is sent by the electronic device when the audio information included in the audio data meets a second preset condition.
Alternatively, the audio information may include audio content information and audio tone information. The second preset condition includes: the audio content information does not include a preset keyword, and the audio tone information is not matched with the preset tone information.
Optionally, the second result information is different from the first result information, and for the description of the second result information, reference may be made to the detailed description of the first result information in the foregoing embodiment, which is not repeated in the embodiments of the present application.
Illustratively, taking the second result information as an example, the text information, the second result information may be "the audio data is invalid noise".
It will be appreciated that when the bluetooth device receives the second result information sent by the electronic device, the bluetooth device may determine that the audio data does not include important information, i.e. that the audio data is noise that is not useful to the user, so that the bluetooth device may store the audio data so that when the bluetooth device receives the same audio data later, the bluetooth device does not send the audio data to the electronic device, thereby avoiding unnecessary operations and saving resources (e.g. power) of the electronic device.
Example two
As shown in fig. 1, an embodiment of the present application provides an audio playing method, which includes the following steps S201 to S203, and is applied to an electronic device in connection with a bluetooth device.
S201, the electronic device receives audio data sent by the Bluetooth device.
The audio data is acquired from the external environment under the condition that the Bluetooth device plays the first audio file.
Optionally, in S201, the "audio data sent by the bluetooth device" refers to: sound signals in an external environment are received through one component of the bluetooth device, i.e., a microphone, and converted into audio data (i.e., an audio signal).
Further, the audio data may be a sound signal output from a device in an external environment, a sound emitted by vocal cord vibration of a human body, or the like. In addition, the type of the audio data may be music, voice, sound effects, or the like.
Alternatively, a plurality of audio files may be stored in the electronic device, and the first audio file is an audio file in the plurality of audio files.
Further, the type of the first audio file may be any one of the following: music type, news type, broadcast type, talk novel type, etc.
It should be noted that, in the embodiment of the present application, the bluetooth device is in a connection state with the electronic device. Specifically, establishing a connection between a bluetooth device and an electronic device may include two ways: one way is that after the electronic equipment and the Bluetooth equipment are successfully paired through Bluetooth, wireless connection is established; in another way, the port of the electronic device is connected with the bluetooth device through a data line, i.e. the electronic device establishes a wired connection with the bluetooth device. The description of the embodiments of the present application will be omitted herein with reference to the related art.
Alternatively, the bluetooth device may be a bluetooth headset, a vehicle bluetooth device, or other devices that may have bluetooth functions, which is not limited in the embodiments of the present application.
S202, the electronic equipment acquires the audio information included in the audio data.
Optionally, the audio information included in the audio data may include at least one of: audio content information, audio tone information. The audio content information is used for indicating specific content included in the audio data, and the audio tone information is used for indicating characteristics of sound corresponding to the audio data.
It will be appreciated that, since the timbre of sounds made by different objects or persons is also different, the corresponding audio timbre information is also different for different audio data, so that the sounding body can be determined according to the audio timbre information.
Illustratively, the audio information may be audio content information. The audio content information is "passengers please notice that the next xxx station is about to arrive"; take the example that the audio information may be audio tone information. The audio tone information is any one of the following: the tone of piano, the tone of violin, the tone of guitar, the tone of boy, the tone of girl, the tone of man, the tone of woman, the tone of elderly, etc.
And S203, the electronic equipment sends first result information to the Bluetooth equipment under the condition that the audio information meets a first preset condition.
The first result information is used for indicating the Bluetooth device to execute a target operation, and the target operation comprises at least one of the following steps: stopping playing the first audio file, playing the second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, and reducing the volume of the Bluetooth device playing the first audio file and the vibration preset times of the Bluetooth device.
Optionally, in the case where the audio information includes audio content information and audio tone information, the first preset condition includes at least one of: the audio content information comprises preset keywords, and the audio tone information is matched with the preset tone information.
Optionally, the preset keywords and preset tone color information may be factory set for the manufacturer or custom set for the user. When the preset keywords and the preset tone color information can not meet the user requirements, the user can trigger to modify the preset keywords and the preset tone color information according to own will.
Further, the number of categories of the preset keyword and the preset tone color information may be one or more. Under the condition that the number of the types of the preset keywords and the preset tone information is one, the audio playing method provided by the embodiment of the application can only be applied to a certain specific use scene; under the condition that the number of the types of the preset keywords and the preset tone information is multiple, one use scene corresponds to one preset keyword or preset tone information, so that the audio playing method provided by the embodiment of the application can be applied to multiple use scenes.
For example, the preset keyword may be "passengers please notice", "movie", "drama", or "cartoon", etc.
For example, the user may trigger the electronic device to record a piece of sound in advance, and then the electronic device records the tone information of the piece of sound, and takes the tone information of the piece of sound as the preset tone information. For example, a parent records a piece of sound of a child through an electronic device, and records tone information of the piece of sound, that is, tone of the child is preset tone information.
Optionally, the preset times and the first result information may be factory settings of a manufacturer or user-defined settings. When the user is not satisfied with the content or the form of the first result information and the value of the preset times, the user can be triggered to change the content of the first result information or modify the value of the preset times.
For example, the preset number of times may be three, i.e., the bluetooth device vibrates three times.
Alternatively, the first result information may be any one of the following: text information, symbol information, icon information, and the like. The embodiment of the present application may be determined according to actual use conditions, and the embodiment of the present application is not limited thereto.
Illustratively, taking the first result information as text information as an example, the first result information may be "audio data valid", which the bluetooth device needs to process.
Taking the preset keyword as "passengers please notice" as an example. It is assumed that during the process of taking a bus, the user is wearing a bluetooth headset to listen to songs played in the electronic device. When the bus arrives at the A station of the home location of the user, the advertisement of the bus starts to broadcast a section of voice of 'passengers please notice that the A station arrives immediately and the passengers are required to take own articles'. Because the electronic device can receive the audio data of the voice output by the speaker of the bus, which is acquired by the bluetooth headset from the external environment, when the audio content information of the audio data acquired by the electronic device includes "please notice by passengers", the electronic device can send first result information for indicating the bluetooth headset to play the voice corresponding to the audio data to the bluetooth headset: "audio data valid, which the bluetooth device needs to handle". Therefore, after the user receives the voice corresponding to the audio data played through the Bluetooth headset, the passengers notice that the A station arrives immediately and ask the passengers to take the articles of the passenger, the user can be ensured to get off the bus at the time of arrival of the bus, namely, the user cannot miss important information in the voice.
The embodiment of the application provides an audio playing method, after an electronic device receives audio data sent by a Bluetooth device, the electronic device can acquire audio information included in the audio data, and because the electronic device can send first result information for indicating the Bluetooth device to execute target operation to the Bluetooth device under the condition that the audio information meets a first preset condition, the electronic device can control the Bluetooth device to execute the target operation according to the first result information, so that a user can listen to sound in an external environment through the target operation, and the important audio information in an external sound source is avoided being missed.
Optionally, the audio information includes audio content information and audio tone information. After S202 described above, the audio playing method provided by the embodiment of the present application may further include S204 described below. I.e. S203 and S204.
And S204, under the condition that the audio information meets a second preset condition, the electronic equipment sends second result information to the Bluetooth equipment.
The second result information is used for indicating the Bluetooth device to store audio data; the second preset condition includes: the audio content information does not include a preset keyword, and the audio tone information is not matched with the preset tone information.
Optionally, the second result information is different from the first result information, and for the description of the second result information, reference may be made to the detailed description of the first result information in the foregoing embodiment, which is not repeated in the embodiments of the present application.
Illustratively, taking the second result information as an example, the text information, the second result information may be "the audio data is invalid noise".
It can be appreciated that, when the audio information satisfies the second preset condition, the electronic device may determine that the audio data does not include important information, that is, noise that is not useful to the user, so the electronic device may send second result information to the bluetooth device, where the second result information is used to instruct the bluetooth device to store the audio data, so the electronic device may not receive the same audio data sent by the bluetooth device again, and further determine the audio data. In this way, the electronic device avoids unnecessary operations and also saves resources (e.g., power) of the electronic device.
Example III
The embodiment of the application provides an audio playing method, which comprises the following steps of S301 to S306, and is applied to an electronic device and a Bluetooth device which are in a connected state.
S301, under the condition that a first audio file in the electronic equipment is played, the Bluetooth equipment acquires audio data in the external environment.
S302, the Bluetooth device sends the audio data to the electronic device under the condition that the audio data are not matched with at least one preset audio data included in the Bluetooth device.
S303, the electronic equipment receives the audio data sent by the Bluetooth equipment.
S304, the electronic equipment acquires the audio information included in the audio data.
And S305, the electronic equipment sends first result information to the Bluetooth equipment under the condition that the audio information meets a first preset condition.
The first result information is used for indicating the Bluetooth device to execute the target operation.
S306, the Bluetooth equipment receives the first result information sent by the electronic equipment and executes target operation according to the first result information.
Wherein the target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device for playing the first audio file, and vibrating the Bluetooth device for preset times.
For the descriptions of S301 to S306, reference may be made to the descriptions related to the first and second embodiments, and the descriptions are omitted here.
Optionally, the audio information includes audio content information and audio tone information. After S304, the audio playing method provided by the embodiment of the present application may further include S307 and S308 described below. I.e. S305 and S306, or S307 and S308.
S307, the electronic device sends second result information to the Bluetooth device under the condition that the audio information meets second preset conditions.
And S308, the Bluetooth equipment receives second result information sent by the electronic equipment and stores audio data according to the second result information.
For the descriptions of S307 and S308, reference may be made to the descriptions related to the first and second embodiments, and the descriptions are omitted here.
The embodiment of the application provides an audio playing method, in the case of playing a first audio file in an electronic device, after a Bluetooth device acquires audio data in an external environment, because when the audio data is not matched with at least one preset audio data included in the Bluetooth device, the Bluetooth device can send the audio data to the electronic device, when the electronic device determines that the audio information included in the audio data meets a first preset condition, first result information of the audio data sent to the electronic device is sent to the electronic device, and therefore after the Bluetooth device receives the first result information sent by the electronic device, the Bluetooth device can execute a target operation according to the first result information. In this way, the electronic device controls the Bluetooth device to execute the target operation, so that the user can hear the sound in the external environment, and avoid missing important audio information in the external sound source.
It should be noted that, in the audio playing method provided by the embodiment of the present application, the execution body may be an audio playing device, or a control module in the audio playing device for executing the audio playing method. In the embodiment of the present application, an audio playing device executes an audio playing method as an example, which describes the audio playing device provided in the embodiment of the present application.
As shown in fig. 2, an embodiment of the present application provides an audio playing device 400, which includes an audio playing device including an acquisition module 401, a transmission module 402, a reception module 403, and a processing module 404. The audio playing device may be the bluetooth device or a functional module in the bluetooth device in the first embodiment. The obtaining module 401 may be configured to obtain, by using the bluetooth device, audio data in an external environment when the first audio file in the electronic device is played. The sending module 402 may be configured to send, by the bluetooth device, the audio data to the electronic device if it is determined that the audio data acquired by the acquiring module 401 does not match at least one preset audio data included in the bluetooth device. The receiving module 403 may be configured to receive, by using the bluetooth device, first result information sent by the electronic device. A processing module 404, configured to perform a target operation according to the first result information after the receiving module 403 receives the first result information; the first result information is sent by the electronic equipment when the audio information included in the audio data meets a first preset condition; the target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
Optionally, the audio playing device may further include a receiving module and a storage module. The receiving module can also be used for receiving second result information sent by the electronic equipment through the Bluetooth equipment. The storage module can be used for storing audio data according to the second result information after the receiving module receives the second result information; the second result information is sent by the electronic device when the audio information included in the audio data meets a second preset condition.
Optionally, the audio playing device may further include a determining module. The acquisition module can also be used for the Bluetooth equipment to acquire the characteristic information included in the audio data. The determining module may be configured to determine that the audio data does not match with at least one preset audio data if the at least one preset feature information does not include the feature information, where one preset feature information is used to indicate one preset audio data in the at least one preset audio data.
The embodiment of the application provides an audio playing device, under the condition of playing a first audio file in electronic equipment, after a Bluetooth device acquires audio data in an external environment, because when the audio data is not matched with at least one preset audio data included in the Bluetooth device, the Bluetooth device can receive first result information of the audio data sent by the electronic equipment, the Bluetooth device can execute target operation according to the first result information, so that a user can listen to sound in the external environment through the target operation, and the important audio information in an external sound source is avoided being missed.
As shown in fig. 3, an embodiment of the present application provides an audio playing device 500; the audio playing device includes a receiving module 501, an obtaining module 502, and a sending module 503. The audio playing device may be the electronic device or a functional module in the electronic device in the second embodiment. The receiving module 501 is configured to receive, by an electronic device, audio data sent by a bluetooth device, where the audio data is obtained from an external environment when the bluetooth device plays a first audio file. An obtaining module 502, configured to obtain, by the electronic device, audio information included in the audio data received by the receiving module 501. A sending module 503, configured to send, by the electronic device, first result information to the bluetooth device when the audio information meets a first preset condition; the first result information is used for indicating the Bluetooth device to execute a target operation, and the target operation comprises at least one of the following steps: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
Optionally, the audio information includes at least one of: audio content information, audio tone information; the first preset condition includes at least one of: the audio content information comprises preset keywords, and the audio tone information is matched with the preset tone information.
Optionally, the audio information includes audio content information and audio tone information. The sending module is further used for sending second result information to the Bluetooth device by the electronic device under the condition that the audio information meets a second preset condition; the second result information is used for indicating the Bluetooth device to store audio data; the second preset condition includes: the audio content information does not include a preset keyword, and the audio tone information is not matched with the preset tone information.
The embodiment of the application provides an audio playing device, after an electronic device receives audio data sent by a Bluetooth device, the electronic device can acquire audio information included in the audio data, and because the electronic device can send first result information for indicating the Bluetooth device to execute target operation to the Bluetooth device under the condition that the audio information meets a first preset condition, the electronic device can control the Bluetooth device to execute the target operation according to the first result information, so that a user can listen to sound in an external environment through the target operation, and the important audio information in an external sound source is avoided being missed.
The audio playing device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device (e.g., a bluetooth headset), an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (network attached storage, NAS), a personal computer (personal computer, PC), a Television (TV), an automated teller machine or a self-help machine, etc., and the embodiments of the present application are not limited in particular.
The audio playing device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The audio playing device provided by the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, details are not repeated here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of running on the processor 601, where the program or the instruction implements each process of the above-mentioned embodiment of the audio playing method when executed by the processor 601, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The input unit 704, in this embodiment, is a microphone of the bluetooth device, and is configured to, when the first audio file in the electronic device is played, obtain audio data in an external environment by the bluetooth device. A radio frequency unit 701, configured to, when it is determined that the audio data does not match at least one preset audio data included in the bluetooth device, send the audio data to the electronic device by the bluetooth device; and the Bluetooth device is used for receiving the first result information sent by the electronic device. A processor 710, configured to perform a target operation according to the first result information after the rf unit 701 receives the first result information; the first result information is sent by the electronic equipment when the audio information included in the audio data meets a first preset condition; the target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
Optionally, the radio frequency unit 701 is further configured to receive second result information sent by the electronic device. A processor 710, configured to store audio data according to the second result information after the radio frequency unit 701 receives the second result information; the second result information is sent by the electronic device when the audio information included in the audio data meets a second preset condition.
Optionally, the processor 710 is further configured to obtain feature information included in the audio data by using the bluetooth device; and the Bluetooth device is used for determining that the audio data is not matched with at least one preset audio data if the at least one preset characteristic information does not comprise the characteristic information, and the preset characteristic information is used for indicating one preset audio data in the at least one preset audio data.
The embodiment of the application provides a Bluetooth device, which can receive first result information of audio data sent by electronic equipment when the audio data is not matched with at least one preset audio data included in the Bluetooth device after the Bluetooth device acquires the audio data in the external environment under the condition of playing a first audio file in the electronic equipment, so that the Bluetooth device can execute target operation according to the first result information, and a user can listen to sound in the external environment through the target operation so as to avoid missing important audio information in an external sound source.
The radio frequency unit 701 is configured to receive, by using an electronic device, audio data sent by a bluetooth device, where the audio data is obtained from an external environment when the bluetooth device plays a first audio file. The processor 710 is configured to obtain, by the electronic device, audio information included in the audio data received by the radio frequency unit 701. The radio frequency unit 701 is further configured to send, by the electronic device, first result information to the bluetooth device when the audio information meets a first preset condition; the first result information is used for indicating the Bluetooth device to execute a target operation, and the target operation comprises at least one of the following steps: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device playing the first audio file, and vibrating the Bluetooth device for preset times.
Optionally, the audio information includes audio content information and audio tone information. The radio frequency unit 701 is further configured to send second result information to the bluetooth device by the electronic device if the audio information meets a second preset condition; the second result information is used for indicating the Bluetooth device to store audio data; the second preset condition includes: the audio content information does not include a preset keyword, and the audio tone information is not matched with the preset tone information.
The embodiment of the application provides electronic equipment, after the electronic equipment receives audio data sent by Bluetooth equipment, the electronic equipment can acquire audio information contained in the audio data, and under the condition that the audio information meets a first preset condition, the electronic equipment can send first result information for indicating the Bluetooth equipment to execute target operation to the Bluetooth equipment, so that the electronic equipment can control the Bluetooth equipment to execute the target operation according to the first result information, and therefore, through the target operation, a user can listen to sound in an external environment to avoid missing important audio information in an external sound source.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 710 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned audio playing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as read-only memory (ROM), random access memory (random access memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the audio playing method and achieve the same technical effects, so that repetition is avoided and redundant description is omitted.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (6)

1. An audio playing method, characterized in that the method comprises:
Under the condition of playing a first audio file in the electronic equipment, the Bluetooth equipment acquires audio data in the external environment;
in the case that the audio data is not matched with at least one preset audio data included in the Bluetooth device, the Bluetooth device sends the audio data to the electronic device;
Under the condition of receiving first result information sent by the electronic equipment, the Bluetooth equipment executes target operation according to the first result information;
Under the condition of receiving second result information sent by the electronic equipment, the Bluetooth equipment stores the audio data according to the second result information;
the first result information is sent by the electronic equipment when the audio information included in the audio data meets a first preset condition;
The target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device for playing the first audio file, and vibrating the Bluetooth device for preset times;
The second result information is sent by the electronic equipment when the audio information included in the audio data meets a second preset condition;
the audio information corresponding to the audio data comprises audio content information and audio tone information, and the first preset condition comprises at least one of the following: the audio content information comprises preset keywords, and the audio tone information is matched with the preset tone information; the second preset condition includes: the audio content information does not comprise preset keywords, and the audio tone information is not matched with the preset tone information.
2. The method of claim 1, wherein prior to the bluetooth device transmitting the audio data to the electronic device, the method further comprises:
The Bluetooth equipment acquires characteristic information included in the audio data;
If the at least one piece of preset characteristic information does not include the characteristic information, the Bluetooth device determines that the audio data is not matched with the at least one piece of preset audio data, and one piece of preset characteristic information is used for indicating one piece of preset audio data in the at least one piece of preset audio data.
3. An audio playing method, characterized in that the method comprises:
The method comprises the steps that the electronic equipment receives audio data sent by Bluetooth equipment, wherein the audio data are acquired from the external environment under the condition that the Bluetooth equipment plays a first audio file;
The electronic equipment acquires audio information included in the audio data;
Under the condition that the audio information meets a first preset condition, the electronic equipment sends first result information to the Bluetooth equipment;
Under the condition that the audio information meets a second preset condition, the electronic equipment sends second result information to the Bluetooth equipment;
The first result information is used for indicating the Bluetooth device to execute a target operation, and the target operation comprises at least one of the following steps: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device for playing the first audio file, and vibrating the Bluetooth device for preset times;
the second result information is used for indicating the Bluetooth device to store the audio data;
the audio information corresponding to the audio data comprises audio content information and audio tone information, and the first preset condition comprises at least one of the following: the audio content information comprises preset keywords, and the audio tone information is matched with the preset tone information; the second preset condition includes: the audio content information does not comprise preset keywords, and the audio tone information is not matched with the preset tone information.
4. The audio playing device is characterized by comprising an acquisition module, a sending module, a receiving module, a processing module and a storage module;
the acquisition module is used for acquiring audio data in the external environment under the condition of playing a first audio file in the electronic equipment;
the sending module is used for sending the audio data to the electronic equipment under the condition that the audio data acquired by the acquisition module are not matched with at least one preset audio data included in the Bluetooth equipment;
the receiving module is used for receiving first result information sent by the electronic equipment;
The processing module is used for executing target operation according to the first result information under the condition that the receiving module receives the first result information;
The receiving module is further used for receiving second result information sent by the electronic equipment;
The storage module is used for storing the audio data according to the second result information under the condition that the receiving module receives the second result information;
The first result information is sent by the electronic equipment when the audio information included in the audio data meets a first preset condition; the target operation includes at least one of: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device for playing the first audio file, and vibrating the Bluetooth device for preset times;
The second result information is sent by the electronic equipment when the audio information included in the audio data meets a second preset condition;
the audio information corresponding to the audio data comprises audio content information and audio tone information, and the first preset condition comprises at least one of the following: the audio content information comprises preset keywords, and the audio tone information is matched with the preset tone information; the second preset condition includes: the audio content information does not comprise preset keywords, and the audio tone information is not matched with the preset tone information.
5. The apparatus of claim 4, wherein the audio playback apparatus further comprises a determination module;
the acquisition module is further used for acquiring characteristic information included in the audio data;
The determining module is configured to determine that the audio data does not match with the at least one preset audio data if the at least one preset feature information does not include the feature information, where one preset feature information is used to indicate one preset audio data in the at least one preset audio data.
6. An audio playing device is characterized by comprising a receiving module, an obtaining module and a sending module;
The receiving module is used for receiving audio data sent by the Bluetooth equipment, wherein the audio data is acquired from the external environment under the condition that the Bluetooth equipment plays the first audio file;
The acquisition module is used for acquiring the audio information included in the audio data received by the receiving module;
the sending module is used for sending first result information to the Bluetooth equipment under the condition that the audio information meets a first preset condition;
The sending module is further configured to send second result information to the bluetooth device when the audio information meets a second preset condition;
The first result information is used for indicating the Bluetooth device to execute a target operation, and the target operation comprises at least one of the following steps: stopping playing the first audio file, playing a second audio file corresponding to the audio data, closing the noise reduction function of the Bluetooth device, reducing the volume of the Bluetooth device for playing the first audio file, and vibrating the Bluetooth device for preset times;
the second result information is used for indicating the Bluetooth device to store the audio data;
the audio information corresponding to the audio data comprises audio content information and audio tone information, and the first preset condition comprises at least one of the following: the audio content information comprises preset keywords, and the audio tone information is matched with the preset tone information; the second preset condition includes: the audio content information does not comprise preset keywords, and the audio tone information is not matched with the preset tone information.
CN202110891461.2A 2021-08-04 2021-08-04 Audio playing method and device Active CN113793625B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110891461.2A CN113793625B (en) 2021-08-04 2021-08-04 Audio playing method and device
PCT/CN2022/109180 WO2023011370A1 (en) 2021-08-04 2022-07-29 Audio playing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110891461.2A CN113793625B (en) 2021-08-04 2021-08-04 Audio playing method and device

Publications (2)

Publication Number Publication Date
CN113793625A CN113793625A (en) 2021-12-14
CN113793625B true CN113793625B (en) 2024-06-25

Family

ID=79181395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110891461.2A Active CN113793625B (en) 2021-08-04 2021-08-04 Audio playing method and device

Country Status (2)

Country Link
CN (1) CN113793625B (en)
WO (1) WO2023011370A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793625B (en) * 2021-08-04 2024-06-25 维沃移动通信有限公司 Audio playing method and device
CN114650496A (en) * 2022-03-07 2022-06-21 维沃移动通信有限公司 Audio playing method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583898A (en) * 2020-05-26 2020-08-25 舒伟伟 Space environment multi-directional selective noise reduction system and method

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100335613B1 (en) * 1999-11-12 2002-05-08 윤종용 Apparatus and method for transmission of a sound
CN101840700B (en) * 2010-04-28 2012-05-23 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
US9037458B2 (en) * 2011-02-23 2015-05-19 Qualcomm Incorporated Systems, methods, apparatus, and computer-readable media for spatially selective audio augmentation
CN102624980A (en) * 2012-03-06 2012-08-01 惠州Tcl移动通信有限公司 Method for detecting abrupt environment and prompting based on earphone of mobile phone and mobile phone
CN103825993B (en) * 2014-03-11 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Method and device for treating environment sound during conversation
CN105225662A (en) * 2015-08-24 2016-01-06 深圳市冠旭电子有限公司 Smart bluetooth earphone plays method and the smart bluetooth earphone of external voice automatically
CN106550294A (en) * 2015-09-18 2017-03-29 丰唐物联技术(深圳)有限公司 Monitor method and device based on earphone
CN105205955B (en) * 2015-09-25 2018-07-31 小米科技有限责任公司 A kind of method and apparatus sending out standby signal
CN207531029U (en) * 2017-11-30 2018-06-22 歌尔科技有限公司 A kind of wire-controlled apparatus and earphone
CN107948801B (en) * 2017-12-21 2020-02-07 广东小天才科技有限公司 Earphone control method and earphone
CN108521621B (en) * 2018-03-30 2020-01-10 Oppo广东移动通信有限公司 Signal processing method, device, terminal, earphone and readable storage medium
US10679602B2 (en) * 2018-10-26 2020-06-09 Facebook Technologies, Llc Adaptive ANC based on environmental triggers
US11076219B2 (en) * 2019-04-12 2021-07-27 Bose Corporation Automated control of noise reduction or noise masking
CN110475170A (en) * 2019-07-10 2019-11-19 深圳壹账通智能科技有限公司 Control method, device, mobile terminal and the storage medium of earphone broadcast state
CN111787450A (en) * 2020-07-21 2020-10-16 乐行装备(深圳)有限公司 Earphone with voice recognition function
CN113793625B (en) * 2021-08-04 2024-06-25 维沃移动通信有限公司 Audio playing method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583898A (en) * 2020-05-26 2020-08-25 舒伟伟 Space environment multi-directional selective noise reduction system and method

Also Published As

Publication number Publication date
CN113793625A (en) 2021-12-14
WO2023011370A1 (en) 2023-02-09

Similar Documents

Publication Publication Date Title
CN107360458B (en) Play control method, device, storage medium and terminal
CN107580113B (en) Reminding method, device, storage medium and terminal
CN103488939B (en) Method, device and terminal for prompting user
CN105979312B (en) Information sharing method and device
CN113793625B (en) Audio playing method and device
CN110568926B (en) Sound signal processing method and terminal equipment
CN108024128B (en) Control method and device for Bluetooth music playing, terminal equipment and storage medium
CN106095387B (en) A kind of the audio setting method and terminal of terminal
CN108712566A (en) A kind of voice assistant awakening method and mobile terminal
CN111638779A (en) Audio playing control method and device, electronic equipment and readable storage medium
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN109144703B (en) Multitask processing method and terminal equipment thereof
CN109862430B (en) Multimedia playing method and terminal equipment
WO2017215511A1 (en) Control method of scene sound effect and related products
CN112230877A (en) Voice operation method and device, storage medium and electronic equipment
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN109949809B (en) Voice control method and terminal equipment
CN106792014B (en) A kind of method, apparatus and system of recommendation of audio
CN107870799A (en) Utilize the method, apparatus and terminal of widget control audio player
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
CN110851106B (en) Audio output method and electronic equipment
CN103677582A (en) Method for controlling electronic device, and electronic device
CN113220262A (en) Multi-application audio data distribution method and terminal equipment
CN113449068A (en) Voice interaction method and electronic equipment
CN108418961B (en) Audio playing method and mobile terminal

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