CN111427535A - Audio playing method, device, terminal and computer readable storage medium - Google Patents

Audio playing method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN111427535A
CN111427535A CN202010227657.7A CN202010227657A CN111427535A CN 111427535 A CN111427535 A CN 111427535A CN 202010227657 A CN202010227657 A CN 202010227657A CN 111427535 A CN111427535 A CN 111427535A
Authority
CN
China
Prior art keywords
playing
information
noise
audio
determining
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.)
Withdrawn
Application number
CN202010227657.7A
Other languages
Chinese (zh)
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.)
Shenzhen Micro Testing Detection Co ltd
Original Assignee
Shenzhen Micro Testing Detection 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 Shenzhen Micro Testing Detection Co ltd filed Critical Shenzhen Micro Testing Detection Co ltd
Priority to CN202010227657.7A priority Critical patent/CN111427535A/en
Publication of CN111427535A publication Critical patent/CN111427535A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1781Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions
    • G10K11/17821Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions characterised by the analysis of the input signals only
    • G10K11/17823Reference signals, e.g. ambient acoustic environment
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1787General system configurations
    • G10K11/17873General system configurations using a reference signal without an error signal, e.g. pure feedforward
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K2210/00Details of active noise control [ANC] covered by G10K11/178 but not provided for in any of its subgroups
    • G10K2210/10Applications
    • G10K2210/108Communication systems, e.g. where useful sound is kept and noise is cancelled
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K2210/00Details of active noise control [ANC] covered by G10K11/178 but not provided for in any of its subgroups
    • G10K2210/10Applications
    • G10K2210/128Vehicles
    • G10K2210/1282Automobiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Navigation (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The invention discloses an audio playing method, which comprises the following steps: if the terminal is detected to have the playing of the audio information, acquiring noise information of a vehicle where the terminal is located, and determining a noise type corresponding to the noise information; and if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode. The invention also discloses an audio playing device, a terminal and a computer readable storage medium. When the playing of the audio information is detected, the playing mode of the audio is determined according to the noise type by collecting the noise information, and the audio information is played in the determined playing mode, so that the playing of the audio information is automatically adjusted according to the noise information, and the intelligent playing of the audio information is realized.

Description

Audio playing method, device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of broadcast technologies, and in particular, to an audio playing method, an audio playing device, a terminal, and a computer-readable storage medium.
Background
With the improvement of living standard of people, automobiles become the preferred vehicles of many people, the use of intelligent terminals such as mobile phones is very common, and the phenomenon that drivers call while driving is rare, which brings great traffic safety hidden trouble. In order to ensure driving safety, the driver usually uses a vehicle-mounted hands-free system or directly adopts a mobile phone audio play-out function in various places at present, so that the driver can answer the call while driving, the hands of the driver are free from constraint, and great convenience is realized.
However, in the process of driving the vehicle, due to noise inside the vehicle cabin or interference of noise outside the vehicle, the driver often cannot hear the sound emitted by the vehicle-mounted hands-free system or the mobile phone terminal, and at this time, the driver needs to manually turn up the volume; when the interior of the vehicle cabin is relatively quiet or the exterior of the vehicle is low in noise, the driver is required to turn down the sound volume manually.
Obviously, the audio playing mode of the existing vehicle-mounted hands-free system or the mobile phone and other terminals is not intelligent enough, and cannot be automatically adjusted according to the current vehicle environment.
Disclosure of Invention
The invention mainly aims to provide an audio playing method, an audio playing device, a terminal and a computer readable storage medium, and aims to realize intelligent audio playing.
In order to achieve the above object, the present invention provides an audio playing method, which includes the following steps:
if the terminal is detected to have the playing of the audio information, acquiring noise information of a vehicle where the terminal is located, and determining a noise type corresponding to the noise information;
and if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode.
Preferably, if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode includes:
if the noise type is external noise, determining frequency spectrum information corresponding to the noise information, and generating sound waves corresponding to the frequency spectrum information;
and playing the audio information and the sound wave.
Preferably, if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode includes:
if the noise type is external noise, determining a first playing volume corresponding to the noise information;
and determining a second playing volume corresponding to the audio information based on the first playing volume, and playing the audio information at the second playing volume.
Preferably, after the step of collecting noise information of a vehicle in which the terminal is located and determining a noise type corresponding to the noise information if it is detected that the terminal plays the audio information, the audio playing method further includes:
if the noise type is internal noise, determining the source of the noise information;
if the source of the noise information is the terminal, determining a first playing level of the noise information;
and determining a second playing mode corresponding to the audio information based on the first playing level, and playing the audio information in the second playing mode.
Preferably, the step of determining a second playing mode corresponding to the audio information based on the first playing level, and playing the audio information in the second playing mode includes:
comparing the second playback level of the audio information to the first playback level;
if the second playing level is smaller than the first playing level, determining a third playing volume of the audio information, and playing the audio information at the third playing volume;
and if the second playing level is not less than the first playing level, stopping playing the noise information and playing the audio information.
Preferably, after the step of determining the source of the noise information if the noise type is internal noise, the audio playing method further includes:
if the source of the noise information is the vehicle, determining the speed of the vehicle;
and determining a fourth playing volume corresponding to the audio information based on the vehicle speed, and playing the audio information at the fourth playing volume.
Preferably, if it is detected that there is audio information playing in the terminal, the step of collecting noise information of a vehicle in which the terminal is located and determining a noise type corresponding to the noise information includes:
if the terminal is detected to have the playing of the audio information, determining vehicle information of a vehicle where the terminal is located, wherein the vehicle information comprises road information;
determining whether the audio information can be played based on the road information;
and if the terminal can be played, acquiring noise information of the vehicle where the terminal is located, and determining a noise type corresponding to the noise information.
In addition, to achieve the above object, the present invention further provides an audio playing device, including:
the determining module is used for acquiring noise information of a vehicle where the terminal is located and determining a noise type corresponding to the noise information if the terminal is detected to play the audio information;
and the playing module is used for determining a first playing mode corresponding to the audio information based on the noise type if the noise type is external noise, and playing the audio information in the first playing mode.
Preferably, the playing module is configured to:
if the noise type is external noise, determining frequency spectrum information corresponding to the noise information, and generating sound waves corresponding to the frequency spectrum information;
and playing the audio information and the sound wave.
Preferably, the playing module is further configured to:
if the noise type is external noise, determining a first playing volume corresponding to the noise information;
and determining a second playing volume corresponding to the audio information based on the first playing volume, and playing the audio information at the second playing volume.
Preferably, the playing module is further configured to:
if the noise type is internal noise, determining the source of the noise information;
if the source of the noise information is the terminal, determining a first playing level of the noise information;
and determining a second playing mode corresponding to the audio information based on the first playing level, and playing the audio information in the second playing mode.
Preferably, the playing module is further configured to:
comparing the second playback level of the audio information to the first playback level;
if the second playing level is smaller than the first playing level, determining a third playing volume of the audio information, and playing the audio information at the third playing volume;
and if the second playing level is not less than the first playing level, stopping playing the noise information and playing the audio information.
Preferably, the playing module is further configured to:
if the source of the noise information is the vehicle, determining the speed of the vehicle;
and determining a fourth playing volume corresponding to the audio information based on the vehicle speed, and playing the audio information at the fourth playing volume.
Preferably, the determining module is further configured to:
if the terminal is detected to have the playing of the audio information, determining vehicle information of a vehicle where the terminal is located, wherein the vehicle information comprises road information;
determining whether the audio information can be played based on the road information;
and if the terminal can be played, acquiring noise information of the vehicle where the terminal is located, and determining a noise type corresponding to the noise information.
In addition, to achieve the above object, the present invention also provides a terminal, including: the audio playing program is stored on the memory and can be operated on the processor, and when being executed by the processor, the audio playing program realizes the steps of the audio playing method.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having an audio playing program stored thereon, which when executed by a processor implements the steps of the audio playing method as described above.
According to the audio playing method provided by the invention, if the audio information playing of the terminal is detected, the noise information of the vehicle where the terminal is located is collected, and the noise type corresponding to the noise information is determined; and if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode. When the playing of the audio information is detected, the playing mode of the audio is determined according to the noise type by collecting the noise information, and the audio information is played in the determined playing mode, so that the playing of the audio information is automatically adjusted according to the noise information, and the intelligent playing of the audio information is realized.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an audio playing method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating an audio playing method according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a mobile terminal such as a mobile phone and the like, and can also be a fixed terminal such as a vehicle-mounted terminal and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an audio playback program.
The operating system is a program for managing and controlling the audio playing equipment and software resources, and supports the running of a network communication module, a user interface module, an audio playing program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the terminal shown in fig. 1, the terminal calls an audio playback program stored in the memory 1005 through the processor 1001 and performs operations in various embodiments of the audio playback method described below.
Based on the hardware structure, the embodiment of the audio playing method is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of an audio playing method according to the present invention, where the method includes:
step S10, if the terminal is detected to have the playing of the audio information, acquiring the noise information of the vehicle where the terminal is located, and determining the noise type corresponding to the noise information;
step S20, if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode.
The audio playing method of the embodiment is applied to a terminal, wherein the terminal may be a mobile terminal such as a mobile phone or a fixed terminal such as a vehicle-mounted terminal, and for convenience of description, the embodiment takes the vehicle-mounted terminal as an example for description.
In this embodiment, the vehicle-mounted terminal may be configured to play audio information such as local music or navigation information, and may also play multimedia files of other devices or answer a call by connecting to an intelligent terminal such as a mobile phone. If the terminal detects that the audio information is played at the terminal, the terminal collects the current noise information and adjusts the playing mode of the audio information according to the noise information, so that the intelligent playing of the audio information is realized.
The respective steps will be described in detail below:
step S10, if the terminal is detected to have the playing of the audio information, collecting the noise information of the vehicle where the terminal is located, and determining the noise type corresponding to the noise information.
In this embodiment, if the vehicle-mounted terminal detects that the audio information is played at the vehicle-mounted terminal, that is, the audio information is played at the current vehicle-mounted terminal, noise information of a vehicle where the vehicle-mounted terminal is located is collected, where the noise information of the vehicle includes noise information inside the vehicle, such as engine sound in a compartment, and noise information outside the vehicle, such as construction noise of a current road, and therefore, after the noise information is collected, a noise type corresponding to the noise information needs to be determined, and in specific implementation, after the noise information is collected, a source of the noise information can be determined, so as to determine the noise type of the noise information.
It should be noted that, the timing of collecting the noise information may be when a playing instruction of the audio information is detected, that is, when the audio information is to be played; or the noise information can be collected in real time in the process of playing the audio information, so that the intelligent playing of the audio is realized.
Step S20, if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode.
If the vehicle-mounted terminal determines that the noise type of the currently acquired noise information is external noise, a first playing mode corresponding to the audio information is determined according to the noise type, and the audio information is played in the determined first playing mode, wherein the audio information can be music, navigation voice, telephone voice and the like.
Specifically, in an embodiment, step S20 includes:
step a1, if the noise type is external noise, determining frequency spectrum information corresponding to the noise information, and generating sound waves corresponding to the frequency spectrum information;
in an embodiment, if the noise type of the collected noise information is determined to be external noise, the noise information is determined to correspond to spectrum information, and it is known that sounds are sound waves and all consist of certain spectrums, therefore, after the noise information is collected, spectrum analysis can be performed on the noise information to determine the spectrum information corresponding to the noise information, and finally, a corresponding sound wave is generated according to the spectrum information, wherein the phase of the sound wave is opposite to that of the noise information, and the amplitude is equivalent to that of the noise information.
Step a2, playing the audio information and the sound wave.
The vehicle-mounted terminal plays the generated sound wave while playing the audio information, that is, in an embodiment, the first playing mode is to generate a sound wave with a phase opposite to that of the noise information, and to play the audio information and the generated sound wave at the same time.
It can be appreciated that, in one embodiment, since the phase of the generated sound wave is opposite to the phase of the noise information, and the amplitude of the sound wave is equivalent to the amplitude of the noise information, the generated sound wave can be played to cancel the noise information, so as to obtain a relatively quiet playing environment in which the audio information is played, so that the driver can hear clearer audio content, such as music, navigation voice or telephone voice.
In another embodiment, step S20 includes:
step b1, if the noise type is external noise, determining a first playing volume corresponding to the noise information;
in another embodiment, if it is determined that the noise type of the acquired noise information is external noise, a first playing volume corresponding to the noise information, that is, a loudness of the noise information is determined, and in specific implementation, the first playing volume of the noise is expressed in decibels.
Step b2, based on the first playing volume, determining a second playing volume corresponding to the audio information, and playing the audio information at the second playing volume.
According to the determined first playing volume, a second playing volume corresponding to the audio information is determined, and the audio information is played at the second playing volume, wherein the second playing volume is greater than the first playing volume, and in the specific implementation, the second playing volume is greater than the first playing volume by a preset decibel value, that is, in another embodiment, the audio information is played by using a sound greater than the noise information so as to cover the noise information, so that clear audio contents such as music, navigation voice or telephone voice and the like can be heard.
Further, in another embodiment, when collecting noise information of a vehicle in which the vehicle-mounted terminal is located, the vehicle-mounted camera is also used for acquiring state information of passengers in a current vehicle compartment, wherein the state information includes a waking state and a sleeping state, and finally, a playing mode of the audio information is determined according to a noise type of the noise information and the state information of the passengers.
Specifically, when the state information of the passenger is in a dormant state, the volume is gradually reduced to play the audio information until the audio information stops playing; when the state information of the passenger is in the awake state, the playback mode and the like are determined according to the noise type as described above.
In this embodiment, if it is detected that there is audio information playing in the terminal, noise information of a vehicle in which the terminal is located is collected, and a noise type corresponding to the noise information is determined; and if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode. When the playing of the audio information is detected, the playing mode of the audio is determined according to the noise type by collecting the noise information, and the audio information is played in the determined playing mode, so that the playing of the audio information is automatically adjusted according to the noise information, and the intelligent playing of the audio information is realized.
Further, based on the first embodiment of the audio playing method of the present invention, a second embodiment of the audio playing method of the present invention is provided.
The second embodiment of the audio playback method differs from the first embodiment of the audio playback method in that, referring to fig. 3, after step S10, the audio playback method further includes:
step S30, if the noise type is internal noise, determining a source of the noise information;
step S40, if the source of the noise information is the terminal, determining a first playback level of the noise information;
step S50, determining a second playing mode corresponding to the audio information based on the first playing level, and playing the audio information in the second playing mode.
In this embodiment, if the noise type of the collected noise information is internal noise, the source of the noise information is determined, and the playing mode is determined according to the source of the noise information, so as to play the audio information.
The respective steps will be described in detail below:
step S30, if the noise type is internal noise, determining a source of the noise information;
in this embodiment, if it is determined that the noise type of the collected noise information is internal noise, the source of the noise information is determined, where the source of the noise information includes a terminal and a vehicle.
Step S40, if the source of the noise information is the terminal, determining a first playback level of the noise information;
in this embodiment, if it is determined that the source of the current noise information is the vehicle-mounted terminal, that is, the noise is generated by the vehicle-mounted terminal, if the terminal plays music, and at this time, a navigation voice needs to be played, the music at this time is the noise, and the noise is generated by the vehicle-mounted terminal itself, a first playing level of the noise information is determined, that is, two sounds, one is the current audio information and the other is the noise information, are played at the current vehicle-mounted terminal, and therefore, a primary-secondary relationship between the two needs to be distinguished.
In specific implementation, the playing level may be determined according to the audio type, that is, a playing level-audio type mapping table is set in advance, and after the noise information is collected, the first playing level of the noise information is determined by determining the audio type, such as music, navigation voice, telephone voice, and the like, and then searching the playing level-audio type mapping table.
Step S50, determining a second playing mode corresponding to the audio information based on the first playing level, and playing the audio information in the second playing mode.
In this embodiment, according to a first playing level of the noise information, determining a second playing manner corresponding to the audio information, and playing the audio information in the second playing manner, where the first playing level may be divided into a set-top level and a non-set-top level, and if the first playing level of the noise information is the set-top level, which indicates that the noise information should be preferentially played in any case, determining that the second playing manner is to terminate playing of the audio information; if the first playing level of the noise information is a non-set-top level, which indicates that the noise information can be set top, the second playing mode is determined to be replacement playing, that is, the noise information is terminated and the audio information is played.
Further, in another embodiment, the step S50 includes:
step c1, comparing the second playback level of the audio information with the first playback level;
in another embodiment, the in-vehicle terminal compares the second playing level of the audio information with the first playing level of the noise, wherein the determination of the second playing level of the audio information is similar to the determination of the first playing level, and is not repeated herein.
Step c2, if the second playback level is less than the first playback level, determining a third playback volume of the audio information, and playing the audio information at the third playback volume;
if the second playing level is less than the first playing level, determining a third playing volume of the audio information, and playing the audio information at the third playing volume, that is, in another embodiment, each audio type corresponds to a playing level, and it should be understood that, since the current audio information and the noise information are played by the vehicle-mounted terminal and are desired by the driver, when the second playing level is less than the first playing level, determining the third playing volume of the audio information, wherein the third playing volume is less than the playing volume of the noise information, and then playing the audio information at the third playing volume, if the driver starts navigation and wants to listen to a song, and since the navigation playing level is higher than music, when the playing level of the noise information, that is, the navigation voice, is determined to be higher than the current audio information, that is, music, and continuing to play the navigation voice, and determining a third playing volume of the music, wherein the third playing volume is smaller than the playing volume of the navigation voice, namely the music is played as background sound, so that the driver can hear the navigation voice, the music and the like.
And c3, if the second playing level is not less than the first playing level, stopping playing the noise information and playing the audio information.
If the second playing level is not less than the first playing level, the playing of the noise information is stopped, and the audio information is played, that is, when the playing level of the current audio information is determined to be not less than the playing level of the noise information, the playing of the noise information is stopped, the audio information is preferentially played, and after the current audio information is played, the noise information is continuously played.
Further, in another embodiment, after step S30, the audio playing method further includes:
step d1, if the source of the noise information is the vehicle, determining the speed of the vehicle;
in another embodiment, if the source of the noise information is a vehicle where the vehicle-mounted terminal is located, that is, the noise is generated by an engine sound emitted during the vehicle traveling process, the vehicle speed of the vehicle is determined, in the specific implementation, the vehicle-mounted terminal can directly obtain the current vehicle speed through the vehicle-mounted system, and if the terminal is an intelligent terminal such as a mobile phone, the mobile phone needs to be connected with the vehicle-mounted system first, such as bluetooth connection.
And d2, determining a fourth playing volume corresponding to the audio information based on the vehicle speed, and playing the audio information at the fourth playing volume.
According to the vehicle speed, a fourth playing volume corresponding to the audio information is determined, and the audio information is played at the fourth playing volume, that is, in another embodiment, the loudness or type of the noise information does not need to be measured or analyzed, but the roundabout is adopted, and the fourth playing volume determined by the audio information can be determined by obtaining the vehicle speed, so that the operation pressure of the vehicle-mounted terminal is reduced.
In the audio playing process, if the noise type of the collected noise information is determined to be internal noise, which source is generated is further determined, and then the audio information is played in a corresponding playing mode, so that the intelligent playing of the audio is realized.
Further, based on the first and second embodiments of the audio playing method of the present invention, a third embodiment of the audio playing method of the present invention is proposed.
The third embodiment of the audio playback method differs from the first and second embodiments of the audio playback method in that step S10 includes:
step S11, if it is detected that the terminal has the playing of the audio information, determining the vehicle information of the vehicle where the terminal is located, wherein the vehicle information comprises road information;
step S12, determining whether the audio information can be played based on the road information;
and step S13, if the terminal can be played, acquiring noise information of the vehicle where the terminal is located, and determining a noise type corresponding to the noise information.
When the audio information is detected to be played, whether the audio information is played or not is determined according to the vehicle information of the current vehicle, so that the intelligent playing of the audio is realized.
The respective steps will be described in detail below:
step S11, if it is detected that the terminal has the playing of the audio information, the vehicle information of the vehicle where the terminal is located is determined, and the vehicle information includes road information.
In this embodiment, if the vehicle-mounted terminal detects that there is playing of the audio information at the vehicle-mounted terminal, the audio type of the audio information is determined, and vehicle information of a vehicle where the vehicle-mounted terminal is located is determined, where the vehicle information includes current road information, such as a highway section, a frequently occurring section of a car accident, and the like.
Step S12, determining whether the audio information can be played based on the road information.
And determining whether the current audio information can be played or not according to the road information, wherein the audio information comprises telephone voice, a driver is distracted when answering a call and has potential safety hazards at the moment, and if the current road is determined to be a section with frequent traffic accidents through the road information at the moment, the audio information cannot be played so as to avoid interfering with driver's attentive driving. If the current road is determined to be only a common road through the road information, such as a non-traffic accident frequently occurring section, the audio information can be played.
And step S13, if the terminal can be played, acquiring noise information of the vehicle where the terminal is located, and determining a noise type corresponding to the noise information.
If the playback is determined to be possible, acquiring noise information of the current vehicle, and determining a noise type corresponding to the noise information, which is similar to the above embodiment and is not described herein again.
In another embodiment, the vehicle information includes a vehicle speed, and whether the audio information can be played is determined according to the vehicle speed, specifically, when the current vehicle speed is greater than a preset vehicle speed, a vehicle accident is likely to occur, so that the playing of the audio information is not allowed to interfere with a driver, and when the current vehicle speed is not greater than the preset vehicle speed, the audio information is allowed to be played, the noise information of the current vehicle is collected, and a noise type corresponding to the noise information is determined, which is similar to the above embodiment and is not described herein again.
When the terminal is detected to have the audio information playing, the embodiment determines whether the current driver is suitable for answering the audio information or not by determining the vehicle information of the vehicle, so that the audio intelligent playing is realized.
The invention also provides an audio playing device. The audio playing device of the present invention comprises:
the determining module is used for acquiring noise information of a vehicle where the terminal is located and determining a noise type corresponding to the noise information if the terminal is detected to play the audio information;
and the playing module is used for determining a first playing mode corresponding to the audio information based on the noise type if the noise type is external noise, and playing the audio information in the first playing mode.
Further, the playing module is configured to:
if the noise type is external noise, determining frequency spectrum information corresponding to the noise information, and generating sound waves corresponding to the frequency spectrum information;
and playing the audio information and the sound wave.
Further, the playing module is further configured to:
if the noise type is external noise, determining a first playing volume corresponding to the noise information;
and determining a second playing volume corresponding to the audio information based on the first playing volume, and playing the audio information at the second playing volume.
Further, the playing module is further configured to:
if the noise type is internal noise, determining the source of the noise information;
if the source of the noise information is the terminal, determining a first playing level of the noise information;
and determining a second playing mode corresponding to the audio information based on the first playing level, and playing the audio information in the second playing mode.
Further, the playing module is further configured to:
comparing the second playback level of the audio information to the first playback level;
if the second playing level is smaller than the first playing level, determining a third playing volume of the audio information, and playing the audio information at the third playing volume;
and if the second playing level is not less than the first playing level, stopping playing the noise information and playing the audio information.
Further, the playing module is further configured to:
if the source of the noise information is the vehicle, determining the speed of the vehicle;
and determining a fourth playing volume corresponding to the audio information based on the vehicle speed, and playing the audio information at the fourth playing volume.
Further, the determining module is further configured to:
if the terminal is detected to have the playing of the audio information, determining vehicle information of a vehicle where the terminal is located, wherein the vehicle information comprises road information;
determining whether the audio information can be played based on the road information;
and if the terminal can be played, acquiring noise information of the vehicle where the terminal is located, and determining a noise type corresponding to the noise information.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores an audio playing program, and the audio playing program realizes the steps of the audio playing method as described above when being executed by a processor.
The method implemented when the audio playing program running on the processor is executed may refer to each embodiment of the audio playing method of the present invention, and details are not described herein again.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An audio playing method is characterized in that the audio playing method is applied to a terminal, and the audio playing method comprises the following steps:
if the terminal is detected to have the playing of the audio information, acquiring noise information of a vehicle where the terminal is located, and determining a noise type corresponding to the noise information;
and if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode.
2. The audio playing method according to claim 1, wherein if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode comprises:
if the noise type is external noise, determining frequency spectrum information corresponding to the noise information, and generating sound waves corresponding to the frequency spectrum information;
and playing the audio information and the sound wave.
3. The audio playing method according to claim 1, wherein if the noise type is external noise, determining a first playing mode corresponding to the audio information based on the noise type, and playing the audio information in the first playing mode comprises:
if the noise type is external noise, determining a first playing volume corresponding to the noise information;
and determining a second playing volume corresponding to the audio information based on the first playing volume, and playing the audio information at the second playing volume.
4. The audio playing method according to claim 1, wherein after the step of collecting noise information of a vehicle in which the terminal is located and determining a noise type corresponding to the noise information if it is detected that there is audio information playing at the terminal, the audio playing method further comprises:
if the noise type is internal noise, determining the source of the noise information;
if the source of the noise information is the terminal, determining a first playing level of the noise information;
and determining a second playing mode corresponding to the audio information based on the first playing level, and playing the audio information in the second playing mode.
5. The audio playing method of claim 4, wherein the step of determining a second playing mode corresponding to the audio information based on the first playing level and playing the audio information in the second playing mode comprises:
comparing the second playback level of the audio information to the first playback level;
if the second playing level is smaller than the first playing level, determining a third playing volume of the audio information, and playing the audio information at the third playing volume;
and if the second playing level is not less than the first playing level, stopping playing the noise information and playing the audio information.
6. The audio playback method as claimed in claim 4, wherein after the step of determining the source of the noise information if the noise type is an internal noise, the audio playback method further comprises:
if the source of the noise information is the vehicle, determining the speed of the vehicle;
and determining a fourth playing volume corresponding to the audio information based on the vehicle speed, and playing the audio information at the fourth playing volume.
7. The audio playing method according to any one of claims 1 to 6, wherein the step of collecting noise information of a vehicle in which the terminal is located and determining a noise type corresponding to the noise information, if it is detected that there is audio information playing in the terminal, comprises:
if the terminal is detected to have the playing of the audio information, determining vehicle information of a vehicle where the terminal is located, wherein the vehicle information comprises road information;
determining whether the audio information can be played based on the road information;
and if the terminal can be played, acquiring noise information of the vehicle where the terminal is located, and determining a noise type corresponding to the noise information.
8. An audio playback apparatus, comprising:
the determining module is used for acquiring noise information of a vehicle where the terminal is located and determining a noise type corresponding to the noise information if the terminal is detected to play the audio information;
and the playing module is used for determining a first playing mode corresponding to the audio information based on the noise type if the noise type is external noise, and playing the audio information in the first playing mode.
9. A terminal, characterized in that the terminal comprises: memory, processor and an audio playback program stored on the memory and executable on the processor, which audio playback program, when executed by the processor, carries out the steps of the audio playback method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon an audio playback program which, when executed by a processor, implements the steps of the audio playback method according to any one of claims 1 to 7.
CN202010227657.7A 2020-03-26 2020-03-26 Audio playing method, device, terminal and computer readable storage medium Withdrawn CN111427535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010227657.7A CN111427535A (en) 2020-03-26 2020-03-26 Audio playing method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010227657.7A CN111427535A (en) 2020-03-26 2020-03-26 Audio playing method, device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111427535A true CN111427535A (en) 2020-07-17

Family

ID=71551641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010227657.7A Withdrawn CN111427535A (en) 2020-03-26 2020-03-26 Audio playing method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111427535A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4084002A1 (en) * 2021-04-26 2022-11-02 Beijing Xiaomi Mobile Software Co., Ltd. Information processing method, electronic equipment, storage medium, and computer program product
CN115657991A (en) * 2022-12-09 2023-01-31 深圳曦华科技有限公司 Display screen control method of intelligent automobile, domain controller and related device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4084002A1 (en) * 2021-04-26 2022-11-02 Beijing Xiaomi Mobile Software Co., Ltd. Information processing method, electronic equipment, storage medium, and computer program product
US11682412B2 (en) 2021-04-26 2023-06-20 Beijing Xiaomi Mobile Software Co., Ltd. Information processing method, electronic equipment, and storage medium
CN115657991A (en) * 2022-12-09 2023-01-31 深圳曦华科技有限公司 Display screen control method of intelligent automobile, domain controller and related device

Similar Documents

Publication Publication Date Title
US8019454B2 (en) Audio processing system
JP5548541B2 (en) Information providing system and in-vehicle device
US7049941B2 (en) Method and system for alerting a user of a mobile communication device
US7454351B2 (en) Speech dialogue system for dialogue interruption and continuation control
CN109273006B (en) Voice control method of vehicle-mounted system, vehicle and storage medium
US20080032663A1 (en) Vehicle audio integrator
CN110505603B (en) Bluetooth phone privacy protection method and vehicle machine
JP2006516012A (en) Providing services according to the speed in the car
CN111427535A (en) Audio playing method, device, terminal and computer readable storage medium
CN104608710B (en) Method and apparatus for the control of automobile wireless radio station privacy mode
JP5413321B2 (en) Communication system, in-vehicle terminal, and portable terminal
CN110648663A (en) Vehicle-mounted audio management method, device, equipment, automobile and readable storage medium
JP5920104B2 (en) Voice control device for vehicle
KR20100102615A (en) Designed console for providing a variety of cellular services to a driver of a motor vehicle and his environment
TW200922272A (en) Automobile noise suppression system and method thereof
WO2020042154A1 (en) Audio processing method and device for vehicle
CN114138228A (en) Vehicle-mounted audio prompt tone method and device and vehicle-mounted terminal
JP2019120828A (en) Privacy protection system
CN113421564A (en) Voice interaction method, voice interaction system, server and storage medium
JP5350567B1 (en) Portable terminal device, vehicle-mounted device, information presentation method, and information presentation program
CN108806682B (en) Method and device for acquiring weather information
JP2009529843A (en) Improvement of wireless “hands-free” kit for automobiles
CN115268819A (en) In-vehicle multimedia sound zone switching method and device, vehicle and storage medium
CN108550378B (en) Method and device for playing files by vehicle-mounted system
CN111078184A (en) Vehicle-mounted machine volume compensation method and device, storage medium and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 No.7, Xinxing Industrial Park, Fuhai Avenue, Xinhe community, Fuhai street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN MICRO TESTING DETECTION Co.,Ltd.

Address before: 518000 102a.302a factory building, east block, Laobing Fufang industrial city, No. 3012, Xingye Road, Yongfeng community, Xixiang street, Bao'an District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN MICRO TESTING DETECTION Co.,Ltd.

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200717