CN111208970B - Audio playing method and audio playing device - Google Patents

Audio playing method and audio playing device Download PDF

Info

Publication number
CN111208970B
CN111208970B CN202010009663.5A CN202010009663A CN111208970B CN 111208970 B CN111208970 B CN 111208970B CN 202010009663 A CN202010009663 A CN 202010009663A CN 111208970 B CN111208970 B CN 111208970B
Authority
CN
China
Prior art keywords
audio playing
playing device
audio
distance
space
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
CN202010009663.5A
Other languages
Chinese (zh)
Other versions
CN111208970A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202010009663.5A priority Critical patent/CN111208970B/en
Publication of CN111208970A publication Critical patent/CN111208970A/en
Application granted granted Critical
Publication of CN111208970B publication Critical patent/CN111208970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application is applicable to the technical field of audio processing, and provides an audio playing method and an audio playing device, wherein the method comprises the following steps: when an audio playing instruction is acquired, acquiring distance information through a distance sensor arranged on the first audio playing device, and calculating the occupied area of the space where the first audio playing device is positioned according to the distance information; acquiring an environmental video of the first audio playing device through a shooting device arranged on the first audio playing device, and determining the number of people in the environmental video; and calculating a first space concentration according to the occupied area and the number of people, and adjusting the volume of the first audio playing device according to the first space concentration. Through the method, the audio playing device can adaptively adjust the volume, so that manual adjustment of a user is avoided, the operation of the user is simplified, the convenience is improved, and the user experience is further improved.

Description

Audio playing method and audio playing device
Technical Field
The application belongs to the technical field of audio processing, and particularly relates to an audio playing method and an audio playing device.
Background
With the continuous development of audio processing technology, audio playing devices are more and more intelligent, and various intelligent sound boxes are generated. In the prior art, when the volume of the intelligent sound box is adjusted, the following methods are generally available: one is that the user adjusts the volume of intelligent audio amplifier through adjusting the volume button on the intelligent audio amplifier, and one is that the user adjusts the volume of intelligent audio amplifier through the remote controller, and another is that the user adjusts the volume of intelligent audio amplifier through speech control's mode. The above modes all need the user to carry out manual adjustment, and the convenience is lower, influences user experience.
Disclosure of Invention
The embodiment of the application provides an audio playing method and an audio playing device, which can solve the problem that the existing intelligent sound box cannot adaptively adjust the volume.
In a first aspect, an embodiment of the present application provides an audio playing method, including:
when an audio playing instruction is acquired, acquiring distance information through a distance sensor arranged on the first audio playing device, and calculating the occupied area of the space where the first audio playing device is positioned according to the distance information;
acquiring an environmental video of the first audio playing device through a shooting device arranged on the first audio playing device, and determining the number of people in the environmental video;
And calculating a first space concentration according to the occupied area and the number of people, and adjusting the volume of the first audio playing device according to the first space concentration.
In a possible implementation manner of the first aspect, the distance information includes N distance values, where each distance value is a distance between a measurement point corresponding to one measurement angle of the distance sensor and the distance sensor, and the measurement point is located on a boundary of the space;
the distance information is acquired by a distance sensor arranged on the first audio playing device, and the method comprises the following steps:
acquiring a preset angle interval, taking the current measured angle of the distance sensor as an initial angle, determining N measured angles of the distance sensor according to the initial angle and the angle interval, wherein,θ is the angular interval;
and respectively acquiring a distance value corresponding to each measuring angle through the distance sensor.
In a possible implementation manner of the first aspect, the calculating, according to the distance information, a floor area of a space where the first audio playing device is located includes:
the first audio playing device is taken as a reference point, and the positions of the measuring points corresponding to all the measuring angles are determined according to the initial angles, the N measuring angles and the distance values corresponding to all the measuring angles;
And calculating the occupied area of the space according to the positions of the measuring points.
In a possible implementation manner of the first aspect, the calculating a first spatial concentration according to the floor area and the number of people, and adjusting a volume of the first audio playing device according to the first spatial concentration includes:
dividing the floor area by the number of people to obtain the first spatial concentration;
and determining a first target volume corresponding to the first space concentration according to a preset corresponding table, and adjusting the volume of the first audio playing device to the first target volume.
In a possible implementation manner of the first aspect, after adjusting the volume of the first audio playing device according to the first spatial concentration, the method further includes:
receiving an interference mixed signal of the environment where the first audio playing device is located, wherein the interference mixed signal comprises audio signals played by at least one second audio playing device except the first audio playing device;
determining the number of second audio playing devices corresponding to the interference mixed signals and the equipment distance between each second audio playing device and the first audio playing device;
And calculating a second spatial concentration according to the number of the second audio playing devices and the distance between the devices, and adjusting the volume of the first audio playing device according to the second spatial concentration and the first spatial concentration.
In a possible implementation manner of the first aspect, the determining the number of second audio playing devices corresponding to the interference mixed signal and the device distance between each second audio playing device and the first audio playing device includes:
separating each audio signal from the interference mixed signal, and counting the number of the audio signals to be the number of the second audio playing devices;
and respectively calculating the equipment distance between the second audio playing device corresponding to each audio signal and the first audio playing device according to the intensity of each audio signal.
In a possible implementation manner of the first aspect, the calculating a second spatial concentration according to the number of the second audio playing devices and the distances between the devices, and adjusting the volume of the first audio playing device according to the second spatial concentration and the first spatial concentration, includes:
Selecting the maximum equipment distance from the equipment distances as an interference radius, and calculating an interference area according to the interference radius;
dividing the interference area by the number of the second audio playing devices to obtain the second spatial concentration;
carrying out weighted summation on the first space concentration and the second space concentration to obtain a third space concentration;
and determining a second target volume corresponding to the third spatial concentration according to a preset corresponding table, and adjusting the volume of the first audio playing device to the second target volume.
In a second aspect, an embodiment of the present application provides an audio playing device, including:
the area calculation unit is used for acquiring distance information through a distance sensor arranged on the first audio playing device when the audio playing instruction is acquired, and calculating the occupied area of the space where the first audio playing device is located according to the distance information;
the device comprises a person number determining unit, a first audio playing unit and a second audio playing unit, wherein the person number determining unit is used for acquiring an environment video of the first audio playing unit through a shooting device arranged on the first audio playing unit and determining the number of persons in the environment video;
and the volume adjusting unit is used for calculating a first space concentration according to the occupied area and the number of people and adjusting the volume of the first audio playing device according to the first space concentration.
In a third aspect, an embodiment of the present application provides an audio playing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the audio playing method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the audio playing method according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to perform the audio playing method according to any one of the first aspects.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
According to the embodiment of the application, when the audio playing instruction of the first audio playing device is acquired, distance information is acquired through the distance sensor arranged on the first audio playing device, and the occupied area of the space where the first audio playing device is positioned is calculated according to the distance information; acquiring an environmental video of the first audio playing device through a shooting device arranged on the first audio playing device, and determining the number of people in the environmental video; because the playing volume of the audio playing device has a certain relation with the space where the audio playing device is located and the number of people in the space, the occupied area of the space where the audio playing device is located and the number of people in the space are determined, then a first space concentration is calculated according to the occupied area and the number of people, and then the volume of the first audio playing device is adjusted according to the first space concentration. According to the method, the volume of the audio playing device can be adjusted in a self-adaptive mode according to the surrounding environment, manual adjustment of a user is avoided, operation of the user is simplified, convenience is improved, and user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an audio playing system according to an embodiment of the present application;
fig. 2 is a flowchart of an audio playing method according to an embodiment of the present application;
FIG. 3 is a schematic view of a measurement angle of a distance sensor according to an embodiment of the present application;
fig. 4 is a flowchart of an audio playing method according to another embodiment of the present application;
fig. 5 is a block diagram of an audio playing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an audio playing device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
An application scenario of the audio playing method in the embodiment of the present application is described first. Referring to fig. 1, a schematic diagram of an audio playing system according to an embodiment of the present application is provided. As shown, the audio playback system may include an audio playback device 101, a distance sensor 102 mounted on the audio playback device 101, and a camera 103 mounted on the audio playback device 101. The audio playing device is respectively connected with the distance sensor and the shooting device.
In practical application, the distance sensor can be arranged on the audio playing device through the rotating bracket, and the distance sensor can rotate 360 degrees through the rotating bracket; of course, the audio playing device may be mounted on the rotating support, and then the distance sensor may be mounted on the audio playing device, so that the distance sensor may synchronously rotate along with the audio playing device. By the method, the distance sensor can measure the distance of each azimuth.
As described above, the photographing device may be mounted on the audio playing device through the rotating bracket, or the audio playing device may be mounted on the rotating bracket, and then the photographing device may be mounted on the audio playing device, or the photographing device itself may have a function of 360 degrees rotation photographing. By the method, the shooting device can shoot the environment around the audio playing device in all directions.
The distance sensor measures distance information, and the shooting device shoots to obtain an environment video; the audio playing device acquires the distance information measured by the distance sensor and the environment video shot by the shooting device, and then the audio volume is adaptively adjusted according to the acquired distance information and the environment video by using the audio playing method in the embodiment of the application.
Fig. 2 shows a flow chart of an audio playing method according to an embodiment of the present application, which may include, by way of example and not limitation, the following steps:
s201, when an audio playing instruction is acquired, acquiring distance information through a distance sensor arranged on the first audio playing device, and calculating the occupied area of the space where the first audio playing device is located according to the distance information.
In practical application, the audio playing instruction may be a control signal triggered by the user through a key, or an infrared signal sent by the user to the first audio playing device through the remote controller, or a voice instruction sent by the user to the first audio playing device through voice control.
The first audio playing device is an audio playing device corresponding to the audio playing instruction. The first audio playing device may be a sound box or an electronic device (such as a mobile phone, a computer, etc.) with an audio playing function.
The distance sensor can be a distance measuring device such as an infrared distance measuring device, a laser distance measuring device and the like.
In one embodiment, the distance information includes N distance values, where each distance value is a distance between a measurement point corresponding to one measurement angle of the distance sensor and the distance sensor, and the measurement point is located on a boundary of the space.
In practical application, the distance sensor sends a ranging signal along a measuring angle, the ranging signal reaches a measuring point on a boundary (such as a wall surface and other objects) of a space along the measuring angle, and the ranging signal is reflected back to a reflection signal through the measuring point, and after the distance sensor receives the reflection signal, the distance between the distance sensor and the measuring point can be calculated according to the ranging signal and the reflection signal.
Optionally, in S201, obtaining distance information by a distance sensor mounted on the first audio playing device includes:
s11, acquiring a preset angle interval, taking the current measurement angle of the distance sensor as an initial angle, and according to the initial angleThe degrees and the angle intervals determine N measurement angles of the distance sensor, wherein,θ is the angular interval.
The current measurement angle of the distance sensor may be a transmission direction of a ranging signal of the current distance sensor.
Exemplary, referring to fig. 3, a schematic diagram of a measurement angle of a distance sensor according to an embodiment of the present application is provided. As shown in fig. 3, considering the distance sensor as one particle O, the transmission direction of the ranging signal of the current distance sensor may be defined as an initial angle, the angle interval is 90 degrees, and it is assumed that the angle division is performed in a clockwise direction. Accordingly, the first measured angle is the current initial angle (as in the figure A direction); the second measurement angle is rotated clockwise by 90 degrees based on the initial angle (as shown in the figure +.>A direction); the third measuring angle is rotated clockwise by 90 degrees based on the second measuring angle (as shown in the figure +.>A direction); the fourth measuring angle is rotated 90 degrees clockwise based on the third measuring angle (as shown in the figureDirection).
S12, respectively acquiring a distance value corresponding to each measuring angle through the distance sensor.
In practical applications, as described in the embodiment of fig. 1, the distance sensor may be controlled to rotate to each measurement angle, so as to obtain a distance value corresponding to each measurement angle.
Illustratively, continuing with the example in S11, a ranging signal is first transmitted at the current location of the range sensor, i.e., at an initial angle, resulting in a corresponding first range value. And then controlling the distance sensor to rotate 90 degrees clockwise, and transmitting a distance measurement signal at a first measurement angle to obtain a corresponding second distance value. By analogy, a total of 4 distance values can be obtained.
In one embodiment, in S201, calculating a floor area of a space where the first audio playing device is located according to the distance information includes:
s21, the first audio playing device is taken as a reference point, and the positions of the measuring points corresponding to the measuring angles are determined according to the initial angles, the N measuring angles and the distance values corresponding to the measuring angles.
S22, calculating the occupied area of the space according to the positions of the measuring points.
In practical applications, a coordinate system may be established based on the initial angle and the reference point. For example, the coordinates of the reference point are defined as (0, 0), the direction of the reference point along the initial angle is defined as the y-axis positive direction, and then the x-axis positive direction is determined according to the right-hand rule. After the coordinate system is established, the coordinates of each measuring point can be determined according to each measuring angle and the distance value corresponding to each measuring angle, and then the occupied area of the space can be calculated according to the coordinates of each measuring point.
In order to ensure that the calculated occupied area is as accurate as possible, the preset angle interval can be set smaller, so that more measurement angles can be obtained, and more measurement points can be found. The more measurement points, the more accurate the fit of the footprint of the space.
S202, acquiring an environment video of the first audio playing device through a shooting device installed on the first audio playing device, and determining the number of people in the environment video.
In practical application, the shooting device can be controlled to perform 360-degree rotation shooting, so that the environmental video around the first audio playing device can be obtained. The number of people in the ambient video can then be determined using existing video object recognition algorithms.
S203, calculating a first space concentration according to the occupied area and the number of people, and adjusting the volume of the first audio playing device according to the first space concentration.
In one embodiment, step S203 may include:
s31, dividing the occupied area by the number of people to obtain the first space concentration.
The first space has larger density, which means that the number of people in the space where the first audio playing device is located is smaller, and the space is relatively quiet, namely the required volume is smaller.
In contrast, the first space has smaller density, which means that the number of people in the space where the first audio playing device is located is larger, and the number of people in the space is noisier, and the required volume is larger.
S32, determining a first target volume corresponding to the first space concentration according to a preset corresponding table, and adjusting the volume of the first audio playing device to the first target volume.
In practical applications, the correspondence table of the first spatial concentration and the volume may be defined empirically in advance. After the first spatial density is calculated, directly searching the target volume corresponding to the first spatial density in the corresponding table.
According to the embodiment of the application, when the audio playing instruction of the first audio playing device is acquired, distance information is acquired through the distance sensor arranged on the first audio playing device, and the occupied area of the space where the first audio playing device is positioned is calculated according to the distance information; acquiring an environmental video of the first audio playing device through a shooting device arranged on the first audio playing device, and determining the number of people in the environmental video; because the playing volume of the audio playing device has a certain relation with the space where the audio playing device is located and the number of people in the space, the occupied area of the space where the audio playing device is located and the number of people in the space are determined, then a first space concentration is calculated according to the occupied area and the number of people, and then the volume of the first audio playing device is adjusted according to the first space concentration. According to the method, the volume of the audio playing device can be adjusted in a self-adaptive mode according to the surrounding environment, manual adjustment of a user is avoided, operation of the user is simplified, convenience is improved, and user experience is further improved.
Fig. 4 shows a flowchart of an audio playing method according to another embodiment of the present application, which may include, by way of example and not limitation, the following steps:
s401, when an audio playing instruction of a first audio playing device is acquired, distance information is acquired through a distance sensor arranged on the first audio playing device, and the occupied area of the space where the first audio playing device is located is calculated according to the distance information.
S402, acquiring an environment video of the first audio playing device through a shooting device installed on the first audio playing device, and determining the number of people in the environment video.
S403, calculating a first space concentration according to the occupied area and the number of people, and adjusting the volume of the first audio playing device according to the first space concentration.
The steps S401 to S403 are the same as the steps S201 to S203, and specific reference may be made to the descriptions in the embodiments of the steps S201 to S203, and the details are not repeated here.
In practical applications, when the first audio playing device starts playing, the volume may be too large, which easily causes discomfort to the ear, or the volume is too small, resulting in unclear hearing of the user. By the method in steps S401 to S403, it is possible to adaptively adjust to an appropriate volume according to the current playing environment.
S404, receiving the interference mixed signal of the environment where the first audio playing device is located.
Wherein the interference mixed signal comprises an audio signal played by at least one second audio playing device except the first audio playing device.
In practical applications, when the first audio playing device plays, other audio playing devices (i.e. the second audio playing device) may play, which may cause interference to the audio played by the first audio playing device.
If there are a plurality of second audio playback apparatuses, the first audio playback apparatus will receive a mixed signal, i.e., an interference mixed signal, in which all the audio signals played by the second audio playback apparatuses are mixed together.
S405, determining the number of second audio playing devices corresponding to the interference mixed signals and the equipment distance between each second audio playing device and the first audio playing device.
In one embodiment, step S405 may include:
s41, separating each audio signal from the interference mixed signal, and counting the number of the audio signals to be the number of the second audio playing devices.
The individual audio signals may be separated from the interfering mixed signal using existing signal separation algorithms (e.g., blind source separation algorithms, etc.). There are several audio signals and correspondingly several second audio playing means.
S42, according to the intensity of each audio signal, respectively calculating the equipment distance between the second audio playing device corresponding to each audio signal and the first audio playing device.
The individual audio signals separated in step S41 include signal amplitude and signal frequency. Wherein the signal amplitude can be used to characterize the strength of the audio signal. According to the attenuation rule of the signals, the equipment distance corresponding to the signal amplitude of each audio signal can be calculated.
S406, calculating a second space concentration according to the number of the second audio playing devices and the distance between the devices, and adjusting the volume of the first audio playing device according to the second space concentration and the first space concentration.
The volume is initially adjusted in steps S401-S403, and on the basis of this, the volume is further adjusted by the method in steps S404-S406, further considering the audio interference situation in the playing environment.
In one embodiment, step S406 may include:
s51, selecting the maximum equipment distance from the equipment distances as an interference radius, and calculating an interference area according to the interference radius.
For example, it is assumed that there are two second audio devices, wherein the device distance between the first second audio playing means and the first audio playing means is 2m and the device distance between the second audio playing means and the first audio playing means is 5m. Then the largest device distance 5m of the two device distances is taken as the interference radius, and then the interference area is calculated to be 25 pi according to the calculation formula of the circle area.
By the method, the maximum interference area causing interference to the first audio playing device can be determined.
And S52, dividing the interference area by the number of the second audio playing devices to obtain the second spatial concentration.
The second space is more dense, which means that the number of second audio playing means interfering with the first audio playing means is smaller, or the second audio playing means is farther from the device of the first audio playing means, in which case the required volume is smaller.
In contrast, the second space is less dense, which means that the number of second audio playing devices that interfere with the first audio playing device is greater, or the distance between the second audio playing device and the device of the first audio playing device is closer, in which case the required volume is greater.
And S53, carrying out weighted summation on the first spatial concentration and the second spatial concentration to obtain a third spatial concentration.
In practical application, when the first spatial density and the second spatial density are weighted and summed, corresponding weights can be selected according to the magnitudes of the first spatial density and the second spatial density.
For example, when the first spatial concentration is greater and the second spatial concentration is smaller, it is indicated that the interference of the second audio playing device on the first audio playing device is greater, and at this time, the weight corresponding to the second spatial concentration may be increased.
When the first space concentration is smaller and the second space concentration is larger, the number of people in the space is more, the interference influence of the personnel noise on the first audio playing device is larger, and the weight corresponding to the first space concentration can be increased.
S54, determining a second target volume corresponding to the third space concentration according to a preset corresponding table, and adjusting the volume of the first audio playing device to the second target volume.
In practical applications, the correspondence table of the third spatial concentration and the volume may be defined empirically in advance. And after the third spatial density is calculated, directly searching the target volume corresponding to the third spatial density in the corresponding table.
According to the embodiment of the application, after the volume of the first audio playing device is adjusted according to the first spatial concentration, the interference mixed signal of the environment where the first audio playing device is located is received, the number of second audio playing devices corresponding to the interference mixed signal and the equipment distance between each second audio playing device and the first audio playing device are determined, then the second spatial concentration is calculated according to the number of the second audio playing devices and the equipment distance, namely, the interference condition of other audio playing devices is considered, and the volume of the first audio playing device is adjusted according to the second spatial concentration and the first spatial concentration. By the method, when interference of other audio playing devices exists, the volume can be adjusted adaptively, so that the audio playing devices are more intelligent, and user experience is further improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Corresponding to the audio playing method described in the above embodiments, fig. 5 shows a block diagram of an audio playing device according to an embodiment of the present application, and for convenience of explanation, only the portions related to the embodiments of the present application are shown.
Referring to fig. 5, the apparatus includes:
the area calculating unit 51 is configured to, when an audio playing instruction of the first audio playing device is acquired, acquire distance information through a distance sensor installed on the first audio playing device, and calculate an area of a space where the first audio playing device is located according to the distance information.
The person number determining unit 52 is configured to acquire an environmental video of the first audio playing device through a photographing device mounted on the first audio playing device, and determine the number of persons in the environmental video.
And a volume adjusting unit 53 for calculating a first spatial concentration according to the area and the number of people, and adjusting the volume of the first audio playing device according to the first spatial concentration.
Optionally, the distance information includes N distance values, where each distance value is a distance between a measurement point corresponding to a measurement angle of the distance sensor and the distance sensor, and the measurement point is located on a boundary of the space.
Optionally, the area calculation unit 51 includes:
an acquisition module for acquiring a preset angle interval, taking the current measurement angle of the distance sensor as an initial angle, and determining N measurement angles of the distance sensor according to the initial angle and the angle interval, wherein,θ is the angular interval.
And the distance value calculation module is used for respectively acquiring the distance value corresponding to each measuring angle through the distance sensor.
Optionally, the area calculation unit 51 further includes:
the determining module is used for determining the positions of the measuring points corresponding to the measuring angles according to the initial angles, the N measuring angles and the distance values corresponding to the measuring angles by taking the first audio playing device as a reference point.
And the area calculation module is used for calculating the area of the space according to the positions of the measurement points.
Optionally, the volume adjusting unit 53 includes:
And the first calculation module is used for dividing the area by the number of people to obtain the first space concentration.
The first adjusting module is used for determining a first target volume corresponding to the first space density according to a preset corresponding table, and adjusting the volume of the first audio playing device to the first target volume.
Optionally, the apparatus 5 further comprises:
the interference signal receiving unit 54 is configured to receive an interference mixed signal of an environment where the first audio playing device is located after adjusting the volume of the first audio playing device according to the first spatial concentration, where the interference mixed signal includes an audio signal played by at least one second audio playing device other than the first audio playing device.
And the device distance determining unit 55 is configured to determine the number of second audio playing devices corresponding to the interference mixed signal, and a device distance between each second audio playing device and the first audio playing device.
And a volume correction unit 56, configured to calculate a second spatial concentration according to the number of second audio playing devices and the distances between the devices, and adjust the volume of the first audio playing device according to the second spatial concentration and the first spatial concentration.
Optionally, the device distance determining unit 55 includes:
and the separation module is used for separating each audio signal from the interference mixed signal, counting the number of the audio signals and obtaining the number of the second audio playing devices.
And the second calculation module is used for calculating the equipment distance between the second audio playing device corresponding to each audio signal and the first audio playing device according to the intensity of each audio signal.
Optionally, the volume correction unit 56 includes:
and the selecting module is used for selecting the maximum equipment distance from the equipment distances as an interference radius, and calculating the interference area according to the interference radius.
And the third calculation module is used for dividing the interference area by the number of the second audio playing devices to obtain the second spatial concentration.
And the weighted summation module is used for weighted summation of the first spatial concentration and the second spatial concentration to obtain a third spatial concentration.
And the volume correction module is used for determining a second target volume corresponding to the third space concentration according to a preset corresponding table and adjusting the volume of the first audio playing device to the second target volume.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
In addition, the audio playing device shown in fig. 5 may be a software unit, a hardware unit, or a unit combining soft and hard, which are built in an existing terminal device, or may be integrated into the terminal device as an independent pendant, or may exist as an independent terminal device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Fig. 6 is a schematic structural diagram of an audio playing device according to an embodiment of the present application. As shown in fig. 6, the audio playing device 6 of this embodiment includes: at least one processor 60 (only one shown in fig. 6), a memory 61 and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the various audio playback method embodiments described above when executing the computer program 62.
The audio playing device can be a desktop computer, a notebook computer, a palm computer and other devices with audio playing functions. The audio playback device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the audio playing device 6 and is not meant to be limiting as to the audio playing device 6, and may include more or less components than illustrated, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), the processor 60 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the audio playback device 6, such as a hard disk or a memory of the audio playback device 6. The memory 61 may also be an external storage device of the audio playing apparatus 6 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the audio playing apparatus 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the audio playing apparatus 6. The memory 61 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to an audio playback device, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. An audio playing method, comprising:
when an audio playing instruction is acquired, acquiring distance information through a distance sensor arranged on a first audio playing device, and calculating the occupied area of the space where the first audio playing device is positioned according to the distance information;
Acquiring an environmental video of the first audio playing device through a shooting device arranged on the first audio playing device, and determining the number of people in the environmental video;
calculating a first spatial concentration according to the occupied area and the number of people;
receiving an interference mixed signal of the environment where the first audio playing device is located, wherein the interference mixed signal comprises audio signals played by at least one second audio playing device except the first audio playing device;
determining the number of second audio playing devices corresponding to the interference mixed signals and the equipment distance between each second audio playing device and the first audio playing device;
calculating a second spatial concentration according to the number of the second audio playing devices and the distance between the devices;
and adjusting the volume of the first audio playing device according to the second spatial concentration and the first spatial concentration.
2. The audio playing method according to claim 1, wherein the distance information includes N distance values, wherein each distance value is a distance between a measurement point corresponding to one measurement angle of the distance sensor and the distance sensor, and the measurement point is located on a boundary of the space;
The distance information is acquired by a distance sensor arranged on the first audio playing device, and the method comprises the following steps:
acquiring a preset angle interval, taking the current measured angle of the distance sensor as an initial angle, determining N measured angles of the distance sensor according to the initial angle and the angle interval, wherein,θ is the angular interval;
and respectively acquiring a distance value corresponding to each measuring angle through the distance sensor.
3. The audio playing method as set forth in claim 2, wherein the calculating a floor space of a space where the first audio playing device is located according to the distance information includes:
the first audio playing device is taken as a reference point, and the positions of the measuring points corresponding to all the measuring angles are determined according to the initial angles, the N measuring angles and the distance values corresponding to all the measuring angles;
and calculating the occupied area of the space according to the positions of the measuring points.
4. The audio playing method of claim 1, wherein the calculating a first spatial concentration according to the floor area and the number of people, and adjusting the volume of the first audio playing device according to the first spatial concentration, comprises:
Dividing the floor area by the number of people to obtain the first spatial concentration;
and determining a first target volume corresponding to the first space concentration according to a preset corresponding table, and adjusting the volume of the first audio playing device to the first target volume.
5. The audio playing method of claim 1, wherein the determining the number of second audio playing devices corresponding to the interference mixed signal and the device distance between each second audio playing device and the first audio playing device includes:
separating each audio signal from the interference mixed signal, and counting the number of the audio signals to be the number of the second audio playing devices;
and respectively calculating the equipment distance between the second audio playing device corresponding to each audio signal and the first audio playing device according to the intensity of each audio signal.
6. The audio playing method of claim 5, wherein the calculating a second spatial concentration according to the number of the second audio playing devices and the distances between the respective devices, and adjusting the volume of the first audio playing device according to the second spatial concentration and the first spatial concentration, comprises:
Selecting the maximum equipment distance from the equipment distances as an interference radius, and calculating an interference area according to the interference radius;
dividing the interference area by the number of the second audio playing devices to obtain the second spatial concentration;
carrying out weighted summation on the first space concentration and the second space concentration to obtain a third space concentration;
and determining a second target volume corresponding to the third spatial concentration according to a preset corresponding table, and adjusting the volume of the first audio playing device to the second target volume.
7. An audio playback apparatus, comprising:
the area calculation unit is used for acquiring distance information through a distance sensor arranged on the first audio playing device when the audio playing instruction is acquired, and calculating the occupied area of the space where the first audio playing device is located according to the distance information;
the device comprises a person number determining unit, a first audio playing unit and a second audio playing unit, wherein the person number determining unit is used for acquiring an environment video of the first audio playing unit through a shooting device arranged on the first audio playing unit and determining the number of persons in the environment video;
the receiving signal unit is used for receiving an interference mixed signal of the environment where the first audio playing device is located, wherein the interference mixed signal comprises audio signals played by at least one second audio playing device except the first audio playing device;
A data determining unit, configured to determine the number of second audio playing devices corresponding to the interference mixed signal, and a device distance between each second audio playing device and the first audio playing device;
the volume adjusting unit is used for calculating a first space concentration according to the occupied area and the number of people;
the second space concentration is also calculated according to the number of the second audio playing devices and the distance between the devices;
and the volume of the first audio playing device is adjusted according to the second spatial concentration and the first spatial concentration.
8. An audio playback device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 6.
CN202010009663.5A 2020-01-06 2020-01-06 Audio playing method and audio playing device Active CN111208970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010009663.5A CN111208970B (en) 2020-01-06 2020-01-06 Audio playing method and audio playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010009663.5A CN111208970B (en) 2020-01-06 2020-01-06 Audio playing method and audio playing device

Publications (2)

Publication Number Publication Date
CN111208970A CN111208970A (en) 2020-05-29
CN111208970B true CN111208970B (en) 2023-09-19

Family

ID=70785612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010009663.5A Active CN111208970B (en) 2020-01-06 2020-01-06 Audio playing method and audio playing device

Country Status (1)

Country Link
CN (1) CN111208970B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787460B (en) 2020-06-23 2021-11-09 北京小米移动软件有限公司 Equipment control method and device
CN114630238B (en) * 2022-03-15 2024-05-17 广州宏牌音响有限公司 Stage sound box volume control method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256139A (en) * 2017-05-08 2017-10-17 深圳市科迈爱康科技有限公司 Method of adjustment, terminal and the computer-readable recording medium of audio volume
CN107817723A (en) * 2017-11-02 2018-03-20 成都吱吖科技有限公司 A kind of intelligent sound orientation control method for playing back of human body location aware
CN108574914A (en) * 2017-03-07 2018-09-25 北京小鸟听听科技有限公司 Voice box group plays the method for adjustment and device, receiving terminal of audio file
CN109241339A (en) * 2018-08-28 2019-01-18 三星电子(中国)研发中心 A kind of music recommended method and device
CN110290845A (en) * 2017-02-20 2019-09-27 索尼公司 Information processing system and information processing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170214966A1 (en) * 2016-01-26 2017-07-27 Le Holdings (Beijing) Co., Ltd. Audio and video playing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290845A (en) * 2017-02-20 2019-09-27 索尼公司 Information processing system and information processing method
CN108574914A (en) * 2017-03-07 2018-09-25 北京小鸟听听科技有限公司 Voice box group plays the method for adjustment and device, receiving terminal of audio file
CN107256139A (en) * 2017-05-08 2017-10-17 深圳市科迈爱康科技有限公司 Method of adjustment, terminal and the computer-readable recording medium of audio volume
CN107817723A (en) * 2017-11-02 2018-03-20 成都吱吖科技有限公司 A kind of intelligent sound orientation control method for playing back of human body location aware
CN109241339A (en) * 2018-08-28 2019-01-18 三星电子(中国)研发中心 A kind of music recommended method and device

Also Published As

Publication number Publication date
CN111208970A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
US11521591B2 (en) Apparatus and method for processing volumetric audio
CN111208970B (en) Audio playing method and audio playing device
US9369801B2 (en) Wireless speaker system with noise cancelation
CN107976651A (en) A kind of sound localization method and device based on microphone array
US20120163610A1 (en) Apparatus, system, and method of image processing, and recording medium storing image processing control program
US10542368B2 (en) Audio content modification for playback audio
CN109547848B (en) Loudness adjustment method and device, electronic equipment and storage medium
CN108335703B (en) Method and apparatus for determining accent position of audio data
CN102771141A (en) An apparatus
CN109155884A (en) Stereo separation is carried out with omnidirectional microphone and orientation inhibits
JP2017118375A (en) Electronic equipment and sound output control method
CN108882115A (en) loudness adjusting method, device and terminal
CN112492207B (en) Method and device for controlling camera to rotate based on sound source positioning
CN109192223B (en) Audio alignment method and device
US10567871B1 (en) Automatically movable speaker to track listener or optimize sound performance
CN107450882B (en) Method and device for adjusting sound loudness and storage medium
CN205490928U (en) Thing networking smart machine with full duplex communication function
CN111294704B (en) Audio processing method, device and storage medium
CN112104965B (en) Sound amplification method and sound amplification system
CN110351629B (en) Radio reception method, radio reception device and terminal
CN113192531B (en) Method, terminal and storage medium for detecting whether audio is pure audio
CN111526292B (en) Audio and video mixing monitoring method, equipment and storage device
CN114205695A (en) Sound parameter determination method and system
JP2017118376A (en) Electronic equipment
CN107113499A (en) Directional audio capturing

Legal Events

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