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

Audio playing method and audio playing device Download PDF

Info

Publication number
CN111208970A
CN111208970A CN202010009663.5A CN202010009663A CN111208970A CN 111208970 A CN111208970 A CN 111208970A CN 202010009663 A CN202010009663 A CN 202010009663A CN 111208970 A CN111208970 A CN 111208970A
Authority
CN
China
Prior art keywords
audio playing
playing device
audio
distance
volume
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010009663.5A
Other languages
Chinese (zh)
Other versions
CN111208970B (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

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/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, which comprise the following steps: when an audio playing instruction is obtained, distance information is obtained 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; acquiring an environment 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 environment video; and calculating a first spatial intensity according to the occupied area and the number of people, and adjusting the volume of the first audio playing device according to the first spatial intensity. By the method, the audio playing device can adaptively adjust the volume, avoids manual adjustment of a user, simplifies the operation of the user, improves the convenience and further improves the user experience.

Description

Audio playing method and audio playing device
Technical Field
The present application belongs to the technical field of audio processing, and in particular, to an audio playing method and an audio playing apparatus.
Background
With the continuous development of audio processing technology, audio playing devices become more and more intelligent, and various intelligent sound boxes come into play. In the prior art, when adjusting the volume of a smart speaker, there are generally the following methods: the sound volume of the intelligent sound box is adjusted by the user through adjusting a sound volume button on the intelligent sound box, the sound volume of the intelligent sound box is adjusted by the user through a remote controller, and the sound volume of the intelligent sound box is adjusted by the user through a voice control mode. The above modes all require manual adjustment by the user, are low in convenience and affect user experience.
Disclosure of Invention
The embodiment of the application provides an audio playing method and an audio playing device, and can solve the problem that the volume cannot be adjusted in a self-adaptive mode in the existing intelligent sound box.
In a first aspect, an embodiment of the present application provides an audio playing method, including:
when an audio playing instruction is obtained, distance information is obtained 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;
acquiring an environment 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 environment video;
and calculating a first spatial intensity according to the occupied area and the number of people, and adjusting the volume of the first audio playing device according to the first spatial intensity.
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 obtaining of distance information through a distance sensor installed on a first audio playing device includes:
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,
Figure BDA0002356656920000021
θ 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:
determining the position of a measuring point corresponding to each measuring angle according to the initial angle, the N measuring angles and the distance value corresponding to each measuring angle by taking the first audio playing device as a reference point;
and calculating the floor 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 intensity 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 intensity includes:
dividing the floor area by the number of people to obtain the first spatial intensity;
and determining a first target volume corresponding to the first spatial intensity according to a preset corresponding table, and adjusting the volume of the first audio playing device to the first target volume.
In one possible implementation manner of the first aspect, after adjusting the volume of the first audio playback device according to the first spatial intensity, the method further includes:
receiving an interference mixed signal of an 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 signal and the equipment distance between each second audio playing device and the first audio playing device;
and calculating second space density according to the number of the second audio playing devices and the distance between each device, and adjusting the volume of the first audio playing device according to the second space density and the first space density.
In a possible implementation manner of the first aspect, the determining the number of the second audio playing devices corresponding to the interfering 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 as 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 strength of each audio signal.
In a possible implementation manner of the first aspect, the calculating a second spatial density 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 density and the first spatial density includes:
selecting the largest 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 density;
carrying out weighted summation on the first spatial density and the second spatial density to obtain a third spatial density;
and determining a second target volume corresponding to the third spatial intensity 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 apparatus, including:
the area calculation unit is used for acquiring distance information through a distance sensor arranged on the first audio playing device when an 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 number determining unit is used for acquiring the 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 the volume adjusting unit is used for calculating first space density 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 density.
In a third aspect, an embodiment of the present application provides an audio playing apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements 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, and the embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the audio playing method according to any one of the foregoing first aspects.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the audio playing method according to any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the embodiment of the application, when the audio playing instruction of the first audio playing device is obtained, the distance information is obtained 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 located is calculated according to the distance information; acquiring an environment 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 environment video; because the playing volume of the audio playing device has a certain relation with the space of the audio playing device and the number of people in the space, the floor area of the space of the audio playing device and the number of people in the space are determined, then the first space density is calculated according to the floor area and the number of people, and then the volume of the first audio playing device is adjusted according to the first space density. By the method, the volume of the audio playing device can be adaptively adjusted 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 improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an audio playing system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an audio playing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a measurement angle of a distance sensor provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of an audio playing method according to another embodiment of the present application;
fig. 5 is a block diagram of an audio playing apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an audio playing apparatus 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 particular system structures, 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 will 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, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated 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 playing system may include an audio playing device 101, a distance sensor 102 mounted on the audio playing device 101, and a camera 103 mounted on the audio playing 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 by 360 degrees through the rotating bracket; of course, the audio playing device may be mounted on the rotating bracket, and then the distance sensor may be mounted on the audio playing device, so that the distance sensor may rotate synchronously with the audio playing device. By the method, the distance sensor can measure the distance of each azimuth.
As described above, the shooting device may also be mounted on the audio playing device through the rotating bracket, or the audio playing device is mounted on the rotating bracket, and then the shooting device is mounted on the audio playing device, or the shooting device itself has a function of shooting by rotating 360 degrees. By the method, the shooting device can shoot the environment of each direction around the audio playing device.
The distance sensor measures to obtain distance information, and the shooting device shoots to obtain an environment video; the audio playing device obtains distance information measured by the distance sensor and an environment video shot by the shooting device, and then the audio volume is self-adaptively adjusted according to the obtained distance information and the environment video by using the audio playing method in the embodiment of the application.
Fig. 2 shows a schematic flow chart of an audio playing method provided by 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 obtained, distance information is obtained through a distance sensor installed 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.
In practical application, the audio playing instruction may be a control signal triggered by a user through a key, an infrared signal sent to the first audio playing device by the user through a remote controller, or a voice instruction sent to the first audio playing device by the user through a 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 may be a distance measuring device such as an infrared distance meter, a laser distance meter, or 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 distance measurement signal along a measurement angle, the distance measurement signal reaches a measurement point on a boundary (such as a wall surface and other objects) of a space along the measurement angle, and is reflected back to a reflection signal through the measurement point, and after the distance sensor receives the reflection signal, the distance between the distance sensor and the measurement point can be calculated according to the distance measurement signal and the reflection signal.
Optionally, the obtaining distance information through a distance sensor installed on the first audio playing device in S201 includes:
s11, obtaining 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,
Figure BDA0002356656920000071
θ 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.
Exemplarily, referring to fig. 3, a schematic diagram of a measurement angle of a distance sensor provided in an embodiment of the present application is shown. As shown in fig. 3, regarding the range sensor as a particle O, the transmission direction of the ranging signal of the current range 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 shown in the figure)
Figure BDA0002356656920000081
Direction); the second measurement angle is 90 degrees clockwise (as viewed in the figure) with reference to the initial angle
Figure BDA0002356656920000082
Direction); a third measurement angle isThe second measurement angle is 90 degrees clockwise (as viewed in the figure)
Figure BDA0002356656920000083
Direction); the fourth measuring angle is a clockwise rotation of 90 degrees (as viewed in the figure) with reference to the third measuring angle
Figure BDA0002356656920000084
Direction).
And S12, respectively acquiring distance values corresponding to each measuring angle through the distance sensors.
In practical application, as described in the embodiment of fig. 1, the distance sensor may be controlled to rotate to each measurement angle 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 position of the range sensor, i.e., at the initial angle, to obtain a corresponding first range value. And then controlling the distance sensor to rotate 90 degrees clockwise, and transmitting a ranging signal at the first measuring angle to obtain a corresponding second distance value. By analogy, a total of 4 distance values can be obtained.
In one embodiment, the step S201 of calculating a floor area of a space where the first audio playing device is located according to the distance information includes:
and S21, determining the position of the measuring point corresponding to each measuring angle according to the initial angle, the N measuring angles and the distance value corresponding to each measuring angle by taking the first audio playing device as a reference point.
And S22, calculating the occupied area of the space according to the positions of the measuring points.
In practical application, a coordinate system can be established according to 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 positive y-axis direction, and then the positive x-axis 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 further the floor 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 accurate as much as possible, the preset angle interval can be set to be smaller, so that more measurement angles can be obtained, and more measurement points can be found. The more measurement points, the more accurate the footprint of the space fitted.
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 carry out 360-degree rotation shooting, so that the environmental video around the first audio playing device can be obtained. The number of people in the environmental video can then be determined using existing video object recognition algorithms.
S203, calculating a first space density 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 density.
In one embodiment, step S203 may comprise:
s31, dividing the floor area by the number of people to obtain the first space density.
The first space is dense, which means that the number of people in the space where the first audio playing device is located is small, and the space is relatively quiet, i.e. the required volume is small.
On the contrary, the first space density is smaller, which indicates that the number of people in the space where the first audio playing device is located is larger, the number of people in the space is noisy, and the required volume is larger at the moment.
S32, determining a first target volume corresponding to the first spatial intensity according to a preset mapping table, and adjusting the volume of the first audio playing device to the first target volume.
In practical applications, the corresponding table of the first spatial intensity and the volume may be defined in advance according to experience. And after the first spatial intensity is calculated, directly searching the target volume corresponding to the first spatial intensity in the corresponding table.
According to the embodiment of the application, when the audio playing instruction of the first audio playing device is obtained, the distance information is obtained 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 located is calculated according to the distance information; acquiring an environment 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 environment video; because the playing volume of the audio playing device has a certain relation with the space of the audio playing device and the number of people in the space, the floor area of the space of the audio playing device and the number of people in the space are determined, then the first space density is calculated according to the floor area and the number of people, and then the volume of the first audio playing device is adjusted according to the first space density. By the method, the volume of the audio playing device can be adaptively adjusted 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 improved.
Fig. 4 shows a flow chart of an audio playing method provided in 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 obtained, distance information is obtained through a distance sensor installed 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 density 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 density.
The steps S401 to S403 are the same as the steps S201 to S203, and reference may be specifically made to the description in the embodiments of the steps S201 to S203, which is not described herein again.
In practical applications, when the first audio playing device starts playing, the volume may be too large, which is likely to cause discomfort to human ears, or too small, which may make the user not hear clearly. By the method in steps S401-S403, an appropriate volume can be adaptively adjusted according to the current playback environment.
S404, receiving the interference mixed signal of the environment where the first audio playing device is located.
The interference mixed signal comprises audio signals 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, it is possible that other audio playing devices (i.e. the second audio playing device) also play, which may interfere with the audio played by the first audio playing device.
If there are a plurality of second audio playback devices, the first audio playback device will receive a mixed signal in which the audio signals played by all the second audio playback devices are mixed together, i.e., an interference mixed signal.
S405, determining 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.
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 as the number of the second audio playing devices.
The individual audio signals can be separated from the interfering mixed signal using existing signal separation algorithms, such as blind source separation algorithms and the like. There are several audio signals, and correspondingly several second audio playback devices.
And S42, respectively calculating the equipment distance between the second audio playing device and the first audio playing device corresponding to each audio signal according to the strength of each audio signal.
Each of the audio signals separated in step S41 includes a signal amplitude and a signal frequency. Wherein the signal amplitude can be used to characterize the strength of the audio signal. The device distance corresponding to the signal amplitude of each audio signal can be calculated according to the attenuation rule of the signal.
S406, calculating a second spatial density according to the number of the second audio playing devices and the distance between each device, and adjusting the volume of the first audio playing device according to the second spatial density and the first spatial density.
The volume is primarily adjusted in steps S401-S403, and on the basis of this, the volume is further adjusted by the method in steps S404-S406 in further consideration of the audio interference situation in the playing environment.
In one embodiment, step S406 may include:
and S51, selecting the largest equipment distance from the equipment distances as an interference radius, and calculating the interference area according to the interference radius.
For example, it is assumed that there are two second audio devices, where the device distance between the first second audio playing device and the first audio playing device is 2m, and the device distance between the second audio playing device and the first audio playing device is 5 m. Then the largest device distance of 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.
S52, dividing the interference area by the number of the second audio playing devices to obtain the second spatial intensity.
The second spatial density is larger, which means that the number of the second audio playing devices interfering with the first audio playing device is smaller, or the distance between the second audio playing device and the first audio playing device is longer, in this case, the required volume is smaller.
Conversely, the second spatial density is smaller, which indicates that the number of the second audio playing devices interfering with the first audio playing device is larger, or the second audio playing device is closer to the equipment of the first audio playing device, in which case the required volume is larger.
And S53, carrying out weighted summation on the first spatial density and the second spatial density to obtain a third spatial density.
In practical application, when the first spatial density and the second spatial density are weighted and summed, a corresponding weight may be selected according to the first spatial density and the second spatial density.
Illustratively, when the first spatial density is larger and the second spatial density is smaller, it indicates that the interference influence of the second audio playing device on the first audio playing device is larger, and at this time, the weight corresponding to the second spatial density may be increased.
When the first space density is smaller and the second space density is larger, it is indicated that more people are in the space, and the interference influence of the noise of the people on the first audio playing device is larger, and at this time, the weight corresponding to the first space density can be increased.
And S54, determining a second target volume corresponding to the third spatial intensity 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 between the third spatial intensity and the volume may be defined in advance empirically. 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 a first audio playing device is adjusted according to the first spatial intensity, 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 is determined, equipment distances between each second audio playing device and the first audio playing device are determined, then the second spatial intensity is calculated according to the number of the second audio playing devices and the equipment distances, 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 intensity and the first spatial intensity. By the method, when the interference of other audio playing devices exists, the volume can still be adjusted in a self-adaptive manner, so that the audio playing device is more intelligent, and the user experience is further improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 5 shows a block diagram of an audio playing apparatus provided in the embodiment of the present application, which corresponds to the audio playing method described in the foregoing embodiment, and only shows portions related to the embodiment of the present application for convenience of description.
Referring to fig. 5, the apparatus includes:
the area calculating unit 51 is configured to, when an audio playing instruction of a first audio playing device is obtained, obtain 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 number-of-people determining unit 52 is configured to obtain an environmental video of the first audio playing device through a shooting device installed on the first audio playing device, and determine the number of people in the environmental video.
And the volume adjusting unit 53 is used for calculating a first space density according to the area and the number of people, and adjusting the volume of the first audio playing device according to the first space density.
Optionally, 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.
Optionally, the area calculating unit 51 includes:
an obtaining module, configured to obtain a preset angle interval, use a current measurement angle of the distance sensor as an initial angle, and determine the angle interval according to the initial angleDetermining N measurement angles of the distance sensor, wherein,
Figure BDA0002356656920000131
θ is the angular interval.
And the distance value calculating module is used for respectively acquiring the distance value corresponding to each measuring angle through the distance sensor.
Optionally, the area calculating unit 51 further includes:
and the determining module is used for determining the position of the measuring point corresponding to each measuring angle according to the initial angle, the N measuring angles and the distance value corresponding to each measuring angle 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 position of each measuring point.
Optionally, the volume adjusting unit 53 includes:
a first calculation module to divide the area by the number of people to obtain the first spatial intensity.
And the first adjusting module is used for determining a first target volume corresponding to the first spatial intensity 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:
an interference signal receiving unit 54, 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 density, 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.
A device distance determining unit 55, 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 density according to the number of the second audio playing devices and the distance between each device, and adjust the volume of the first audio playing device according to the second spatial density and the first spatial density.
Optionally, the device distance determining unit 55 includes:
and the separation module is used for separating each audio signal from the interference mixed signal, and counting the number of the audio signals, namely the number of the second audio playing devices.
And the second calculation module is used for 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 strength of each audio signal.
Optionally, the volume correction unit 56 includes:
and the selection 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 intensity.
And the weighted summation module is used for carrying out weighted summation on the first spatial intensity and the second spatial intensity to obtain a third spatial intensity.
And the volume correction module is used for determining a second target volume corresponding to the third spatial intensity 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, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
In addition, the audio playing apparatus shown in fig. 5 may be a software unit, a hardware unit, or a combination of software and hardware unit that is built in the existing terminal device, 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-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are 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 playback apparatus 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 equipment with an audio playing function. The audio playing device may include, but is not limited to, a processor, and a memory. Those skilled in the art will appreciate that fig. 6 is only an example of the audio playing apparatus 6, and does not constitute a limitation to the audio playing apparatus 6, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, and the like.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the audio playing device 6 in some embodiments, for example, a hard disk or a memory of the audio playing 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 Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and 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, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an 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, computer Memory, Read-Only Memory (ROM), Random-access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
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 implementation. 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 ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An audio playing method, comprising:
when an audio playing instruction is obtained, distance information is obtained 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;
acquiring an environment 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 environment video;
and calculating a first spatial intensity according to the occupied area and the number of people, and adjusting the volume of the first audio playing device according to the first spatial intensity.
2. The audio playback method according to claim 1, wherein the distance information includes N distance values, each distance value being a distance from a measurement point corresponding to a measurement angle of the distance sensor to the distance sensor, the measurement point being located on a boundary of the space;
the obtaining of distance information through a distance sensor installed on a first audio playing device includes:
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,
Figure FDA0002356656910000011
θ is the angular interval;
and respectively acquiring a distance value corresponding to each measuring angle through the distance sensor.
3. The audio playing method according to claim 2, wherein the calculating a floor area of a space where the first audio playing device is located according to the distance information comprises:
determining the position of a measuring point corresponding to each measuring angle according to the initial angle, the N measuring angles and the distance value corresponding to each measuring angle by taking the first audio playing device as a reference point;
and calculating the floor 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 intensity 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 intensity comprises:
dividing the floor area by the number of people to obtain the first spatial intensity;
and determining a first target volume corresponding to the first spatial intensity according to a preset corresponding table, and adjusting the volume of the first audio playing device to the first target volume.
5. The audio playback method of claim 1, wherein after adjusting the volume of the first audio playback device according to the first spatial intensity, the method further comprises:
receiving an interference mixed signal of an 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 signal and the equipment distance between each second audio playing device and the first audio playing device;
and calculating second space density according to the number of the second audio playing devices and the distance between each device, and adjusting the volume of the first audio playing device according to the second space density and the first space density.
6. The audio playing method of claim 5, wherein the determining the number of the second audio playing devices corresponding to the disturbing mixed signal and the device distance between each second audio playing device and the first audio playing device comprises:
separating each audio signal from the interference mixed signal, and counting the number of the audio signals as 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 strength of each audio signal.
7. The audio playing method of claim 6, wherein the calculating a second spatial intensity according to the number of the second audio playing devices and the respective device distances and adjusting the volume of the first audio playing device according to the second spatial intensity and the first spatial intensity comprises:
selecting the largest 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 density;
carrying out weighted summation on the first spatial density and the second spatial density to obtain a third spatial density;
and determining a second target volume corresponding to the third spatial intensity according to a preset corresponding table, and adjusting the volume of the first audio playing device to the second target volume.
8. 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 an 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 number determining unit is used for acquiring the 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 the volume adjusting unit is used for calculating first space density 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 density.
9. An audio playback apparatus 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 of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
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 true CN111208970A (en) 2020-05-29
CN111208970B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787460A (en) * 2020-06-23 2020-10-16 北京小米移动软件有限公司 Equipment control method and device
CN114630238A (en) * 2022-03-15 2022-06-14 广州康盛网络科技有限公司 Stage loudspeaker box volume control method and device, electronic equipment and medium

Citations (6)

* 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
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

Patent Citations (7)

* 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
CN110290845A (en) * 2017-02-20 2019-09-27 索尼公司 Information processing system and information processing method
US20190314720A1 (en) * 2017-02-20 2019-10-17 Sony Corporation 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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787460A (en) * 2020-06-23 2020-10-16 北京小米移动软件有限公司 Equipment control method and device
CN111787460B (en) * 2020-06-23 2021-11-09 北京小米移动软件有限公司 Equipment control method and device
US11922093B2 (en) 2020-06-23 2024-03-05 Beijing Xiaomi Mobile Software Co., Ltd. Device control method and apparatus
CN114630238A (en) * 2022-03-15 2022-06-14 广州康盛网络科技有限公司 Stage loudspeaker box volume control method and device, electronic equipment and medium
CN114630238B (en) * 2022-03-15 2024-05-17 广州宏牌音响有限公司 Stage sound box volume control method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN111208970B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US9924291B2 (en) Distributed wireless speaker system
US9402145B2 (en) Wireless speaker system with distributed low (bass) frequency
US9560449B2 (en) Distributed wireless speaker system
US9369801B2 (en) Wireless speaker system with noise cancelation
CN111757241B (en) Sound effect control method and device, sound box array and wearable device
US10542368B2 (en) Audio content modification for playback audio
CN102771141A (en) An apparatus
US11725981B2 (en) Directional acoustic sensor, and methods of adjusting directional characteristics and attenuating acoustic signal in specific direction using the same
CN111208970B (en) Audio playing method and audio playing device
CN111683325A (en) Sound effect control method and device, sound box, wearable device and readable storage medium
US11979735B2 (en) Apparatus, method, sound system
US10616684B2 (en) Environmental sensing for a unique portable speaker listening experience
US11889288B2 (en) Using entertainment system remote commander for audio system calibration
US11653170B2 (en) In-ear speaker
CN111294704B (en) Audio processing method, device and storage medium
US20200169809A1 (en) Wearable beamforming speaker array
CN113938792B (en) Audio playing optimization method and device and readable storage medium
US11599329B2 (en) Capacitive environmental sensing for a unique portable speaker listening experience
JP2017118376A (en) Electronic equipment
US20240185876A1 (en) Sound signal processing method and apparatus, and computer-readable storage medium
CN110428802B (en) Sound reverberation method, device, computer equipment and computer storage medium
US11277706B2 (en) Angular sensing for optimizing speaker listening experience
WO2022227921A1 (en) Audio processing method and apparatus, wireless headset, and computer readable medium
CN115734115A (en) Pickup method and device of microphone and microphone
CN117319889A (en) Audio signal processing method and device, electronic equipment and storage medium

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