CN112822330B - Space detection method and device, mobile terminal and storage medium - Google Patents

Space detection method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN112822330B
CN112822330B CN201911049631.1A CN201911049631A CN112822330B CN 112822330 B CN112822330 B CN 112822330B CN 201911049631 A CN201911049631 A CN 201911049631A CN 112822330 B CN112822330 B CN 112822330B
Authority
CN
China
Prior art keywords
audio
time
value
amplitude
mobile terminal
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
CN201911049631.1A
Other languages
Chinese (zh)
Other versions
CN112822330A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911049631.1A priority Critical patent/CN112822330B/en
Publication of CN112822330A publication Critical patent/CN112822330A/en
Application granted granted Critical
Publication of CN112822330B publication Critical patent/CN112822330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/165Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/12Systems for determining distance or velocity not using reflection or reradiation using electromagnetic waves other than radio waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/18Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using ultrasonic, sonic, or infrasonic waves
    • G01S5/20Position of source determined by a plurality of spaced direction-finders

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a space detection method and device, a mobile terminal and a storage medium. The method comprises the following steps: outputting a first audio in a space where a mobile terminal is located by utilizing an audio output component contained in the mobile terminal; acquiring a second audio generated based on the first audio by utilizing an audio acquisition component contained in the mobile terminal; determining reverberation time according to the collected amplitude change of the second audio; determining the size of the space according to the reverberation time and the corresponding relation; wherein the corresponding relationship comprises: standard reverberation time and spatial size. By the method, the space size can be simply and conveniently detected without additionally adding accessories.

Description

Space detection method and device, mobile terminal and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a space detection method and apparatus, a mobile terminal, and a storage medium.
Background
In some application scenarios, it is necessary to evaluate the size of the space in which the terminal is located, for example, to adaptively adjust the volume of the terminal by evaluating the size of the space in which the terminal is located.
When the size of the space where the terminal is located is estimated, a laser ranging module is usually additionally installed on the terminal, and the size of the space is calculated by measuring the distance through the reflection principle of laser. However, this method requires additional parts and the calculation process is relatively complicated.
Disclosure of Invention
The disclosure provides a space detection method and device, a mobile terminal and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a spatial detection method, including:
outputting a first audio in a space where a mobile terminal is located by utilizing an audio output component contained in the mobile terminal;
acquiring a second audio generated based on the first audio by utilizing an audio acquisition component contained in the mobile terminal;
determining reverberation time according to the collected amplitude change of the second audio;
according to the reverberation time and the corresponding relation, the size of the space; wherein the corresponding relationship comprises: standard reverberation time and spatial size.
In some embodiments, the determining a reverberation time according to the acquired amplitude variation of the second audio comprises:
determining a first time at which a fluctuation value of the amplitude of the second audio satisfies a first condition;
Determining a second time instant at which the amplitude of the second audio decays to satisfy a second condition;
determining a time difference between the first time and the second time as the reverberation time.
In some embodiments, the determining a first time at which a fluctuation value of the amplitude of the second audio satisfies a first condition includes:
and determining the time when the duration of the fluctuation value maintained in the preset fluctuation range reaches the preset duration as the first time.
In some embodiments, said determining that the amplitude of the second audio decays to a second time instant that satisfies a second condition comprises:
determining, as the second time, a time at which the amplitude of the second audio decays from a first amplitude value at the first time to a second amplitude value after the audio output component stops outputting the first audio, wherein a difference between the first amplitude value and the second amplitude value is equal to a preset value.
In some embodiments, the method further comprises:
determining an average of the amplitudes of the second audio within a first time period including the first time as the first amplitude value;
determining whether the first amplitude value is attenuated to the second amplitude value or not according to the amplitude average value of the second audio frequency in a second time interval containing the current moment and the preset value;
The determining, as the second time instant, the time instant at which the amplitude of the second audio decays from the first amplitude value at the first time instant to the second amplitude value comprises:
and if the amplitude mean value of the second audio frequency is attenuated from the first amplitude value to the second amplitude value, determining the current moment as the second moment.
In some embodiments, said determining a size of said space based on said reverberation times and correspondence comprises:
searching the standard reverberation time with the minimum difference value with the reverberation time according to the corresponding relation;
and determining the size of the space according to the standard reverberation time with the minimum difference value with the reverberation time and the corresponding relation.
According to a second aspect of the embodiments of the present disclosure, there is provided a spatial detection apparatus including:
the output module is configured to output a first audio in a space where the mobile terminal is located by utilizing an audio output component contained in the mobile terminal;
the acquisition module is configured to acquire a second audio generated based on the first audio by utilizing an audio acquisition component contained in the mobile terminal;
a first determining module configured to determine a reverberation time according to the acquired amplitude variation of the second audio;
A second determining module configured to determine a size of the space according to the reverberation time and the correspondence; wherein the corresponding relationship comprises: standard reverberation time and spatial size.
In some embodiments, the first determining module comprises:
a first sub-module configured to determine a first time instant at which a fluctuation value of the amplitude of the second audio satisfies a first condition;
a second sub-module configured to determine a second time instant at which the amplitude of the second audio decays to meet a second condition;
a third sub-module configured to determine a time difference between the first time instant and the second time instant as the reverberation time.
In some embodiments, the first sub-module is specifically configured to determine, as the first time, a time at which a duration of the fluctuation value maintained within a preset fluctuation range reaches a preset duration.
In some embodiments, the second sub-module is specifically configured to determine, as the second time instant, a time instant at which the amplitude of the second audio is attenuated from a first amplitude value at the first time instant to a second amplitude value after the audio output component stops outputting the first audio, where a difference between the first amplitude value and the second amplitude value is equal to a preset value.
In some embodiments, the first sub-module is further configured to determine a mean of the amplitudes of the second audio over a first time period including the first time as the first amplitude value;
the second sub-module is further configured to determine whether the first amplitude value is attenuated to the second amplitude value according to the amplitude average value of the second audio within a second time period including the current time and the preset value; and if the amplitude mean value of the second audio frequency is attenuated from the first amplitude value to the second amplitude value, determining the current moment as the second moment.
In some embodiments, the second determining module is specifically configured to find a standard reverberation time with a minimum difference from the reverberation time according to the correspondence;
and determining the size of the space according to the standard reverberation time with the minimum difference value with the reverberation time and the corresponding relation.
According to a third aspect of the embodiments of the present disclosure, there is provided a mobile terminal including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the spatial detection method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in said storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the spatial detection method as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the mobile terminal outputs the first audio by using the audio output component contained in the mobile terminal, and collects the second audio generated based on the first audio by using the audio collection component contained in the mobile terminal, wherein the amplitude transformation of the collected second audio reflects the phenomenon that the audio is reflected and isochronic when propagating in a space in the form of waves, so that the reverberation time can be determined by the amplitude transformation of the second audio, and the size of the space can be determined based on the correspondence between the reverberation time and the standard reverberation time as well as the size of the space. Under the condition that the space size needs to be determined, the estimation of the space size can be realized by directly utilizing the device of the mobile terminal without additionally installing accessories, so that on one hand, the convenience of operation is improved, and on the other hand, the resource use of the mobile terminal is optimized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a spatial detection method according to an embodiment of the disclosure.
Fig. 2 is a flowchart illustrating a reverberation time determination method according to an embodiment of the disclosure.
Fig. 3 is an exemplary diagram illustrating a method for detecting a size of a room in which a mobile phone is located according to an embodiment of the disclosure.
FIG. 4 is a diagram illustrating a spatial detection device, according to an exemplary embodiment.
Fig. 5 is a diagram illustrating an apparatus for reverberation time determination according to an exemplary embodiment.
Fig. 6 is a block diagram of a mobile terminal shown in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart of a space detection method according to an embodiment of the present disclosure, and as shown in fig. 1, the space detection method applied in a mobile terminal includes the following steps:
and S11, outputting the first audio in the space where the mobile terminal is located by utilizing the audio output component contained in the mobile terminal.
And S12, acquiring a second audio generated based on the first audio by utilizing an audio acquisition component contained in the mobile terminal.
And S13, determining the reverberation time according to the amplitude change of the collected second audio frequency.
S14, determining the size of the space according to the reverberation time and the corresponding relation; wherein the corresponding relationship comprises: standard reverberation time and spatial size.
In an embodiment of the present disclosure, a mobile terminal includes: a mobile phone, a tablet computer, or a wearable device, etc. In particular, in the embodiments of the present disclosure, an audio output component and an audio acquisition component are included in the mobile terminal.
Taking a mobile phone as an example, the audio output component in the mobile phone may include a speaker, and the audio collection component may include a microphone.
In step S11 of the embodiment of the present disclosure, the mobile terminal outputs a first audio by using the audio output component, where the first audio may be an audio file built in the mobile terminal, such as a ring tone, or an audio file on a network, and the present disclosure is not limited thereto.
After the audio output assembly outputs the first audio, the first audio propagates in the form of sound wave in space, and the propagation of the sound wave of the first audio is greatly affected (transmitted) by the thickness or material of the obstacle and is also affected by the environment such as temperature through reflection, refraction, scattering, diffraction and transmission of the sound wave. In addition, when the sound wave of the first audio frequency propagates in the space, a part of the sound wave may be diffracted, scattered or diffracted to be attenuated.
Therefore, in step S12 of the embodiment of the present disclosure, the mobile terminal acquires, by using its own audio acquisition component, not the original first audio but a second audio generated based on the first audio. The second audio frequency is the sound wave of the first audio frequency after the sound wave is influenced by reflection, refraction and the like in the space.
In step S13 of the embodiment of the present disclosure, after continuously acquiring the second audio generated based on the first audio, the mobile terminal determines the reverberation time according to the amplitude variation of the second audio, and determines the size of the space based on the reverberation time and the correspondence relationship.
In industry, the time required for the average acoustic energy density to decay from the original value to a certain amplitude is often defined as the reverberation time.
Reverberation time depends on the size and shape of the space and the number, quality and location of sound absorbing surfaces. Generally, the shorter the reverberation time, the higher the acoustic comfort.
In one embodiment, after determining the reverberation time, the volume of the space can be calculated based on the relationship between the parameters of the following equation (1) knowing the total surface area of the space and the average sound absorption coefficient of the surface:
T=0.161V/(S×a) (1)
where T is the reverberation time, V is the room volume, S is the total surface area of the room walls, and a is the average sound absorption coefficient of the room surfaces.
In step S14 of the embodiment of the present disclosure, the mapping relationship may be embodied by a mapping relationship table, for example, the mapping relationship table stored in the mobile terminal may also be a mapping relationship table that the mobile terminal receives a third party transmission. The mapping table stores a correspondence between the standard reverberation time and the spatial size, which can be understood as standard data.
In one embodiment, step S14 includes: the mobile terminal searches the standard reverberation time with the minimum difference value with the reverberation time according to the corresponding relation; and determining the size of the space according to the standard reverberation time with the minimum difference value with the reverberation time and the corresponding relation.
It is understood that, in the embodiments of the present disclosure, the mobile terminal outputs the first audio using its own included audio output component, and acquires the second audio generated based on the first audio using its own included audio acquisition component, determines the reverberation time through the amplitude variation of the second audio, and determines the size of the space based on the reverberation time and the correspondence. Under the condition that the space size needs to be determined, the estimation of the space size can be realized by directly utilizing the device of the mobile terminal without additionally installing accessories, so that on one hand, the convenience of operation is improved, and on the other hand, the resource use of the mobile terminal is optimized.
Fig. 2 is a flowchart illustrating a reverberation time determination method according to an embodiment of the present disclosure, and as shown in fig. 2, in the spatial detection method applied to a mobile terminal, step S13 in fig. 1 includes:
s13a, determining a first time at which the fluctuation value of the amplitude of the second audio satisfies the first condition.
S13b, determining a second time instant at which the amplitude of the second audio decays to satisfy a second condition.
S13c, determining a reverberation time based on the time difference between the first time and the second time.
It should be noted that, in the embodiment of the present disclosure, the mobile terminal determines a first time when the fluctuation value of the amplitude of the second audio satisfies the first condition, that is, a corresponding time when the first audio is in a relatively stable state while propagating in the space, and after stopping or suspending outputting the first audio, the average sound energy density (the amplitude of the audio signal) is attenuated from the original value, and the change of the amplitude after the attenuation with time may be modeled as a mathematical function, such as a linear function, or a non-linear function.
In an embodiment of the present disclosure, the mobile terminal first determines that the amplitude of the second audio decays to a second time instant that satisfies a second condition, and is based on a time difference between the first time instant and the second time instant, referred to as a reverberation time.
In one embodiment, step S13a includes: and the mobile terminal determines the time when the duration of the fluctuation value maintained in the preset fluctuation range reaches the preset duration as a first time.
As mentioned above, when the audio output component continuously outputs the first audio, the first audio will be in a relatively stable state after a period of propagation, and the relatively stable state means that the fluctuation value of the second audio is maintained within the preset fluctuation range within the preset time period. The preset fluctuation range may be set according to actual conditions, and the embodiment of the present disclosure is not limited. It will be appreciated that the smaller the fluctuation range is set, the more accurate the size of the space to be finally determined.
In the embodiment of the present disclosure, the first time refers to a time when a duration in which the fluctuation value is continuously within the preset fluctuation range reaches a preset duration.
In one embodiment, step S13b includes: after the audio output component stops outputting the first audio, the mobile terminal determines the moment when the amplitude of the second audio is attenuated from the first amplitude value at the first moment to the second amplitude value as the second moment, wherein the difference value between the first amplitude value and the second amplitude value is equal to a preset value.
In the embodiment of the disclosure, the preset value is 60dB, and assuming that the first amplitude value at the first time is T1, when the amplitude of the second audio attenuates from the first amplitude value at the first time to T1-60dB, that is, the time when the second amplitude value is T1-60dB is the second time, the time difference between the first time and the second time is defined as the reverberation time.
In one embodiment, to further improve the accuracy of the size detection of the space, the mobile terminal may also determine the amplitude mean of the second audio within the first time period including the first time as the first amplitude value; determining whether the first amplitude value is attenuated to a second amplitude value or not according to the amplitude mean value and a preset value of a second audio frequency in a second time interval containing the current moment; determining a time instant at which the amplitude of the second audio decays from the first amplitude value at the first time instant to the second amplitude value as a second time instant, comprising: and if the amplitude mean value of the second audio frequency is attenuated from the first amplitude value to the second amplitude value, determining the current moment as a second moment.
In this embodiment, in the process of determining the first time and the second time, not only the first amplitude value and the second amplitude value are determined according to whether the amplitude value corresponding to the time is within the fluctuation range, but also the average amplitude value of the second audio in the first time period is determined as the first amplitude value, and the second amplitude value is determined according to the average amplitude value of the second audio in the second time period and the preset value.
Therefore, after the second amplitude value is determined according to the amplitude mean value, the current moment corresponding to the second amplitude value is the second moment.
Fig. 3 is an exemplary diagram of a method for detecting a size of a room in which a mobile phone is located according to an embodiment of the present disclosure, and as shown in fig. 3, the method for detecting the size of the space in which the mobile phone is located includes the following steps:
and S21, measuring reverberation time corresponding to rooms with different sizes as standard data.
In this embodiment, the standard data obtained by measurement is the mapping relation table.
And S22, playing the test signal by the mobile phone loudspeaker according to the preset time length.
In this embodiment, the speaker of the mobile phone is an audio output component, and the test signal is the first audio.
And S23, recording the test signal by the microphone of the mobile phone, and obtaining the average value of the amplitude of the acquired current test signal.
In this embodiment, the microphone of the mobile phone is an audio acquisition component, and the acquired current test signal is the second audio, where the average value of the acquired current test signal amplitude is the average value of the amplitudes of the second audio in the first time period.
And S24, stopping playing the test signal when the average value of the amplitude of the test signal is not changed, and recording the current time T1 and the average value of the amplitude of the test signal as A1.
In this embodiment, the average value of the test signal amplitude does not change. That is, after the average value of the amplitudes of the second audio is not changed in the first time period, the recorded current time T1 is the first time, and the average value a1 is the first amplitude value.
And S25, continuously calculating to obtain the current amplitude average value of the signals collected by the microphones.
In this embodiment, after the speaker stops playing the test signal, the mobile phone may continuously calculate the current amplitude average of the signal collected by the microphone, that is, the amplitude average of the second audio frequency in the second time period.
And S26, recording the current time T2 when the difference between the average value A1 of the collected test signal amplitude and the current amplitude average value reaches 60 dB.
In this embodiment, 60dB is the preset value, and the handset determines the second amplitude value according to the first amplitude value a1 and the preset value, and records the second time T2.
And S27, obtaining the current reverberation time according to the time difference of T1-T2.
As described above, the time required for the sound source to decay by 60dB after stopping sounding is the reverberation time, and therefore, in this embodiment, the time difference between T1 and T2 is the reverberation time.
And S28, searching the reverberation time closest to the current reverberation time in the standard data, and determining the size of the room according to the closest reverberation time.
In this embodiment, the standard data is a mapping relationship table, and the mobile phone finds the reverberation time closest to the current reverberation time in the mapping relationship table, so that the size of the room can be determined according to the reverberation time in the mapping relationship table.
In the embodiment, the mobile phone outputs the test signal by using the loudspeaker, collects the test signal by using the microphone, determines the reverberation time by using the sound wave amplitude mean value collected by the microphone when the test signal is output by the loudspeaker and the sound wave amplitude mean value after the test signal is stopped being output by the loudspeaker, and obtains the size of the room according to the reverberation time. It can be understood that in the process of obtaining the size of the room, no additional fittings are needed, and the process is simple and easy to operate.
FIG. 4 is a diagram illustrating a spatial detection device according to an exemplary embodiment. Referring to fig. 4, the spatial detection apparatus includes an output module 121, an acquisition module 122, a first determination module 123, and a second determination module 124.
The output module 121 is configured to output a first audio in a space where the mobile terminal is located by using an audio output component included in the mobile terminal;
the acquisition module 122 is configured to acquire a second audio generated based on the first audio by using an audio acquisition component included in the mobile terminal;
The first determining module 123 is configured to determine a reverberation time according to the acquired amplitude variation of the second audio;
a second determining module 124 configured to determine a size of the space according to the reverberation time and the correspondence; wherein the corresponding relationship comprises: standard reverberation time and spatial size.
In an optional embodiment, the second determining module 124 is specifically configured to find a standard reverberation time with a minimum difference from the reverberation time according to the correspondence; and determining the size of the space according to the standard reverberation time with the minimum difference value with the reverberation time and the corresponding relation.
Fig. 5 is a diagram illustrating an apparatus for reverberation time determination according to an exemplary embodiment. Referring to fig. 5, the first determination module 123 of the spatial detection apparatus in fig. 4 includes:
a first sub-module 123a configured to determine a first time instant at which a fluctuation value of the amplitude of the second audio satisfies a first condition;
a second sub-module 123b configured to determine a second time instant at which the amplitude of the second audio decays to satisfy a second condition;
a third sub-module 123c configured to determine a time difference between the first time instant and the second time instant as the reverberation time.
In an optional embodiment, the first sub-module 123a is specifically configured to determine, as the first time, a time when a duration of the fluctuation value maintained within the preset fluctuation range reaches a preset duration.
In an optional embodiment, the second sub-module 123b is specifically configured to determine, as the second time, a time when the amplitude of the second audio decays from a first amplitude value at the first time to a second amplitude value after the audio output component stops outputting the first audio, where a difference between the first amplitude value and the second amplitude value is equal to a preset value.
In an optional embodiment, the first sub-module 123a is further configured to determine a mean value of the amplitudes of the second audio in a first time period including the first time as the first amplitude value;
the second sub-module 123b is further configured to determine whether to attenuate from the first amplitude value to the second amplitude value according to the amplitude mean value of the second audio frequency in a second time period including the current time and the preset value; and if the amplitude mean value of the second audio frequency is attenuated from the first amplitude value to the second amplitude value, determining the current moment as the second moment.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 6 is a block diagram illustrating a mobile terminal apparatus 800 according to an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, or the like.
Referring to fig. 6, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a control method, the method comprising:
outputting a first audio in a space where a mobile terminal is located by utilizing an audio output component contained in the mobile terminal;
acquiring a second audio generated based on the first audio by utilizing an audio acquisition component contained in the mobile terminal;
determining reverberation time according to the collected amplitude change of the second audio;
according to the reverberation time and the corresponding relation, the size of the space; wherein the corresponding relationship comprises: standard reverberation time and spatial size.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (6)

1. A spatial detection method, the method comprising:
outputting a first audio in a space where a mobile terminal is located by utilizing an audio output component contained in the mobile terminal;
acquiring a second audio generated based on the first audio by utilizing an audio acquisition component contained in the mobile terminal;
determining the time when the duration of the fluctuation value of the amplitude of the second audio frequency in the preset fluctuation range reaches the preset time as a first time;
after the audio output component stops outputting the first audio, if the amplitude mean value of the second audio is attenuated from the first amplitude value to the second amplitude value, determining the current moment as a second moment; wherein a difference between the first amplitude value and the second amplitude value is equal to a preset value; the first amplitude value is an amplitude average value of the second audio in a first time interval including the first moment;
determining a time difference between the first time and the second time as a reverberation time;
Determining the size of the space according to the reverberation time and the corresponding relation; wherein the corresponding relationship comprises: standard reverberation time and spatial size.
2. The method of claim 1, wherein determining the size of the space according to the reverberation time and the correspondence comprises:
searching the standard reverberation time with the minimum difference value with the reverberation time according to the corresponding relation;
and determining the size of the space according to the standard reverberation time with the minimum difference value with the reverberation time and the corresponding relation.
3. A spatial detection apparatus, the apparatus comprising:
the output module is configured to output a first audio in a space where the mobile terminal is located by utilizing an audio output component contained in the mobile terminal;
the acquisition module is configured to acquire a second audio generated based on the first audio by utilizing an audio acquisition component contained in the mobile terminal;
the first determining module comprises a first submodule and is configured to determine the time when the duration of the fluctuation value of the amplitude of the second audio, which is maintained in the preset fluctuation range, reaches the preset duration, and determine the time as a first time; a second sub-module configured to determine, as a second time, a time at which the amplitude mean of the second audio is attenuated from a first amplitude value to a second amplitude value after the audio output component stops outputting the first audio, wherein a difference between the first amplitude value and the second amplitude value is equal to a preset value; the first amplitude value is an amplitude average value of the second audio in a first time interval including the first moment; a third sub-module configured to determine a time difference between the first time and the second time as a reverberation time;
A second determining module configured to determine a size of the space according to the reverberation time and the correspondence; wherein the corresponding relationship comprises: standard reverberation time and spatial size.
4. The apparatus of claim 3,
the second determining module is specifically configured to search for a standard reverberation time with a minimum difference value with the reverberation time according to the corresponding relationship;
and determining the size of the space according to the standard reverberation time with the minimum difference value with the reverberation time and the corresponding relation.
5. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the spatial detection method of any one of claims 1-2.
6. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the spatial detection method of any one of claims 1-2.
CN201911049631.1A 2019-10-31 2019-10-31 Space detection method and device, mobile terminal and storage medium Active CN112822330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911049631.1A CN112822330B (en) 2019-10-31 2019-10-31 Space detection method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911049631.1A CN112822330B (en) 2019-10-31 2019-10-31 Space detection method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112822330A CN112822330A (en) 2021-05-18
CN112822330B true CN112822330B (en) 2022-06-10

Family

ID=75851482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911049631.1A Active CN112822330B (en) 2019-10-31 2019-10-31 Space detection method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112822330B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036954A1 (en) * 2002-10-15 2004-04-29 Electronics And Telecommunications Research Institute Apparatus and method for adapting audio signal according to user's preference
CN102013252A (en) * 2010-10-27 2011-04-13 华为终端有限公司 Sound effect adjusting method and sound playing device
CN105007414A (en) * 2015-06-30 2015-10-28 广东欧珀移动通信有限公司 Environmental factor-based method for starting wide angle camera, and terminal
CN107257520A (en) * 2017-07-18 2017-10-17 深圳创维-Rgb电子有限公司 A kind of video playback apparatus and audio amplifier power regulating method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036954A1 (en) * 2002-10-15 2004-04-29 Electronics And Telecommunications Research Institute Apparatus and method for adapting audio signal according to user's preference
CN102013252A (en) * 2010-10-27 2011-04-13 华为终端有限公司 Sound effect adjusting method and sound playing device
CN105007414A (en) * 2015-06-30 2015-10-28 广东欧珀移动通信有限公司 Environmental factor-based method for starting wide angle camera, and terminal
CN107257520A (en) * 2017-07-18 2017-10-17 深圳创维-Rgb电子有限公司 A kind of video playback apparatus and audio amplifier power regulating method

Also Published As

Publication number Publication date
CN112822330A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN108091330B (en) Output sound intensity adjusting method and device, electronic equipment and storage medium
US10205817B2 (en) Method, device and storage medium for controlling screen state
US11218014B2 (en) Circuitry and method for detecting temperature of wireless charging coil, and storage medium
CN111294704B (en) Audio processing method, device and storage medium
EP3779968A1 (en) Audio processing
EP3285049B1 (en) Method and device for microphone selection
EP3264130A1 (en) Method and apparatus for screen state switching control
CN111007462A (en) Positioning method, positioning device, positioning equipment and electronic equipment
CN114040285B (en) Method and device for generating feedforward filter parameters of earphone, earphone and storage medium
CN106546970B (en) The ultrasonic wave calibration method and device of mobile device
CN111698593B (en) Active noise reduction method and device, and terminal
CN106060707B (en) Reverberation processing method and device
CN106357348B (en) Adjust the method and device of ultrasonic wave transmission power
CN109769191B (en) Audio output detection method and device and electronic equipment
CN108801161B (en) Measuring system, method and device, readable storage medium
CN112822330B (en) Space detection method and device, mobile terminal and storage medium
CN112489653A (en) Speech recognition method, device and storage medium
CN107564534B (en) Audio quality identification method and device
CN114040309B (en) Wind noise detection method and device, electronic equipment and storage medium
CN115407272A (en) Ultrasonic signal positioning method and device, terminal and computer readable storage medium
CN115278441A (en) Voice detection method, device, earphone and storage medium
CN115065921A (en) Method and device for preventing hearing aid from howling
CN107172557B (en) Method and device for detecting polarity of loudspeaker and receiver
CN109712629B (en) Audio file synthesis method and device
CN112752191A (en) Audio acquisition method, device 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