CN117597730A - Sound box playing control method, sound box playing control device and storage medium - Google Patents

Sound box playing control method, sound box playing control device and storage medium Download PDF

Info

Publication number
CN117597730A
CN117597730A CN202280004604.6A CN202280004604A CN117597730A CN 117597730 A CN117597730 A CN 117597730A CN 202280004604 A CN202280004604 A CN 202280004604A CN 117597730 A CN117597730 A CN 117597730A
Authority
CN
China
Prior art keywords
sound box
sub
subspace
target
audio data
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.)
Pending
Application number
CN202280004604.6A
Other languages
Chinese (zh)
Inventor
周岭松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic 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, Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN117597730A publication Critical patent/CN117597730A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue

Landscapes

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

Abstract

The disclosure relates to a sound box playing control method, a sound box playing control device and a storage medium. The sound box playing control method comprises the following steps: in response to starting the audio playing function, acquiring audio data from a server, and determining a target subspace in subspaces of a plurality of sub-sound boxes, wherein the target subspace is a subspace where a user is currently located; and sending the audio data to a sub-sound box in the target subspace, and controlling the sub-sound box in the target subspace to play audio based on the audio data. Through the method and the device, the waste of energy is reduced, and meanwhile, channel resources between the main control sound box and the sub-sound box which does not play audio data are released, so that more stable hearing experience is provided for users.

Description

Sound box playing control method, sound box playing control device and storage medium Technical Field
The disclosure relates to the technical field of sound boxes, and in particular relates to a sound box playing control method, a sound box playing control device and a storage medium.
Background
Along with the development of intelligent home technology and the pursuit of people to high-quality home life, full-house sound brings shocked hearing enjoyment to the home life of people. The intelligent sound boxes are connected with each other through WiFi and synchronously play music, so that a user can also have immersive listening experience in the walking process. The terminal sound box takes the audio data from the server and transmits the audio data to sound boxes in all rooms through a wireless network. The same audio frame is ensured to be played in the same time through a certain synchronization mechanism.
However, users typically play music in only one or a portion of the room, and in rooms where no users are present, on the one hand, this results in a loss of power. On the other hand, because the sound box will occupy the network channel when transmitting data, if the network resource is occupied more, the system is more likely to be unstable, for example, the playing is asynchronous.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a sound box play control method, a sound box play control device and a storage medium.
According to a first aspect of embodiments of the present disclosure, a sound box playing control method is provided, which is applied to a master sound box, where the master sound box is used to control a plurality of sub-sound boxes, and the plurality of sub-sound boxes belong to different subspaces of a same space, and includes:
in response to starting the audio playing function, acquiring audio data from a server, and determining a target subspace in subspaces of a plurality of sub-sound boxes, wherein the target subspace is a subspace where a user is currently located; and sending the audio data to a sub-sound box in the target subspace, and controlling the sub-sound box in the target subspace to play audio based on the audio data.
In one embodiment, the determining the target subspace in the subspaces of the plurality of sub-sound boxes includes:
determining a user detection result, wherein the user detection result is determined by setting a sub-sound box in a subspace based on detection of human body activity of a user, and the user detection result comprises the presence or absence of a user; and determining the subspace of the target sound box with the user as the target subspace according to the detection result.
In one embodiment, the plurality of sub-sound boxes are corresponding to space identifiers, and the space identifiers are used for identifying subspaces to which the sub-sound boxes belong; the sending the audio data to a sub-speaker in the target subspace, controlling the sub-speaker in the target subspace to play audio based on the audio data, including: determining a target space identifier corresponding to the target subspace; and sending the audio data to a sub-sound box in the target subspace identified by the target space identifier, and controlling the sub-sound box in the target subspace to play audio based on the audio data based on the target space identifier.
In one embodiment, the target space identifier includes a first target space identifier and a second target space identifier, where a first target subspace identified by the first target space identifier is a subspace where a user is located before activity, and a second target subspace identified by the second target space identifier is a subspace where the user is located after activity; the controlling the sub-sound box in the target subspace based on the target space identifier to play the audio based on the audio data comprises the following steps: a first control playing instruction is sent to a sub-sound box in the first target subspace, the sub-sound box in the first target subspace is controlled to play audio based on the first control playing instruction and the audio data based on the first control playing instruction, and the first control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from large to small; and sending a second control playing instruction to the sub-sound box in the second target subspace, controlling the sub-sound box in the second target subspace to play the audio based on the second control playing instruction and the audio data based on the second control playing instruction, wherein the second control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from small to large.
In one embodiment, the method further comprises: determining a non-target subspace, wherein the non-target subspace is a subspace to which each set sub-sound box of a user does not exist; and stopping sending the audio data to the non-target subspace.
According to a second aspect of the embodiments of the present disclosure, a sound box playing control method is provided and applied to a sub-sound box, where a subspace to which the sub-sound box belongs is a target subspace, where the target subspace is a subspace in which a user is currently located, including:
acquiring audio data sent by a main control sound box; and playing the audio based on the audio data.
In one embodiment, the sub-speaker is a set sub-speaker, and the set sub-speaker is configured to detect whether a user exists in a subspace to which the target sub-speaker belongs, where the method further includes: detecting human body activity, and determining a user detection result based on the human body activity detection result, wherein the user detection result comprises presence or absence of a user; and sending the user detection result to the main control sound box.
In one embodiment, the sub-sound box corresponds to a space identifier, and the space identifier is used for identifying a subspace to which the sub-sound box belongs; the obtaining the audio data sent by the main control sound box comprises the following steps: and acquiring audio data sent by the main control sound box based on the space identifier.
In one embodiment, the audio playing based on the audio data includes: responding to the space identifier as a first target space identifier, acquiring a first control playing instruction sent by a main control sound box, wherein a first target subspace identified by the first target space identifier is a subspace where a user is located before moving, and the first control playing instruction is used for controlling playing sound of a child sound box to be changed from big to small; and based on the first control playing instruction, audio playing is performed based on the audio data in a mode that playing sound is reduced from large to small.
In one embodiment, the audio playing based on the audio data includes: responding to the space identifier as a second target space identifier, acquiring a second control playing instruction sent by the main control sound box, wherein a second target subspace identified by the second target space identifier is a subspace where a user is located after the user moves, and the second control playing instruction is used for controlling playing sound of the sub sound box to be changed from small to large; and based on the second control playing instruction, audio playing is carried out based on the audio data in a mode that playing sound is changed from small to large.
In one embodiment, the audio playing based on the audio data includes: checking a system clock between the sub-sound box and the main control sound box; and playing the audio synchronously with the main control sound box based on the calibrated system clock and the audio data.
According to a third aspect of the embodiments of the present disclosure, there is provided a sound box play control device, including:
the determining unit is used for responding to the starting of the audio playing function, acquiring audio data from the server side, and determining a target subspace in subspaces of the plurality of sub-sound boxes, wherein the target subspace is a subspace where a user is currently located; and the playing unit is used for sending the audio data to the sub-sound boxes in the target subspace and controlling the sub-sound boxes in the target subspace to play the audio based on the audio data.
In one embodiment, the determining unit determines the target subspace among subspaces to which the plurality of sub-sound boxes belong in the following manner: determining a user detection result, wherein the user detection result is determined by setting a sub-sound box in a subspace based on detection of human body activity of a user, and the user detection result comprises the presence or absence of a user; and determining the subspace of the target sound box with the user as the target subspace according to the detection result.
In one embodiment, the plurality of sub-sound boxes are corresponding to space identifiers, and the space identifiers are used for identifying subspaces to which the sub-sound boxes belong; the playing unit sends the audio data to the sub-sound box in the target subspace in the following mode, and controls the sub-sound box in the target subspace to play audio based on the audio data: determining a target space identifier corresponding to the target subspace; and sending the audio data to a sub-sound box in the target subspace identified by the target space identifier, and controlling the sub-sound box in the target subspace to play audio based on the audio data based on the target space identifier.
In one embodiment, the target space identifier includes a first target space identifier and a second target space identifier, where a first target subspace identified by the first target space identifier is a subspace where a user is located before activity, and a second target subspace identified by the second target space identifier is a subspace where the user is located after activity; the playing unit controls a sub-sound box in the target subspace to play audio based on the audio data based on the target space identifier: a first control playing instruction is sent to a sub-sound box in the first target subspace, the sub-sound box in the first target subspace is controlled to play audio based on the first control playing instruction and the audio data based on the first control playing instruction, and the first control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from large to small; and sending a second control playing instruction to the sub-sound box in the second target subspace, controlling the sub-sound box in the second target subspace to play the audio based on the second control playing instruction and the audio data based on the second control playing instruction, wherein the second control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from small to large.
In one embodiment, the playing unit is further applied to: determining a non-target subspace, wherein the non-target subspace is a subspace to which each set sub-sound box of a user does not exist; and stopping sending the audio data to the non-target subspace.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a sound box play control device, including:
the acquisition unit is used for acquiring the audio data sent by the main control sound box; and the playing unit is used for playing the audio based on the audio data.
In one embodiment, the sub-speaker is a set sub-speaker, the set sub-speaker is configured to detect whether a user exists in a subspace to which the target sub-speaker belongs, and the playing unit is further configured to: detecting human body activity, and determining a user detection result based on the human body activity detection result, wherein the user detection result comprises presence or absence of a user; and sending the user detection result to the main control sound box.
In one embodiment, the sub-sound box corresponds to a space identifier, and the space identifier is used for identifying a subspace to which the sub-sound box belongs; the acquisition unit acquires audio data sent by the main control sound box in the following mode: and acquiring audio data sent by the main control sound box based on the space identifier.
In one embodiment, the playing unit performs audio playing based on the audio data in the following manner: responding to the space identifier as a first target space identifier, acquiring a first control playing instruction sent by a main control sound box, wherein a first target subspace identified by the first target space identifier is a subspace where a user is located before moving, and the first control playing instruction is used for controlling playing sound of a child sound box to be changed from big to small; and based on the first control playing instruction, audio playing is performed based on the audio data in a mode that playing sound is reduced from large to small.
In one embodiment, the playing unit performs audio playing based on the audio data in the following manner: responding to the space identifier as a second target space identifier, acquiring a second control playing instruction sent by the main control sound box, wherein a second target subspace identified by the second target space identifier is a subspace where a user is located after the user moves, and the second control playing instruction is used for controlling playing sound of the sub sound box to be changed from small to large; and based on the second control playing instruction, audio playing is carried out based on the audio data in a mode that playing sound is changed from small to large.
In one embodiment, the playing unit performs audio playing based on the audio data in the following manner: checking a system clock between the sub-sound box and the main control sound box; and playing the audio synchronously with the main control sound box based on the calibrated system clock and the audio data.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a sound box play control device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the method of the first aspect or any implementation of the first aspect is performed.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a sound box play control device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the method of the second aspect or any one of the embodiments of the second aspect is performed.
According to a seventh aspect of the disclosed embodiments, there is provided a computer readable storage medium having instructions stored therein, which when executed by a processor of a network device, enable the network device to perform the method of the first aspect or any implementation of the first aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having instructions stored therein, which when executed by a processor of a terminal, enable the terminal to perform the method of the second aspect or any one of the embodiments of the second aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: when the sound box is determined to enable the audio playing function, audio data are acquired from the server through the main control sound box, and the current space of the user is determined. Further, the main control sound box sends the audio data acquired from the server to the sub-sound box in the space where the user is currently located, and the sub-sound box plays the audio based on the audio data. Based on the method, the sound box in the space selectively plays the audio data according to the current space of the user, so that the waste of energy sources is reduced, namely, the sound box in the current space, in which the user is not detected, is in an inactive state. Meanwhile, the channel resources between the main control sound box and the sub-sound box which does not play the audio data are released, so that more stable hearing experience is provided for the user.
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 disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method of controlling playback of a sound box according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of determining a target subspace according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a control of audio playback of a sub-sound box within a target subspace based on audio data according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a control of audio playback of a sub-sound box within a target subspace based on audio data according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a method of controlling playback of a sound box according to an exemplary embodiment.
Fig. 6 is a flowchart illustrating a method for detecting whether a user exists in a subspace to which a target child sound box belongs according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating an example of obtaining audio data sent by a master speaker according to an example embodiment.
Fig. 8 is a flowchart illustrating an audio playback based on audio data, according to an exemplary embodiment.
Fig. 9 shows a schematic diagram of a system clock calibrated between a master speaker and a sub-speaker.
Fig. 10 shows a schematic diagram of sound play control.
Fig. 11 is a block diagram illustrating a sound box play control device according to an exemplary embodiment.
Fig. 12 is a block diagram of a sound box play control device according to an exemplary embodiment.
Fig. 13 is a block diagram illustrating an apparatus for speaker playback control, according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure.
In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are some, but not all, embodiments of the present disclosure. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of protection of this disclosure. Embodiments of the present disclosure are described in detail below with reference to the attached drawings.
The sound box playing control method provided by the embodiment of the disclosure can be applied to a plurality of intelligent devices connected through a wireless communication technology, and an application scene of sharing music among users is realized. In particular, a plurality of intelligent devices in the setting space belong to different subspaces respectively, and the plurality of intelligent devices comprise a main control intelligent device and a sub intelligent device. The intelligent device can be an intelligent sound box or other intelligent devices.
The popularization of intelligent sound boxes and the increasingly improved listening demands of users lead all companies to aim at improving the music playing function of the respective sound boxes, and one breakthrough progress is that the sound boxes are interconnected through a wireless network so as to realize the full-house playing function. The intelligent sound boxes are connected with each other through WiFi and synchronously play music, so that a user can also have immersive listening experience in the walking process. The sound box takes the music data from the server and transmits the music data to the sound boxes in all rooms through the wireless network. The same audio frame is ensured to be played in the same time through a certain synchronization mechanism, so that all intelligent sound boxes in the home synchronously play music.
In the related art, information interaction among a plurality of intelligent sound boxes is realized through WiFi interconnection. The master control sound box takes the audio data from the server, frames the audio data in equal time length, marks the corresponding time information for each audio frame, and sends the time information to other sub sound boxes in all rooms through WiFi packaging. And the other sub-sound boxes receive the audio frame package sent by the main control sound box through WiFi and analyze out audio data and time information. And when the audio frame packet is interacted, other sub-sound boxes need to interact with the master control sound box to realize the system clock alignment of the master control sound box and other sub-sound boxes, so that the data processing of the master control sound box and other sub-sound boxes is ensured to be on the same clock reference. On the basis of synchronizing the system clocks of the main control loudspeaker box and other sub-loudspeaker boxes, the audio data are respectively processed. After the main control loudspeaker box and other sub-loudspeaker boxes are set for fixed time, the same audio frame is played, so that the audio synchronous playing of a plurality of loudspeaker boxes is realized, and the listening experience of full house playing is achieved. However, in a home, a user can only play music in one or a part of rooms, and play music in a room without one, one wastes electric energy, and the more network resources are occupied due to the fact that the transmitted data occupy network channels, the more the network resources are occupied, the more likely that the whole system is unstable, for example, audio data cannot be played synchronously among a plurality of sound boxes.
In view of this, the present disclosure provides a method for controlling sound box playing, when determining that a sound box enables an audio playing function, obtaining audio data from a server through a main control sound box, and determining a target subspace in subspaces where a plurality of sub-sound boxes belong, where the target subspace is a subspace where a user is currently located, and the subspace is a complete space and is divided into one of a plurality of spaces. Further, the main control sound box sends the audio data acquired from the server to the sub-sound box in the space where the user is currently located, and the sub-sound box plays the audio based on the audio data. Based on the method, the sound box in the space selectively plays the audio data according to the current space of the user, so that the waste of energy sources is reduced, namely, the sound box in the current space, in which the user is not detected, is in an inactive state. Simultaneously, release the channel resource between the sub-audio box that carries out audio data with main control audio amplifier and not playing, reduce network load as far as possible, can promote the stability of system, and provide more stable hearing experience for the user. Therefore, compared with the mode of controlling the sound box to play in the related art, the sound box play control method provided by the disclosure is more flexible and intelligent.
Fig. 1 is a flowchart of a method for controlling playing of a sound box according to an exemplary embodiment, as shown in fig. 1, applied to a master sound box, including the following steps.
In the following disclosure embodiments, a sound box that communicates with a server and other sound boxes is referred to as a master sound box, and a sound box that communicates with a master sound box is referred to as a sub sound box, where the master sound box is used to control a plurality of sub sound boxes, and different sub sound boxes are included in different sub spaces in the same space. One or more different sub-bins may be included in the same subspace.
In step S11, when it is determined that the master control speaker enables the audio playing function, audio data is obtained from the server, and a target subspace is determined from subspaces to which the plurality of sub-speakers belong.
The target subspace is the subspace where the user is currently located. A subspace can be understood as any one room, such as: living room, kitchen, bedroom, etc.
In the embodiment of the disclosure, when it is determined that a user has started the audio playing functions of all the sound boxes in the room, the master control sound box acquires audio data from the server through a wireless transmission technology. And determining the room in which the user is currently located by receiving the signals transmitted by the sub-sound boxes in the subspace.
In step S12, the audio data is sent to the sub-speakers in the target subspace, and the sub-speakers in the target subspace are controlled to play audio based on the audio data.
In the embodiment of the disclosure, when the master control sound box determines which space has a user, the audio data obtained from the server is sent to the sub sound box in the space having the user, and the sub sound box in the space is controlled to play the decoded audio data.
In the method, a main control sound box determines a non-target subspace through an instruction sent by a sub-sound box in the subspace, wherein the non-target subspace is a subspace to which each set sub-sound box of a user does not exist. And under the condition that the main control sound box determines the non-target subspace, stopping sending the audio data to the sub-sound boxes in the non-target subspace.
In the embodiment of the disclosure, if the main control sound box determines that no user exists in the subspace, the main control sound box stops sending audio data to the sub-sound box in the space, and a channel between the main control sound box and the sub-sound box in the space is closed. And the channel resources between the main control sound box and the sub-sound box which does not play the audio data are released, so that the stability of the system is improved, and more stable hearing experience is provided for the user.
In the method, when all sound boxes are determined to enable the audio playing function, audio data are acquired from a server, and a target subspace is determined in subspaces to which a plurality of sub-sound boxes belong. And sending the audio data to a sub-sound box in the target subspace, and controlling the sub-sound box in the target subspace to play the audio based on the audio data. Through the method and the device, the sound box in the space selectively plays the audio data according to the current space of the user, so that the waste of energy sources is reduced. It will be appreciated that the master speaker will only transmit audio data to the sub-speakers in the space if a user is present in the space.
Based on the above embodiments, it can be known that the main control speaker determines the target subspace as a key step, and therefore, in the following disclosed embodiments, how the main control speaker determines the target subspace will be specifically described.
Fig. 2 is a flowchart illustrating a method for determining a target subspace according to an exemplary embodiment, wherein the target subspace is determined among subspaces to which a plurality of sub-sound boxes belong, as shown in fig. 2, including the following steps.
In step S21, a user detection result is determined.
The user detection result is determined by setting a sub-sound box in the subspace based on detection of human body activity of the user, and the user detection result comprises the presence or absence of the user.
In step S22, the subspace to which the target subspace of the user exists as the detection result is determined as the target subspace.
In the embodiment of the disclosure, if the sub-sound box set in the subspace detects that the human body activity of the user exists in the space, the main control sound box receives an instruction for confirming the existence of the user from the sub-sound box, and determines the subspace of the target sub-sound box with the existence of the user as the target subspace. If the sub-sound box set in the subspace does not detect that the human body activity of the user exists in the space, the main control sound box receives an instruction from the sub-sound box for confirming that the user does not exist.
In the present disclosure, a user detection result is determined. And determining the subspace of the target sound box with the user as the target subspace according to the detection result. Through the method and the device, based on the detection result instruction transmitted from the sub-sound box to the main control sound box, the main control sound box transmits the corresponding instruction to control the sub-sound box, and interaction between the sub-sound box and the main control sound box is achieved.
Fig. 3 is a flowchart illustrating a method for controlling a sub-box in a target subspace to perform audio playback based on audio data, as shown in fig. 3, by transmitting audio data to a sub-box in a target subspace, and controlling a sub-box in a target subspace to perform audio playback based on audio data, according to an exemplary embodiment, comprising the following steps.
In step S31, a target space identifier corresponding to the target subspace is determined.
The plurality of sub-sound boxes are corresponding to space identifiers, and the space identifiers are used for identifying subspaces to which the sub-sound boxes belong.
In the disclosed embodiments, the room environment is divided into a plurality of subspaces, such as: subspaces such as kitchen, living room, bedroom, etc. When the network is firstly configured, the space where the sound box is located is selected by a user, for example, the user can select the current space where the sound box is located through a telescopic list on a display screen of the sound box, and thus each sound box knows the current space environment. For example, sound box a and sound box B are currently placed in the living room; sound box C and sound box D are currently placed in the master bedroom, etc. Secondly, the sub-sound boxes in the target subspace are mutually perceived through an ultrasonic communication mode, and the subspace to which each sub-sound box belongs is determined. The sub-sound box sends the own space identification to the main control sound box, and the main control sound box stores the IP addresses or other identification IDs of all the sub-sound boxes in the sub-space in the list of the equipment, so that the target space identification corresponding to the target sub-space can be determined.
In step S32, the audio data is sent to the sub-speakers in the target subspace identified by the target space identifier, and the sub-speakers in the target subspace are controlled to play audio based on the audio data based on the target space identifier.
In one example, a user may select one of the sub-boxes within the target subspace in advance, detect whether there is user activity within the space through the sub-box, and send the detection result to the master speaker. The sound boxes with optimal performance can be set as the set sound box for detecting whether the user activity exists in the space or not through mutual perception of the sub sound boxes in the target subspace, and the detection result is sent to the set sound box for the main control sound box. If the user is currently active in the master bedroom, the sound box set in the master bedroom detects that the human body is active, the sound box sends a confirmation instruction to the master sound box, and the master sound box sends audio data to the sound box in the master bedroom and controls the sound box in the master bedroom to play audio.
In the present disclosure, a target space identifier corresponding to a target subspace is determined. And sending the audio data to the sub-sound boxes in the target subspace identified by the target space identification, and controlling the sub-sound boxes in the target subspace to play the audio based on the audio data based on the target space identification. Through the method and the device, the main control sound box can accurately control the sub-sound box in the space where the user exists to play the audio.
Fig. 4 is a flowchart illustrating a control of audio playback of a sub-sound box in a target subspace based on audio data according to an exemplary embodiment, and as shown in fig. 4, audio playback of a sub-sound box in a target subspace based on audio data is controlled based on a target space identification, including the following steps.
In step S41, a first control playing instruction is sent to the sub-sound box in the first target subspace, and the sub-sound box in the first target subspace is controlled to play audio based on the first control playing instruction and the audio data based on the first control playing instruction.
The first control playing instruction is used for controlling the playing sound of the child loudspeaker box to be changed from big to small.
In the embodiment of the disclosure, when a user leaves a living room (i.e., a first target subspace), at this time, a sub-sound box in the living room cannot detect human body activity of the user, and the sub-sound box sends a confirmation user absence instruction to the main control sound box. After the main control sound box receives the instruction, a volume weakening control instruction (namely a first control playing instruction) is sent to the sub-sound box in the living room, and the sub-sound box is controlled to play sound from big to small until no sound exists.
In step S42, a second control playing instruction is sent to the sub-sound box in the second target subspace, and the sub-sound box in the second target subspace is controlled to play audio based on the second control playing instruction and the audio data based on the second control playing instruction.
The second control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from small to large.
In the embodiment of the disclosure, when the user walks into the bedroom (i.e., the second target subspace), the sub-sound box in the bedroom detects the human body activity of the user, and the sub-sound box sends an instruction for confirming the existence of the user to the main control sound box. After the main control sound box receives the instruction, a volume enhancement control instruction (namely a second control playing instruction) is sent to the sub-sound box in the bedroom, and the sub-sound box is controlled to play sound from small to large.
In the present disclosure, a first control playing instruction is sent to a sub-sound box in a first target subspace, and the sub-sound box in the first target subspace is controlled to play audio based on the first control playing instruction and audio data based on the first control playing instruction. And sending a second control playing instruction to the sub-sound box in the second target subspace, and controlling the sub-sound box in the second target subspace to play the audio based on the second control playing instruction and the audio data based on the second control playing instruction. Through this disclosure, the master control audio amplifier can also control the change of sub-sound box broadcast audio volume according to the testing result of sub-audio amplifier in the subspace for the sub-sound box can realize the effect of gradual change in volume, brings good hearing experience for the user.
The embodiment of the disclosure provides a sound box playing control method, which is applied to a main control sound box, wherein the main control sound box is communicated with a server and receives audio data from the server. And decoding the received audio data to obtain decoded audio data. And dividing according to the preset time length to obtain the audio frame data. And carrying out further operation according to the received instruction of the sub-sound box in each subspace. If the instruction that the sub-sound box informs the user of existence is received, the audio data and the playing control instruction are continuously sent to the sub-sound box in the space, and clock data are required to be transmitted for checking while the audio data are transmitted; if an instruction that the sub-sound box informs that no user exists is received, the audio data is stopped from being sent to the sub-sound box in the space. According to the embodiment of the disclosure, the sound box in the space selectively plays the audio data according to the current space of the user, so that the waste of energy sources is reduced. And simultaneously, the channel resources between the main control sound box and the sub-sound box which does not play the audio data are released, so that the stability of the system is improved.
Fig. 5 is a flowchart of a sound box play control method according to an exemplary embodiment, as shown in fig. 5, applied to a sub sound box, including the following steps.
In step S51, the sub-sound box in the target subspace acquires the audio data transmitted by the master sound box.
In step S52, audio playback is performed based on the audio data.
In the present disclosure, audio data transmitted by a master speaker is acquired. Audio playback is performed based on the audio data. Through this disclosure, the sub-audio amplifier is controlled by the master control audio amplifier, has realized the interaction between sub-audio amplifier and the master control audio amplifier.
Fig. 6 is a flowchart for detecting whether a user exists in a subspace to which a target sub-sound box belongs according to an exemplary embodiment, and as shown in fig. 6, the sub-sound box is a set sub-sound box, and the set sub-sound box is used for detecting whether the user exists in the subspace to which the target sub-sound box belongs, including the following steps.
In step S61, human body activity detection is performed, and a user detection result is determined based on the human body activity detection result.
Wherein the user detection result includes presence or absence of a user.
In the embodiment of the disclosure, a sub-sound box is selected randomly in each subspace or according to the performance of the sub-sound box, and the sub-sound box transmits and receives ultrasonic waves. After the audio playing function of all the sound boxes is started, the selected sub-sound boxes in each subspace transmit ultrasonic waves to detect the human body activity of the user. In the disclosed embodiments, differential channel impulse response (dCIR) is employed to detect user human activity. The essence of this detection method is through dCIR in a real-time computing environment. When the user is not currently in subspace A, the dCIR value of the sub-box extraction ultrasonic wave in subspace A approaches 0. At this time, the sub-sound box set in the target subspace will send a command of no user in the space to the main control sound box. After receiving the instruction, the main control sound box sends corresponding instruction operation to the sub sound box. When the user is currently in subspace B, the dCIR value of the sub-box extraction ultrasound in subspace B will reflect the amplitude variation on dCIR. At this time, if the dCIR amplitude of the sub-speaker set in the target subspace changes, the speaker will send a user instruction to the master control speaker. After receiving the instruction, the main control sound box sends corresponding instruction operation to the sub sound box. By detecting the overall amplitude state of dCIR, it is possible to detect whether a user is present in the current subspace.
In the embodiment of the present disclosure, the application principle of dCIR is based on the following formula:
in the above formula, s is an ultrasonic signal emitted by a loudspeaker, r is an ultrasonic signal acquired by a microphone, and h is a CIR vector. The formula of h is: h= (S) T S) -1 SR. dCIR is described as:where m is the current frame. The amplitude of dCIR is statistically:when AMP dCIR And when the set threshold value is larger than the preset threshold value, judging that the current subspace is occupied, wherein the set threshold value can be 3 through experimental verification.
In step S62, the user detection result is sent to the main control speaker.
In the embodiment of the disclosure, when the sub-sound box in the subspace judges that the user is currently located in the same room as the sub-sound box, an instruction is sent to the main control sound box, and the main control sound box is informed to continuously send audio frame data to the sub-sound box in the subspace. In this case, when the main control speaker receives the transmission instruction from the sub-speaker, it may be determined that the user detection result determined by the sub-speaker is that the user exists in the sub-space. And the main control sound box determines the subspace of the target sound box with the user as the target subspace according to the detection result.
In the embodiment of the disclosure, the sub-sound box in the subspace can also detect that no user exists in the current subspace.
In the disclosure, non-target subspace information is sent to a main control sound box, and the non-target subspace is a subspace to which each set subspace of the user belongs when the detection result is that the user does not exist. And controlling the main control sound box to stop sending the audio data to the non-target subspace.
In the embodiment of the disclosure, when the dCIR value of the ultrasonic wave extracted by the sub-sound box in the subspace approaches to 0, it is determined that no user exists in the subspace currently. When the fact that no user exists in the subspace is determined, the sub-sound box sends an instruction to the main control sound box to inform that no user exists in the space to which the sub-sound box belongs.
In the embodiment of the disclosure, when the main control sound box receives non-target subspace information sent by the sub-sound box, it is determined that no user exists in the space where the sub-sound box is located. In order to avoid wasting resources, the master control sound box stops sending audio data to the non-target subspace.
In the present disclosure, human activity detection is performed, and a user detection result is determined based on the human activity detection result. And sending a user detection result to the main control sound box. According to the method and the device, the sub-sound boxes in the subspace where the user does not exist are stopped sending the audio data in time, channel resources are released dynamically, stability of the system is guaranteed, and better hearing experience is provided.
Fig. 7 is a flowchart illustrating a method for acquiring audio data transmitted by a master speaker according to an exemplary embodiment, and the method for acquiring audio data transmitted by a master speaker as shown in fig. 7 includes the following steps.
In step S71, audio data sent by the master control speaker based on the spatial identifier is acquired.
In step S72, audio playback is performed based on the different spatial identification.
In the method, a first control playing instruction sent by a main control sound box is acquired in response to a space identifier being a first target space identifier, a first target subspace identified by the first target space identifier is a subspace where a user is located before moving, and the first control playing instruction is used for controlling playing sound of a child sound box to be changed from big to small. Based on the first control playing instruction, audio playing is performed based on the audio data in a manner that the playing sound is reduced from large to small.
In the embodiment of the disclosure, when a user leaves a living room (i.e., a first target subspace), at this time, a sub-sound box in the living room cannot detect human body activity of the user, and the sub-sound box sends a confirmation user absence instruction to the main control sound box. After the main control sound box receives the instruction, a volume weakening control instruction (namely a first control playing instruction) is sent to the sub-sound box in the living room, and the sub-sound box is controlled to play sound from big to small until no sound exists.
In the present disclosure, in response to the space identifier being a second target space identifier, a second control playing instruction sent by the main control sound box is obtained, the second target subspace identified by the second target space identifier is a subspace where the user moves, and the second control playing instruction is used for controlling the playing sound of the sub sound box to be changed from small to large. And based on the second control playing instruction, audio playing is performed based on the audio data in a mode that the playing sound is changed from small to large.
In the embodiment of the disclosure, when the user walks into the bedroom (i.e., the second target subspace), the sub-sound box in the bedroom detects the human body activity of the user, and the sub-sound box sends an instruction for confirming the existence of the user to the main control sound box. After the main control sound box receives the instruction, a volume enhancement control instruction (namely a second control playing instruction) is sent to the sub-sound box in the bedroom, and the sub-sound box is controlled to play sound from small to large.
In the present disclosure, audio data sent by a master control sound box based on the spatial identifier is obtained. Audio playback is based on the different spatial identification. Through this disclosure, the master control audio amplifier can also control the change of sub-sound box broadcast audio volume according to the testing result of sub-audio amplifier in the subspace for the sub-sound box can realize the effect of gradual change in volume, brings good hearing experience for the user.
Fig. 8 is a flowchart illustrating an audio playback based on audio data according to an exemplary embodiment, and the audio playback based on audio data as shown in fig. 8 includes the following steps.
In step S81, the system clock between the sub-speaker and the main control speaker is checked.
In an embodiment of the present disclosure, fig. 9 shows a schematic diagram of a system clock calibrated between a master speaker and a sub-speaker. As shown in fig. 9, the master speaker and the sub-speaker transmit audio data while the master speaker and the sub-speaker are performing clock information interaction. The sub-sound box needs to calculate the system clock difference between itself and the main control sound box and adjust itself to the system clock consistent with the main control sound box. The sub-sound box sends time information to the main control sound box through WiFi at the moment TB0 according to the clock of the sub-sound box, the main control sound box receives the time information of the sub-sound box at the moment TA0 according to the clock of the sub-sound box, then the main control sound box sends the time information to the sub-sound box through WiFi at the moment TA1, and the sub-sound box receives the time information of the main control sound box at the moment TB 1. The sub-sound box uses 4 pieces of time information, namely TB0, TA1 and TB1, so that the system clock difference between the sub-sound box and the main control sound box can be calculated: t (T) A0 -T B0 =Δ+τ 0 、T B1 -T A1 =-Δ+τ 1 Wherein delta represents the system clock error between the sub-enclosure and the master enclosure, τ 0 And τ 1 Is the WiFi transmission delay between the master speaker and the sub-speaker. The system clock error can be calculated as:and the sub-sound box compensates the own system clock by the clock difference delta, and the system clock is calibrated to be consistent with the system clock of the main control sound box. On the basis that all the sound boxes are aligned with the master control sound box clock, for the audio frame at the time T0, the audio frame is played at the time T0+1s, and synchronous playing of all the sound boxes is realized.
In step S82, based on the calibrated system clock and audio data, audio synchronous playing is performed with the master control speaker.
In the present disclosure, the system clock between the child speaker and the master speaker is calibrated. And playing the audio synchronously with the main control sound box based on the calibrated system clock and audio data. According to the method and the device, based on the system clock criterion between the sub-sound box and the main control sound box, synchronous audio playing of each sound box is achieved, and good hearing experience is brought to users.
Fig. 10 shows a schematic diagram of sound play control. As shown in fig. 10, first, a division is made for the space where each sound box is located, and division of the subspace can be achieved through two forms of user configuration and automatic perception. The user cooperation means that when a user configures a network for a sound box, a subspace where the sound box is located is selected, for example, a living room is selected for the sound box A and the sound box B, and a master bedroom is selected for the sound box C and the sound box D, so that the sound box A and the sound box B know that the sound box A and the sound box B are in one subspace, and the sound box C and the sound box D know that the sound box C and the sound box D are in one subspace. The automatic perception is that the user does not need to select, the sound boxes are mutually perceived through ultrasonic communication, if the sound box A sends ultrasonic information, only the sound box B can receive the ultrasonic information, and the sound box B knows that the sound box A and the sound box D are in the same subspace because the sound box C and the sound box D are blocked by the wall body and cannot be received. Each sound box senses in sequence, and the subspaces where all the sound boxes are located can be finally divided. And taking the sound box A as a main control sound box, finally summarizing the information of the space where all the devices are located into the sound box A, and storing the IP addresses or other identification IDs of the devices in all the subspaces in a list. In this case, a relationship of relevance is established between the individual speakers. In the subspace 1, the sound box M detects a user through an ultrasonic technology, and if the sound box M detects that the user is in the subspace 1, an instruction is sent to the main control sound box to inform that the user is in the subspace 1. When the main control sound box receives the instruction from the sound box M, the main control sound box continuously sends audio data to the sound box M and the sound box N in the subspace 1. If the sound box M does not detect that the user is in the subspace 1, an instruction is sent to the main control sound box, and the fact that the user is not in the subspace 1 is informed. When the main control sound box receives the instruction from the sound box M, the main control sound box stops sending audio data to the sound box M and the sound box N in the subspace 1, and closes the channels between the main control sound box and the sound box M and the influence N. According to the method and the device, the playing function of the sound box in the room is stopped in the room without the existence of the user, so that unnecessary electric energy waste is saved; secondly, occupation of network resources is saved, network load is reduced, and stability of the system is improved.
The embodiment of the disclosure provides a sound box playing control method, which is applied to sub-sound boxes in various divided subspaces, wherein the sub-sound boxes are communicated with a main control sound box. When the child sound box detects that a user exists in the space through the ultrasonic technology, sending an instruction that the user exists to the main control sound box; when the sub-sound box detects that no user exists in the space through the ultrasonic technology, an instruction that no user exists is sent to the main control sound box. And under the condition that the main control sound box space is informed of the existence of a user, receiving the audio data and the playing control instruction from the main control sound box, decoding the data and playing the data.
Based on the same conception, the embodiment of the disclosure also provides a sound box playing control device.
It can be understood that, in order to achieve the above functions, the sound box playing control device provided in the embodiment of the present disclosure includes a hardware structure and/or a software module that perform each function. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 11 is a block diagram illustrating a sound box play control device according to an exemplary embodiment. Referring to fig. 11, the apparatus 100 may be provided as a master speaker according to the above-described embodiment, including a determining unit 101 and a playing unit 102.
A determining unit 101, configured to obtain audio data from a server in response to enabling an audio playing function, and determine a target subspace in subspaces to which a plurality of sub-sound boxes belong, where the target subspace is a subspace in which a user is currently located; and the playing unit 102 is used for sending the audio data to the sub-sound boxes in the target subspace, and controlling the sub-sound boxes in the target subspace to play the audio based on the audio data.
In one embodiment, the determining unit 101 determines the target subspace among subspaces to which the plurality of sub-sound boxes belong in the following manner: determining a user detection result, wherein the user detection result is determined by setting a sub-sound box in a subspace based on detection of human body activity of a user, and the user detection result comprises the presence or absence of a user; and determining the subspace of the target sound box with the user as the target subspace according to the detection result.
In one embodiment, the plurality of sub-sound boxes correspond to a space identifier, and the space identifier is used for identifying a subspace to which the sub-sound box belongs; the playback unit 102 sends the audio data to the sub-speakers in the target subspace, and controls the sub-speakers in the target subspace to play audio based on the audio data in the following manner: determining a target space identifier corresponding to the target subspace; and sending the audio data to the sub-sound boxes in the target subspace identified by the target space identification, and controlling the sub-sound boxes in the target subspace to play the audio based on the audio data based on the target space identification.
In one embodiment, the target space identifier includes a first target space identifier and a second target space identifier, the first target subspace identified by the first target space identifier is a subspace where the user is located before the activity, and the second target subspace identified by the second target space identifier is a subspace where the user is located after the activity; the playback unit 102 controls the sub-sound boxes in the target subspace to play audio based on the audio data based on the target space identification: a first control playing instruction is sent to a sub-sound box in a first target subspace, the sub-sound box in the first target subspace is controlled to play audio based on the first control playing instruction and audio data based on the first control playing instruction, and the first control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from big to small; and sending a second control playing instruction to the sub-sound box in the second target subspace, controlling the sub-sound box in the second target subspace to play the audio based on the second control playing instruction and the audio data based on the second control playing instruction, wherein the second control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from small to large.
In one embodiment, the playback unit 102 is further applied to: determining a non-target subspace, wherein the non-target subspace is a subspace to which each set sub-sound box of a user does not exist; the transmission of audio data to the non-target subspace is stopped.
Fig. 12 is a block diagram of a sound box play control device according to an exemplary embodiment. Referring to fig. 12, the apparatus 200 may be provided as a sub-speaker related to the above-described embodiment, including an acquisition unit 201 and a playback unit 202.
An obtaining unit 201, configured to obtain audio data sent by a main control speaker; a playing unit 202 for playing audio based on the audio data.
In one embodiment, the sub-sound box is a set sub-sound box, where the set sub-sound box is used to detect whether a user exists in a subspace to which the target sub-sound box belongs, and the playing unit 202 is further applied to: detecting human body activity, and determining a user detection result based on the human body activity detection result, wherein the user detection result comprises a user with existence or a user without existence; and sending a user detection result to the main control sound box.
In one embodiment, the sub-sound box corresponds to a spatial identifier, and the spatial identifier is used for identifying a subspace to which the sub-sound box belongs; the acquisition unit 201 acquires audio data sent by the main control speaker in the following manner: and acquiring audio data sent by the main control sound box based on the space identifier.
In one embodiment, the playback unit 202 performs audio playback based on the audio data in the following manner: responding to the space identifier as a first target space identifier, acquiring a first control playing instruction sent by the main control sound box, wherein a first target subspace identified by the first target space identifier is a subspace where a user is located before moving, and the first control playing instruction is used for controlling playing sound of the sub sound box to be changed from big to small; based on the first control playing instruction, audio playing is performed based on the audio data in a manner that the playing sound is reduced from large to small.
In one embodiment, the playback unit 202 performs audio playback based on the audio data in the following manner: responding to the space identifier as a second target space identifier, acquiring a second control playing instruction sent by the main control sound box, wherein a second target subspace identified by the second target space identifier is a subspace where a user is located after moving, and the second control playing instruction is used for controlling playing sound of the sub sound box to be changed from small to large; and based on the second control playing instruction, audio playing is performed based on the audio data in a mode that the playing sound is changed from small to large.
In one embodiment, the playback unit 202 performs audio playback based on the audio data in the following manner: the system clock between the sub-sound box and the main control sound box is checked; and playing the audio synchronously with the main control sound box based on the calibrated system clock and audio data.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 13 is a block diagram illustrating an apparatus for speaker playback control, according to an exemplary embodiment. For example, apparatus 300 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 13, the apparatus 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the apparatus 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interactions between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
Memory 304 is configured to store various types of data to support operations at apparatus 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phonebook data, messages, pictures, videos, and the like. The memory 304 may be implemented by any type or combination of volatile or nonvolatile 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 disk.
The power component 306 provides power to the various components of the device 300. The power components 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 300.
The multimedia component 308 includes a screen between the device 300 and the user that provides an output interface. 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 input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 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 apparatus 300 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the device 300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 further comprises a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 314 includes one or more sensors for providing status assessment of various aspects of the apparatus 300. For example, the sensor assembly 314 may detect the on/off state of the device 300, the relative positioning of the components, such as the display and keypad of the device 300, the sensor assembly 314 may also detect a change in position of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration/deceleration of the device 300, and a change in temperature of the device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 314 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 314 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate communication between the apparatus 300 and other devices, either wired or wireless. The device 300 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 316 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 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 300 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, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 304, including instructions executable by processor 320 of apparatus 300 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims (24)

  1. The sound box playing control method is characterized by being applied to a main control sound box, wherein the main control sound box is used for controlling a plurality of sub-sound boxes, and the sub-sound boxes belong to different subspaces of the same space, and the method comprises the following steps:
    in response to starting the audio playing function, acquiring audio data from a server, and determining a target subspace in subspaces of a plurality of sub-sound boxes, wherein the target subspace is a subspace where a user is currently located;
    and sending the audio data to a sub-sound box in the target subspace, and controlling the sub-sound box in the target subspace to play audio based on the audio data.
  2. The method of claim 1, wherein determining the target subspace among subspaces to which the plurality of sub-sound boxes belong comprises:
    determining a user detection result, wherein the user detection result is determined by setting a sub-sound box in a subspace based on detection of human body activity of a user, and the user detection result comprises the presence or absence of a user;
    and determining the subspace of the target sound box with the user as the target subspace according to the detection result.
  3. The method according to claim 1 or 2, wherein the plurality of sub-sound boxes correspond to a spatial identifier, and the spatial identifier is used for identifying a subspace to which the sub-sound box belongs;
    The sending the audio data to a sub-speaker in the target subspace, controlling the sub-speaker in the target subspace to play audio based on the audio data, including:
    determining a target space identifier corresponding to the target subspace;
    and sending the audio data to a sub-sound box in the target subspace identified by the target space identifier, and controlling the sub-sound box in the target subspace to play audio based on the audio data based on the target space identifier.
  4. The method of claim 3, wherein the target space identifier comprises a first target space identifier and a second target space identifier, the first target space identifier identifies a first target subspace as a subspace in which a user is located before activity, and the second target space identifier identifies a second target subspace as a subspace in which the user is located after activity;
    the controlling the sub-sound box in the target subspace based on the target space identifier to play the audio based on the audio data comprises the following steps:
    a first control playing instruction is sent to a sub-sound box in the first target subspace, the sub-sound box in the first target subspace is controlled to play audio based on the first control playing instruction and the audio data based on the first control playing instruction, and the first control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from large to small;
    And sending a second control playing instruction to the sub-sound box in the second target subspace, controlling the sub-sound box in the second target subspace to play the audio based on the second control playing instruction and the audio data based on the second control playing instruction, wherein the second control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from small to large.
  5. The method according to claim 1, wherein the method further comprises:
    determining a non-target subspace, wherein the non-target subspace is a subspace to which each set sub-sound box of a user does not exist;
    and stopping sending the audio data to the non-target subspace.
  6. The sound box playing control method is characterized by being applied to a sub-sound box, wherein a subspace of the sub-sound box is a target subspace, and the target subspace is a subspace where a user is currently located, and the method comprises the following steps:
    acquiring audio data sent by a main control sound box;
    and playing the audio based on the audio data.
  7. The method of claim 6, wherein the sub-speaker is a set sub-speaker for detecting whether a user is present in a subspace to which the target sub-speaker belongs, the method further comprising:
    Detecting human body activity, and determining a user detection result based on the human body activity detection result, wherein the user detection result comprises presence or absence of a user;
    and sending the user detection result to the main control sound box.
  8. The method of claim 7, wherein the sub-sound box corresponds to a spatial identifier, the spatial identifier being used to identify a subspace to which the sub-sound box belongs;
    the obtaining the audio data sent by the main control sound box comprises the following steps:
    and acquiring audio data sent by the main control sound box based on the space identifier.
  9. The method of claim 8, wherein the audio playing based on the audio data comprises:
    responding to the space identifier as a first target space identifier, acquiring a first control playing instruction sent by a main control sound box, wherein a first target subspace identified by the first target space identifier is a subspace where a user is located before moving, and the first control playing instruction is used for controlling playing sound of a child sound box to be changed from big to small;
    and based on the first control playing instruction, audio playing is performed based on the audio data in a mode that playing sound is reduced from large to small.
  10. The method of claim 8, wherein the audio playing based on the audio data comprises:
    responding to the space identifier as a second target space identifier, acquiring a second control playing instruction sent by the main control sound box, wherein a second target subspace identified by the second target space identifier is a subspace where a user is located after the user moves, and the second control playing instruction is used for controlling playing sound of the sub sound box to be changed from small to large;
    and based on the second control playing instruction, audio playing is carried out based on the audio data in a mode that playing sound is changed from small to large.
  11. The method of claim 6, wherein the audio playing based on the audio data comprises:
    checking a system clock between the sub-sound box and the main control sound box;
    and playing the audio synchronously with the main control sound box based on the calibrated system clock and the audio data.
  12. A sound box play control device, characterized by comprising:
    the determining unit is used for responding to the starting of the audio playing function, acquiring audio data from the server side, and determining a target subspace in subspaces of the plurality of sub-sound boxes, wherein the target subspace is a subspace where a user is currently located;
    And the playing unit is used for sending the audio data to the sub-sound boxes in the target subspace and controlling the sub-sound boxes in the target subspace to play the audio based on the audio data.
  13. The apparatus according to claim 12, wherein the determining unit determines the target subspace among subspaces to which the plurality of sub-sound boxes belong by:
    determining a user detection result, wherein the user detection result is determined by setting a sub-sound box in a subspace based on detection of human body activity of a user, and the user detection result comprises the presence or absence of a user;
    and determining the subspace of the target sound box with the user as the target subspace according to the detection result.
  14. The apparatus according to claim 12 or 13, wherein the plurality of sub-sound boxes correspond to a spatial identifier, the spatial identifier being used to identify a subspace to which the sub-sound box belongs;
    the playing unit sends the audio data to the sub-sound box in the target subspace in the following mode, and controls the sub-sound box in the target subspace to play audio based on the audio data:
    determining a target space identifier corresponding to the target subspace;
    And sending the audio data to a sub-sound box in the target subspace identified by the target space identifier, and controlling the sub-sound box in the target subspace to play audio based on the audio data based on the target space identifier.
  15. The apparatus of claim 14, wherein the target space identifier comprises a first target space identifier and a second target space identifier, the first target space identifier identifying a first target subspace as a subspace in which a user is located before activity, and the second target space identifier identifying a second target subspace as a subspace in which the user is located after activity;
    the playing unit controls a sub-sound box in the target subspace to play audio based on the audio data based on the target space identifier:
    a first control playing instruction is sent to a sub-sound box in the first target subspace, the sub-sound box in the first target subspace is controlled to play audio based on the first control playing instruction and the audio data based on the first control playing instruction, and the first control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from large to small;
    and sending a second control playing instruction to the sub-sound box in the second target subspace, and controlling the sub-sound box in the second target subspace to play the audio based on the second control playing instruction and the audio data based on the second control playing instruction, wherein the second control playing instruction is used for controlling the playing sound of the sub-sound box to be changed from small to large.
  16. The apparatus of claim 12, wherein the playback unit is further configured to:
    determining a non-target subspace, wherein the non-target subspace is a subspace to which each set sub-sound box of a user does not exist;
    and stopping sending the audio data to the non-target subspace.
  17. A sound box play control device, characterized by comprising:
    the acquisition unit is used for acquiring the audio data sent by the main control sound box;
    and the playing unit is used for playing the audio based on the audio data.
  18. The apparatus of claim 17, wherein the sub-speaker is a set sub-speaker for detecting whether a user exists in a subspace to which the target sub-speaker belongs, and the playback unit is further configured to:
    detecting human body activity, and determining a user detection result based on the human body activity detection result, wherein the user detection result comprises presence or absence of a user;
    and sending the user detection result to the main control sound box.
  19. The apparatus of claim 18, wherein the sub-sound box corresponds to a spatial identification, the spatial identification being used to identify a subspace to which the sub-sound box belongs;
    The acquisition unit acquires audio data sent by the main control sound box in the following mode:
    and acquiring audio data sent by the main control sound box based on the space identifier.
  20. The apparatus of claim 19, wherein the playback unit performs audio playback based on the audio data in the following manner:
    responding to the space identifier as a first target space identifier, acquiring a first control playing instruction sent by a main control sound box, wherein a first target subspace identified by the first target space identifier is a subspace where a user is located before moving, and the first control playing instruction is used for controlling playing sound of a child sound box to be changed from big to small;
    and based on the first control playing instruction, audio playing is performed based on the audio data in a mode that playing sound is reduced from large to small.
  21. The apparatus of claim 19, wherein the playback unit performs audio playback based on the audio data in the following manner:
    responding to the space identifier as a second target space identifier, acquiring a second control playing instruction sent by the main control sound box, wherein a second target subspace identified by the second target space identifier is a subspace where a user is located after the user moves, and the second control playing instruction is used for controlling playing sound of the sub sound box to be changed from small to large;
    And based on the second control playing instruction, audio playing is carried out based on the audio data in a mode that playing sound is changed from small to large.
  22. The apparatus of claim 17, wherein the playback unit performs audio playback based on the audio data in the following manner:
    the system clock between the sub-sound box and the main control sound box is checked;
    and playing the audio synchronously with the main control sound box based on the calibrated system clock and the audio data.
  23. An audio playback control device, comprising:
    a processor;
    a memory for storing processor-executable instructions;
    wherein the processor is configured to: performing the method of any one of claims 1 to 5 or performing the method of any one of claims 6 to 11.
  24. A computer readable storage medium having instructions stored therein which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 5 or to perform the method of any one of claims 6 to 11.
CN202280004604.6A 2022-06-17 2022-06-17 Sound box playing control method, sound box playing control device and storage medium Pending CN117597730A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099595 WO2023240636A1 (en) 2022-06-17 2022-06-17 Sound box playing control method, sound box playing control apparatus, and storage medium

Publications (1)

Publication Number Publication Date
CN117597730A true CN117597730A (en) 2024-02-23

Family

ID=89192965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280004604.6A Pending CN117597730A (en) 2022-06-17 2022-06-17 Sound box playing control method, sound box playing control device and storage medium

Country Status (2)

Country Link
CN (1) CN117597730A (en)
WO (1) WO2023240636A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO20181210A1 (en) * 2018-08-31 2020-03-02 Elliptic Laboratories As Voice assistant
CN111757218A (en) * 2019-03-29 2020-10-09 深圳市冠旭电子股份有限公司 Audio file playing method, distributed sound system and main sound box
CN113506568B (en) * 2020-04-28 2024-04-16 海信集团有限公司 Central control and intelligent equipment control method
CN112035086B (en) * 2020-08-19 2024-03-22 海尔优家智能科技(北京)有限公司 Audio playing method and device
CN114446290A (en) * 2020-11-02 2022-05-06 青岛海尔智能技术研发有限公司 Device response method, device, computer device and storage medium
CN112449285A (en) * 2020-12-15 2021-03-05 广州市登宝路电器有限公司 Method and system for synchronously playing multiple sound boxes
CN114299951A (en) * 2021-12-31 2022-04-08 联想(北京)有限公司 Control method and device

Also Published As

Publication number Publication date
WO2023240636A1 (en) 2023-12-21

Similar Documents

Publication Publication Date Title
US11469962B2 (en) Method and apparatus for configuring information of indicating time-frequency position of SSB, and method and apparatus for determining time-frequency position of SSB
US9961393B2 (en) Method and device for playing multimedia file
CN105159672B (en) Remote assistance method and client
WO2017071070A1 (en) Speech control method and apparatus for smart device, control device and smart device
EP3136793A1 (en) Method and apparatus for awakening electronic device
EP3163887A1 (en) Method and apparatus for performing media synchronization
CN106454644B (en) Audio playing method and device
US10523494B2 (en) Method and apparatus for processing network failure
CN104391711B (en) A kind of method and device that screen protection is set
EP3779968A1 (en) Audio processing
CN105451056B (en) Audio and video synchronization method and device
CN105354017B (en) Information processing method and device
CN111696553B (en) Voice processing method, device and readable medium
WO2016155304A1 (en) Wireless access point control method and device
KR20170023769A (en) Event prompting mehtod and device
CN105532634A (en) Ultrasonic wave mosquito repel method, device and system
EP3264130A1 (en) Method and apparatus for screen state switching control
CN106453032B (en) Information-pushing method and device, system
CN111049984A (en) Audio playback control method and apparatus, and storage medium
CN111696554B (en) Translation method and device, earphone and earphone storage device
CN111540350B (en) Control method, device and storage medium of intelligent voice control equipment
CN107393528B (en) Voice control method and device
CN105448300A (en) Method and device for calling
CN111739538B (en) Translation method and device, earphone and server
US11588921B2 (en) Function invoking method and device, smart home system and computer-readable 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