Device control method and apparatus
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorDaolin Zhang
Life of this patent
Estimating the term…
Abstract
Provided are a device control method and apparatus. The method is applied to an audio device, and includes: receiving an acoustic signal set, determining a propagation characteristic of an acoustic signal in the acoustic signal set, determining, according to the propagation characteristic, a device parameter associated with audio play quality to be used by the audio device, and controlling the audio device to play audio with the device parameter.
Claims18
A device control method, applied to an audio device, comprising:
- receiving, by a microphone array of the audio device, an acoustic signal set, wherein the acoustic signal set comprises acoustic signals sent by a terminal at different positions around the audio device;
- determining, by the microphone array, a propagation characteristic of an acoustic signal in the acoustic signal set, wherein the propagation characteristic comprises a propagation duration, a propagation speed and a propagation direction, the propagation duration and the propagation direction are determined according to a position of the microphone array and a position of the terminal in response to determining that the acoustic signal in the acoustic signal set is sent, and the propagation speed has a fixed value in a fixed propagation medium;
- for each position among the different positions, calculating a distance between the position and the audio device according to the propagation duration and the propagation speed of the acoustic signal sent by the terminal at the position;
- and determining the device parameter according to distances from the different positions to the audio device and propagation directions of the acoustic signals;
- and
- controlling the audio device to play audio with the device parameter.
An audio device, comprising:
- a processor;
- and
- a memory, configured to store processor-executable instructions,
- wherein the processor is configured to:
- receive an acoustic signal set, wherein the acoustic signal set comprises acoustic signals sent by a terminal at different positions around the audio device;
- determine a propagation characteristic of an acoustic signal in the acoustic signal set, wherein the propagation characteristic comprises a propagation duration, a propagation speed and a propagation direction, the propagation duration and the propagation direction are determined according to a position of a microphone array and a position of the terminal in response to determining that the acoustic signal in the acoustic signal set is sent, and the propagation speed has a fixed value in a fixed propagation medium;
- for each position among the different positions, calculate a respective distance between the position and the audio device according to the propagation duration and the propagation speed of the acoustic signal sent by the terminal at the position;
- and determine the device parameter according to distances from the different positions to the audio device and propagation directions of the acoustic signals;
- and
- control the audio device to play audio with the device parameter.
A non-transitory computer-readable storage medium having stored thereon a computer program that, when being executed by a processor, implements acts comprising:
- receiving an acoustic signal set, wherein the acoustic signal set comprises acoustic signals sent by a terminal at different positions around the audio device;
- determining a propagation characteristic of an acoustic signal in the acoustic signal set, wherein the propagation characteristic comprises a propagation duration, a propagation speed and a propagation direction, the propagation duration and the propagation direction are determined according to a position of a microphone array and a position of the terminal in response to determining that the acoustic signal in the acoustic signal set is sent, and the propagation speed has a fixed value in a fixed propagation medium;
- for each position among the different positions, calculating a distance between the position and the audio device according to the propagation duration and the propagation speed of the acoustic signal sent by the terminal at the position;
- and determining the device parameter according to distances from the different positions to the audio device and propagation directions of the acoustic signals;
- and
- controlling the audio device to play audio with the device parameter.
Dependencies are inferred from the claim text.