WO2022062999A1 - Method for allocating channels and related device - Google Patents

Method for allocating channels and related device Download PDF

Info

Publication number
WO2022062999A1
WO2022062999A1 PCT/CN2021/118531 CN2021118531W WO2022062999A1 WO 2022062999 A1 WO2022062999 A1 WO 2022062999A1 CN 2021118531 W CN2021118531 W CN 2021118531W WO 2022062999 A1 WO2022062999 A1 WO 2022062999A1
Authority
WO
WIPO (PCT)
Prior art keywords
speaker
sound box
voice
sound
channel
Prior art date
Application number
PCT/CN2021/118531
Other languages
French (fr)
Chinese (zh)
Inventor
种冲
蔡双林
朱涛
李龙
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022062999A1 publication Critical patent/WO2022062999A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/02Spatial or constructional arrangements of loudspeakers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/18Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using ultrasonic, sonic, or infrasonic waves
    • G01S5/20Position of source determined by a plurality of spaced direction-finders
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/302Electronic adaptation of stereophonic sound system to listener position or orientation
    • H04S7/303Tracking of listener position or orientation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Definitions

  • the embodiments of the present application relate to the technical field of multimedia audio, and in particular, to a method for allocating channels and related devices.
  • a stereo speaker system In pursuit of better sound playback, people often use multiple speakers to create a stereo speaker system.
  • a stereo speaker system first set up a speaker network for multiple speakers, that is, multiple speakers (or called slave speakers) are connected to a local area network of one of the speakers (or called master speakers).
  • master speakers assign channels to each of the multiple speakers to form a stereo speaker system.
  • a stereo speaker system When using a stereo speaker system to play audio files, a surround sound field can be formed, a reverberation effect can be produced, and the user can feel immersive.
  • an electronic device eg, a mobile phone
  • two speakers and the mobile phone are in the same local area network, and the two speakers form a speaker network.
  • the left and right channels are set for the two speakers.
  • the first speaker is set as the left channel speaker
  • the second speaker is set as the right channel speaker.
  • the two speakers form a two-channel stereo speaker system.
  • the first speaker plays the left channel audio
  • the second speaker plays the right channel audio.
  • multiple speakers form a speaker network
  • two speakers are in the same local area network, and the two speakers form a stereo speaker network.
  • the first sound box is set as the left channel sound box
  • the second sound box is set as the right channel sound box. In this way, the two speakers form a two-channel stereo speaker system.
  • the above method of allocating channels is complicated to operate, which makes it more difficult to set channels of a stereo speaker system. Especially for those who operate for the first time, the operation is cumbersome and complicated, and it is not easy to implement.
  • the present application provides a method for channel allocation and related equipment, which can reduce the operation mode of channel allocation, so that a stereo sound box group can easily form a stereo sound effect.
  • the present application provides a method for allocating channels.
  • the method can be applied to a stereo speaker group composed of at least two speakers, and the stereo speaker group includes a first speaker and a second speaker as an example.
  • the method may include: the first speaker acquires the first voice, and determines the direction of the sound source emitting the first voice, where the first voice is used to instruct the first speaker to assign a channel to each speaker in the stereo speaker group.
  • the first speaker configures the channel of the first speaker as the parameter of the first channel and the channel of the second speaker as the parameter of the second channel according to the direction of the sound source of the first voice and the direction of the second speaker . That is, the first speaker can assign channels to each speaker in the stereo speaker group.
  • the first channel can be either the left channel or the right channel. If the first channel is the left channel, the second channel is the right channel; if the first channel is the right channel, the second channel is the left channel.
  • the first voice is sent by the user, and is used to control the first speaker to assign a channel to each speaker in the stereo speaker group. Therefore, the purpose of allocating channels to each speaker in the stereo speaker group can be achieved by voice, and the operation difficulty of allocating channels is reduced.
  • the first sound box may assign channels to the first sound box and the second sound box according to the direction of the user (ie, the direction of the sound source emitting the first voice) and the direction of the second sound box. That is to say, in the method provided by the embodiment of the present application, the direction confirmation can be performed according to the sound source, so as to accurately allocate the channels and provide the user with a better listening experience.
  • the first speaker is configured according to the direction of the sound source of the first voice and the direction of the second speaker before configuring the channels of the first speaker and the second speaker.
  • the direction in which the second speaker is located can be determined.
  • the first sound box can send first sound wave information, and the first sound wave information is used to instruct the second sound box to send out the second sound wave.
  • the first sound box receives the second sound wave information, and the direction in which the second sound box is located can be determined according to the direction of the second sound wave information.
  • the first speaker and the second speaker are positioned by sound waves, and there is no need to obtain an operation command, and a stereo speaker group can be formed directly according to the sound wave positioning of the first speaker to the second speaker.
  • This implementation reduces the difficulty of operation and improves the intelligence of the system.
  • the first sound box may also receive indication information, where the indication information is used to indicate that the position of the second sound box is changed.
  • the first speaker can issue a voice prompt, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
  • the stereo sound effect of the stereo sound box may be destroyed.
  • the first speaker sends out a voice prompt, it prompts the user that the information of each channel in the stereo speaker group can be changed, so that the stereo speaker group can always provide the user with good stereo sound effects.
  • the first speaker when the first speaker determines to replace the voice of the channel of the first speaker and the second speaker, the first speaker can determine the direction in which the user is located according to the voice, and the direction in which the second speaker is located (that is, the second speaker) Moved position), determine the channel of the first speaker and the second speaker.
  • the first speaker may also acquire a second voice, and the second voice is used to instruct the first speaker to replace the channels of the first speaker and the second speaker.
  • the first speaker configures the channel of the first speaker as the parameter of the second channel, and configures the channel of the second speaker as the parameter of the first channel.
  • the second voice is used to instruct to switch the channels of the first sound box and the second sound box, and the first sound box can change the channel settings of the first sound box and the second sound box. In this way of controlling the first speaker by voice, the operation difficulty is reduced and the user experience is better.
  • the first sound box determines that the third sound box is added to the stereo sound box group, and the first sound box determines the direction in which the third sound box is located.
  • the first sound box may configure the channel of the third sound box according to the direction in which the third sound box is located and the direction in which the second sound box is located.
  • the first speaker acquires a third voice, and the third voice is used to instruct the first speaker to cancel channel assignment.
  • the first speaker disbands the stereo speaker group in response to the third voice, so that each speaker in the stereo speaker group works independently.
  • the present application further provides an apparatus for channel allocation, the apparatus includes an acquisition module and a configuration module, and the apparatus may be a first sound box.
  • the acquisition module can be used to acquire the first voice, and determine the direction in which the sound source of the first voice is located, and the first voice is used to instruct the first sound box to allocate a channel for each sound box in the stereo sound box.
  • the stereo speaker group includes a first speaker and a second speaker.
  • the configuration module can be used to configure the channel of the first speaker as the parameters of the first channel and the channel of the second speaker as the parameter of the first channel according to the direction of the sound source that emits the first sound and the direction of the second speaker. parameters of the two channels.
  • the above-mentioned apparatus for allocating channels may further include: a positioning module.
  • the positioning module can be used to send the first sound wave information, and the first sound wave information is used to instruct the second sound box to send the second sound wave information; and receive the second sound wave information, and determine the second sound box according to the direction of the second sound wave information. the direction in which it is located.
  • the above-mentioned apparatus for allocating channels may further include a voice module.
  • the acquiring module may also be configured to receive indication information, where the indication information is used to indicate a change in the position of the second information.
  • the voice module can be used to issue a voice description, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
  • the acquisition module may also be used to acquire a second voice, and the second voice is used to instruct the first speaker to replace the channels of the first speaker and the second speaker.
  • the configuration module may also be configured to, in response to the second voice, configure the channel of the first speaker as the parameter of the second channel, and configure the channel of the second speaker as the parameter of the first channel.
  • the above-mentioned apparatus for allocating channels may further include a determining module.
  • the determining module can be used to determine that the third speaker is added to the stereo speaker group, and the first speaker is used to determine the direction in which the third speaker is located.
  • the configuration module is further configured to configure the channel of the third sound box as a parameter of the third channel according to the direction in which the second sound box is located and the direction in which the third sound box is located.
  • the obtaining module may also be configured to obtain a third voice, where the third voice is used to instruct the first speaker to cancel channel assignment.
  • the configuration module may also be used, in response to the third speech, to disband the stereo speaker group so that each speaker in the stereo speaker group operates independently.
  • the present application also provides an electronic device, the first electronic device may include: a memory and one or more processors; the memory and the processor are coupled.
  • the memory is used to store computer program codes, and the computer-level codes include computer instructions.
  • the processor executes the computer instructions, the first electronic device is made to execute the method in the first aspect and any possible implementation manners thereof.
  • the present application further provides a chip system, which is applied to an electronic device;
  • the chip system may include one or more interface circuits and one or more processors.
  • the interface circuit and the processor are interconnected by wires, and the interface circuit is used to receive signals from the memory of the electronic device and send the signals to the processor, the signals including computer instructions stored in the memory.
  • the electronic device executes the method in the first aspect and any possible implementations thereof.
  • the present application further provides a computer-readable storage medium, including computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to execute the method in the first aspect and any possible implementation manners thereof.
  • the present application further provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method in the first aspect and any possible implementations thereof.
  • 1A is a schematic diagram of a scene of a stereo speaker group provided by an embodiment of the application.
  • FIG. 1B is a schematic scene diagram of a sound source localization method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of an application scenario of a method for channel allocation provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of the hardware structure of a smart speaker provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a smart speaker provided by an embodiment of the present application.
  • 5A is a schematic diagram of another sound source localization scenario provided by an embodiment of the present application.
  • 5B is a schematic diagram of another sound source localization scenario provided by an embodiment of the present application.
  • 6A is a flowchart of a method for allocating channels provided by an embodiment of the present application.
  • 6B is a flowchart of a method for establishing a stereo speaker group provided by an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of an apparatus for channel allocation provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a smart speaker provided by an embodiment of the application.
  • FIG. 9 is a schematic structural diagram of a chip system according to an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • the embodiment of the present application provides a method for allocating channels, and the method can be applied to an already established stereo speaker group.
  • the stereo speaker group includes at least two speakers. By setting the channel of each speaker in the stereo speaker group, the stereo speaker group forms a surround sound field when playing audio files.
  • the stereo speaker group can assign channels to each speaker in the stereo speaker group according to the instruction of the voice information. It reduces the difficulty of distributing channels for the stereo speaker group, making it easy to form a stereo sound effect for the stereo speaker group.
  • the stereo speaker group includes a master speaker and a plurality of slave speakers (speakers other than the master speaker).
  • the main speaker can interact with the user, and the sound from the speaker is under the control of the main speaker, so that the stereo speaker group can work "like" a speaker.
  • the channels of the main speakers and the slave speakers can be set by the specific placement angles of the main speakers and the slave speakers.
  • a stereo speaker group composed of two speakers please refer to FIG. 1A , which is a stereo speaker group composed of two speakers.
  • the first speaker 10 is the master speaker
  • the second speaker 11 is the slave speaker.
  • the speaker of the main speaker is facing the direction of the user
  • the speaker of the slave speaker is also facing the direction of the user.
  • the slave speaker can be set as the left channel and the master speaker as the right channel. In this way, when the stereo speaker group plays an audio file, the audio of the left channel is played from the speaker, and the audio of the right channel is played from the main speaker, so that the stereo speaker group forms a surround sound field.
  • Combining multiple speakers into a stereo speaker group and assigning the correct channel to each speaker can provide users with good surround sound when playing audio files.
  • the master speaker can determine the direction of the user and the slave speaker through the sound source localization method, so as to assign channels to the slave speaker and the master speaker.
  • FIG. 1B is a schematic diagram of a scene using sound source localization.
  • one master speaker 20 and two slave speakers (in FIG. 1B , the first slave speaker 21 and the second slave speaker 22 ) form a stereo speaker group.
  • the master speaker determines the direction of the user based on sound source localization, and determines the direction of the first slave speaker 21 and the second slave speaker 22 through sound source localization.
  • the first slave speaker 21 is set as the left channel
  • the second slave speaker 22 is set as the right channel
  • the master speaker is set as stereo.
  • the main speakers in the stereo speaker group can be assigned the correct channel, and, as shown in FIG. 1B , the stereo speaker group plays audio files to form a stereo surround sound field.
  • FIG. 2 is a schematic diagram of an application scenario of the method for allocating channels provided by an embodiment of the present application.
  • it includes an electronic device 100 and a plurality of smart speakers (eg, a first speaker 101 and a second speaker 102 ).
  • the electronic device 100 , the first sound box 101 and the second sound box 102 are all connected to the same local area network, and the electronic device 100 can combine the first sound box 101 and the second sound box 300 into a stereo sound box group.
  • the electronic device 100 combines the first sound box 102 and the second sound box 102 into a stereo sound box group, the first sound box 101 can be set as the master sound box, and the second sound box 102 is the slave sound box.
  • a channel can be set for each speaker in the stereo speaker group through the main speaker.
  • a surround sound field is formed, so that the user has an immersive feeling when listening to the sound played by the stereo speaker group.
  • the main speaker can receive the user's "component stereo" voice (or the first voice), and determine the direction of the user according to the voice.
  • the main speaker determines the direction of the slave speaker, and according to the direction of the user and the direction of the slave speaker, the channel is allocated to the master speaker and the slave speaker.
  • the master speaker recognizes that the slave speaker is on the left side of the user, then the master speaker sets the slave speaker as the left channel and the master speaker as the right channel.
  • the master speaker recognizes that the slave speaker is on the right side of the user according to the direction of the user, and the master speaker sets the slave speaker as the right channel and the master speaker as the left channel.
  • the method provided by the embodiment of the present application simplifies the way of assigning channels to the stereo speaker group.
  • the main speaker can determine the direction of the user according to the voice according to the received user's voice, and allocate the channels according to the direction of the slave speakers.
  • the operation difficulty of assigning channels in a stereo speaker group is reduced, making it easy to assign channels in a stereo speaker group, thereby forming stereo sound effects when playing audio files.
  • FIG. 3 is a schematic structural diagram of a smart speaker 200 according to an embodiment of the present application.
  • the smart speaker 200 may include a processor 210 , an external memory interface 220 , an internal memory 221 , a universal serial bus (USB) interface 230 , a charging management module 240 , a power management module 241 , and a battery 242 , Antenna 1, sound source localization module 250, wireless communication module 260, audio module 270, sensor module 280, button 290 and so on.
  • the sensor module 280 may include a gravity sensor 280A, an orientation sensor 280B, an acceleration sensor 280C, and the like.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the smart speaker 200 .
  • the smart speaker 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include a modem processor, a graphics processing unit (GPU), an audio processor (or referred to as a digital processor) controller , memory, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • GPU graphics processing unit
  • an audio processor or referred to as a digital processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller may be the nerve center and command center of the smart speaker 200 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in processor 210 is cache memory.
  • the memory may hold instructions or data that have just been used or recycled by the processor 210 . If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the smart speaker 200 .
  • the smart speaker 200 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the smart speaker 200 .
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the processor 210 executes various functional applications and data processing of the smart speaker 200 by executing the instructions stored in the internal memory 221 .
  • the internal memory 221 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, etc.) created during the use of the smart speaker 200 and the like.
  • the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the charging management module 240 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the power management module 241 is used to connect the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives input from the battery 242 and/or the charge management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the wireless communication module 260, and the like.
  • the sound source localization module 250 includes a sound wave generator 251 and a sound wave receiver 252 .
  • the sound source locator 250 may communicate data with the processor 210 .
  • the acoustic wave generator 251 can send out acoustic wave signals of a preset frequency band, and the acoustic wave receiver 252 can receive the acoustic wave signals.
  • the sound source localization module 250 may determine the direction of the sound source according to the received sound wave signal. For example, the sound source localization module 250 determines the direction in which the user is located according to the received voice of the user. For another example, the sound source localization module 250 determines the direction in which the smart speaker is located according to the received sound wave signals (eg, from the speaker) sent by other smart speakers.
  • the wireless communication module 260 can provide applications on the smart speaker 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Solutions for wireless communication such as global navigation satellite system (GNSS), frequency modulation (FM).
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellites Solutions for wireless communication
  • GNSS global navigation satellite system
  • FM frequency modulation
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 1 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the wireless communication module 260 can also receive the signal to be sent from the processor 210 , perform frequency modulation on it, amplify it, and then convert it into electromagnetic waves for radiation through the antenna 1 .
  • the smart speaker 200 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, and an application processor. For example, music playback, acquisition of voice information, recording, etc.
  • the audio module 270 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be provided in the processor 210 , or some functional modules of the audio module 270 may be provided in the processor 110 . Speaker 270A, also referred to as a "speaker”, is used to convert audio electrical signals into sound signals. The receiver 170B, also referred to as “earpiece”, is used to convert audio electrical signals into sound signals. The microphone 270C, also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the smart speaker 200 may be provided with multiple speakers 270A and multiple microphones 270C.
  • the smart speaker 200 is provided with speakers 270A in six directions, and each speaker 270A may correspond to a microphone 270C.
  • the gravity sensor 280A can be used to detect the change of the gravity direction of the smart speaker 200 to determine whether the smart speaker 200 is displaced.
  • the gravity sensor 280A can calculate the inclination angle of the smart speaker 200 relative to the horizontal plane, so as to determine that the direction of gravity of the smart speaker changes, so as to determine whether the position of the smart speaker has moved.
  • the direction sensor 280B can be used to sense the inertial force of the smart speaker 200 in a certain direction and measure the acceleration and gravity of the smart speaker 200 in this direction. In some embodiments, the direction in which the smart speaker moves can be determined by the direction sensor 280B.
  • the acceleration sensor 280C can detect the acceleration of the smart speaker 200 in various directions (generally three axes). When the smart speaker 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of the smart speaker to determine the moving distance of the smart speaker.
  • the smart speaker 200 may further include a display screen, and the display screen may be used to display images or videos.
  • the above-mentioned hardware structure of the smart speaker 200 is only for illustration, and the embodiment of the present application does not specifically limit the hardware structure of the smart speaker.
  • FIG. 4 is a schematic diagram of a scenario of a method for allocating channels provided by an embodiment of the present application.
  • the scene shown in FIG. 4 includes: a router 300 , a first sound box 301 , a second sound box 302 and a third sound box 303 .
  • the router 300 can provide a network access point for the first speaker 301, the second speaker 302 and the third speaker 303, so that the first speaker 301, the second speaker 302 and the third speaker 303 can be accessed through the network access point
  • the first sound box 301, the second sound box 302 and the third sound box 303 can be used normally.
  • the communicable range of the local area network includes the first speaker 301, the second speaker 302 and the third speaker 303, and at least two of the first speaker 301, the second speaker 302 and the third speaker 303 can form a stereo speaker group.
  • the first sound box 301 is used as a master speaker
  • the second speaker 302 and the third speaker 303 are used as slave speakers.
  • the master speaker acts as a wireless access point (AP)
  • the slave speakers are all connected to the AP, so that the slave speakers will work under the control of the master speaker.
  • the master speaker can determine the position of the slave speaker through sound source localization, and determine the direction of the user according to the acquired user's voice.
  • the main speakers can assign channels to the main speakers and the slave speakers according to the direction of the user and the direction of the slave speakers. Makes the stereo speaker group form a surround sound field when playing audio files.
  • the main sound box may be randomly selected. Therefore, each speaker can realize the function of sound source localization.
  • FIG. 5A is a schematic diagram of a sound source localization scene provided by an embodiment of the present application.
  • the first smart speaker 51 and the second smart speaker 52 form a stereo speaker group, wherein the first smart speaker 51 and the second smart speaker 52 have the same hardware structure.
  • both the first smart speaker 51 and the second smart speaker 52 include six speakers and microphones corresponding to the speakers. Each speaker can emit sound waves, and each microphone can receive sound waves.
  • the microphone on the second smart speaker can receive the sound waves.
  • the first smart speaker 51 is the main speaker
  • the microphone of the first smart speaker 51 broadcasts the first sound wave information
  • the first sound wave information instructs the smart speaker to broadcast the second sound wave information.
  • the second smart speaker 52 broadcasts the second sound wave information after receiving the first sound wave information. In this way, the first smart speaker 51 can determine the direction in which the second smart speaker 52 is located according to the microphone that receives the second sound wave.
  • the first smart speaker 51 and the second smart speaker 52 form a stereo speaker group, and the user is located at the position where S1 is located.
  • the first smart speaker 51 is a master speaker
  • the second smart speaker 52 is a slave speaker.
  • the user sends out voice information (ie, the first voice), and the first voice is used to instruct the main speaker to set a channel for each speaker in the stereo speaker group.
  • voice information ie, the first voice
  • the main speaker receives the first voice from the user, the direction of the user can be determined according to the first voice.
  • the main speaker may emit a first sound wave, and the first sound wave is used to instruct the second sound wave to be emitted from the speaker.
  • the main speaker When the first sound wave is received from the speaker, the second sound wave is sent out, so that the main speaker can determine the direction of the slave speaker according to the second sound wave received. As a result, the main speaker is assigned the left channel to the main speaker and the right channel to the slave speaker from the direction of the speaker according to the direction of the user.
  • the main speaker can set the channel of each speaker in the stereo speaker group according to the first voice, so that the stereo speaker group generates stereo sound effects when playing the audio file.
  • the embodiment of the present application will take the example of a stereo speaker group formed by the first sound box 301 , the second sound box 302 and the third sound box 303 as an example to describe the method for allocating channels provided by the embodiment of the present application.
  • the first sound box 301, the second sound box 302 and the third sound box 303 form a stereo sound box group, and in the case where a stereo sound box has not yet been formed, the method provided by the embodiment of the present application can be used to allocate channels to each sound box, so that the stereo sound box group form stereo.
  • FIG. 6A is a flowchart of a method for allocating channels provided by an embodiment of the present application. It should be noted that the flowchart shown in FIG. 6A takes the first speaker 301 and the second speaker 302 to form a stereo speaker group, the first speaker 301 is the master speaker, and the second speaker 302 is the slave speaker as an example to illustrate the combined stereo speaker group. The method of assigning channels in .
  • the method may include steps 601 to 606 .
  • Step 601 The master speaker and the slave speakers form a stereo speaker group.
  • a master speaker and a slave speaker are included in the communicable range of a local area network, and a user can establish a stereo speaker group through an electronic device (eg, a mobile phone).
  • a mobile phone can access a local area network and query the devices connected to the local area network to determine that both the master and slave speakers are connected to the local area network.
  • the user can establish a stereo speaker group through the mobile phone, and the mobile phone can send the information of the component stereo speaker group to the main speaker and the slave speaker, and further through the selection operation of the main speaker and the slave speaker, the main speaker and the slave speaker form a stereo speaker group.
  • the main speaker is connected to the local area network through the mobile phone, and the secondary speaker is also connected to the local area network.
  • Determine the formation of a stereo speaker group by selecting the master speaker and the slave speaker (for example, click the button on the master speaker and the slave speaker), and determine the master speaker to be created first by initiating the stereo speaker group, and the receiver created by the stereo speaker group as from the speakers. In this way, the master speaker and the slave speakers form a stereo speaker group.
  • the master speaker and the slave speaker may form a stereo speaker group after receiving the voice information.
  • a method of its formation is shown in FIG. 6B , and the method may include steps 61a to 67a.
  • Step 61a The user sends voice information, and the voice information is used to instruct the formation of a stereo speaker group.
  • smart speakers are generally in a dormant state and can monitor the voice information sent by the user at any time. If the voice information is not a wake-up voice to wake up itself (smart speaker) to work, the smart speaker will not respond to the voice information, nor will it record the voice information. voice message.
  • the voice information may include a wake-up word, for example, the voice information is "Xiaoyi Xiaoyi, set up a stereo speaker group". This voice message instructs the master speaker and slave speakers to form a stereo speaker group.
  • the voice information may not include a wake-up word, for example, the voice information may be "build a stereo speaker group".
  • Step 62a The main speaker receives the voice information.
  • the main speaker can receive the voice information and send the voice information according to the position of the user.
  • Step 63a Receive voice information from the speaker.
  • the slave speaker can receive the voice information, and determine the direction of the user according to the voice information.
  • Step 64a The main speaker broadcasts the sound waves forming the stereo.
  • the main speaker may be a speaker that first emits sound waves to form stereo sound after receiving the voice information.
  • the main speakers are preset speakers (eg, the speakers that are connected to the local area network first).
  • the stereo sound waves broadcast by the main speaker may be the sound that the user can hear or the sound that the user cannot hear.
  • Step 65a Receive the sound waves forming the stereo group from the speakers, and broadcast the sound waves connected to the stereo group.
  • the voice information sent by the user may be received from the speaker, and the sound waves of the component stereo broadcasted by the main speaker may be received from the speaker, and the slave speaker will access the sound waves of the stereo group in response to the sound waves of the stereo group.
  • the master speaker to receive the access request from the slave speaker, so that the slave speaker can be added to the stereo speaker group.
  • Step 66a The master speaker receives the sound waves connected to the stereo group, determines the direction where the slave speakers are located, and determines to form a stereo speaker group with the slave speakers.
  • the main speaker receives the sound waves broadcast from the speaker and is connected to the stereo group, and determines the direction of the slave speaker.
  • the master speakers can assign channels to the master speaker and the slave speakers according to the direction of the user, and the direction of the slave speakers.
  • Step 67a The main speaker sends out a voice prompt that the stereo speaker group is successfully formed.
  • the main speaker may broadcast a voice prompt of "the stereo speaker group is completed", so that the user knows that the creation of the stereo speaker group is completed.
  • the master speaker can be used as an AP device to establish a connection between the slave speaker and the master speaker, and the slave speakers work under the control of the master speaker.
  • Step 602 the main speaker acquires the first voice, and determines the direction of the sound source that emits the first voice.
  • the first voice is used to instruct the main speaker to assign a channel to each speaker in the stereo speaker group.
  • the master speaker can control the work of the slave speakers.
  • the main speaker can control to receive voice information from the speaker, and transmit the received voice information to the main speaker, and the main speaker responds to the voice information received from the speaker.
  • the slave speaker transmits the received voice information to the master speaker, and the master speaker can determine the response information corresponding to the voice information, and transmit the response information to the slave speaker, and the slave speaker responds to the voice information.
  • the first voice may be "build stereo", indicating that the master speaker and the slave speakers form a stereo.
  • the first voice may be "Xiaoyi Xiaoyi, set up stereo”.
  • "Xiaoyi Xiaoyi" here is the wake-up word of smart speakers.
  • Step 603 The master speaker broadcasts the first sound wave information, and the first sound wave information is used to instruct the slave speaker to broadcast the second sound wave information.
  • the master speaker and the slave speakers have been formed into a stereo sound group, and the master speaker uses the sound source positioning method to determine the direction of the slave speakers.
  • the master speaker broadcasts the first sound wave, so that the multiple speakers receive the first sound wave information and broadcast the second sound wave information in response to the first sound wave information.
  • the master speaker can receive multiple pieces of second sound wave information, so that the directions where the multiple slave speakers are located can be determined according to the received second sound wave information.
  • Step 604 Receive the first sound wave information from the speaker, and broadcast the second sound wave information in response to the first sound wave information.
  • the main speaker determines the direction of the slave speaker according to the second sound wave information.
  • Step 605 The master speaker receives the second sound wave information, and determines the direction of the slave speaker.
  • steps 603 to 605 are based on the method of sound source localization, so that the main speaker determines the direction where the slave speaker is located.
  • the main speaker determines the direction where the slave speaker is located.
  • the above-mentioned sound source localization methods can all be applied here, and details are not repeated here.
  • the master speaker may also locate the distance value from the slave speaker according to the second sound wave information, so as to accurately determine the positional relationship between the slave speaker and the user.
  • Step 606 According to the direction of the sound source and the direction of the slave speaker, the master speaker sets the master speaker as the first channel and the slave speaker as the second channel.
  • the direction of the sound source is the direction of the user. If the main speaker is located in the area on the left side of the user and the slave speaker is located in the area on the right side of the user, the main speaker can be set as the left channel of the main speaker and the right channel of the slave speaker. sound. If the main speaker is located in the area on the right side of the user and the slave speaker is located in the area on the left side of the user, the main speaker can be set as the right channel for the main speaker and the left channel for the slave speaker.
  • the master speaker can set multiple channels of the slave speakers according to the directions in which the multiple speakers are located. Makes the stereo speaker group play audio files in stereo, providing users with a good listening experience.
  • the master speaker and the slave speakers form a stereo speaker group
  • the master speaker sets the channel of each speaker (ie, the master speaker and the slave speaker) in the stereo speaker group. If the third speaker is added to the stereo speaker group, that is, the main speaker is connected to the first slave speaker and the second slave speaker, the master speaker needs to update the channel of each speaker in the stereo speaker group according to the position of the third speaker.
  • the main sound box may send first sound wave information to the third sound box, where the first sound wave information is used to instruct the slave sound box to broadcast the second sound wave information.
  • the first slave speaker and the second slave speaker receive the first sound wave information, and broadcast the second sound wave information in response to the first sound wave information.
  • Sonic information to determine the direction of the first slave speaker and the second slave speaker.
  • the master speaker can set channel parameters for the first slave speaker and the second slave speaker according to the directions of the first slave speaker and the second slave speaker.
  • the master speaker and the slave speakers form a stereo speaker group
  • the master speaker sets a channel for each speaker in the stereo speaker group, so that the stereo speaker group forms a stereo sound. If the position of any speaker in the stereo speaker group is changed, the speaker can send an indication message to indicate that the position of itself (ie, the speaker) has changed. In this way, the main speakers can receive the instructions from the speakers.
  • the indication information can be broadcast from the speaker, or can be sent from the main speaker. That is to say, if the main speaker detects that its position has changed, it also needs to send out a prompt message.
  • the main speaker may issue a voice prompt, where the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
  • the user can hear the voice prompt broadcast by the master speaker. If the user answers "Yes", the master speaker can set the channel of the master speaker and the slave speaker according to the current position of the slave speaker.
  • the current position of the speaker is determined, and the channels of the master speaker and the slave speaker are updated according to the positions of the slave speaker and the master speaker.
  • the master speaker and the slave speakers form a stereo speaker group
  • the master speaker sets stereo for each speaker in the stereo speaker group. If the user wants to disband the stereo speaker group so that each speaker can work independently, the user can send out a voice message of "disband the stereo speaker group". When the main speaker receives the voice information, the stereo speaker group can be disbanded, so that each speaker can work independently.
  • the embodiment itself also provides a device for distributing channels, which corresponds to the main speaker in the above-mentioned embodiment.
  • the main speaker includes: an acquisition module 701 , a configuration module 702 , a positioning module 703 , a voice module 704 and a determination module 705 .
  • the acquiring module 701 may be configured to acquire the first voice, and determine the direction of the sound source emitting the first voice, where the first voice is used to instruct the first speaker to assign a channel to each speaker in the stereo speakers.
  • the stereo speaker group includes a first speaker and a second speaker.
  • the configuration module 702 can be configured to configure the channel of the first speaker as the parameter of the first channel and the channel of the second speaker as the parameter of the first channel according to the direction of the sound source that emits the first sound and the direction of the second speaker. parameters of the two channels.
  • the positioning module 703 can be used to send the first sound wave information, and the first sound wave information is used to instruct the second sound box to send the second sound wave information; and receive the second sound wave information, and determine the second sound box according to the direction of the second sound wave information. the direction in which it is located.
  • the voice module 704 can be used to issue a voice description, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
  • the determining module 705 may be used to determine that the third speaker is added to the stereo speaker group, and the first speaker is used to determine the direction in which the third speaker is located.
  • the above-mentioned electronic device includes corresponding hardware structures and/or software modules for executing each function.
  • the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
  • the electronic device may be divided into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • FIG. 8 shows a possible schematic structural diagram of the smart speaker involved in the above embodiment.
  • the smart speaker 200 includes: a processing unit 801 , a sound source localization unit 802 , a channel assignment unit 803 and a storage unit 804 .
  • the processing unit 801 is used to control and manage the actions of the smart speaker 200 .
  • the processing unit 801 may be used to indicate step 601 as in FIG. 6A, and/or other processes for the techniques described herein.
  • the sound source localization unit 802 is used to control the process of determining the slave speaker of the smart speaker 200 .
  • the sound source localization unit 802 may be used to indicate steps 61a-67a as in Figure 6B, and/or other processes for the techniques described herein.
  • the channel assignment unit 803 is used to control the process of assigning channels to the smart speaker 200 .
  • the channel assignment unit 803 may be used to indicate step 607 in FIG. 6A, and/or other processes for the techniques described herein.
  • the storage unit 804 is used to store program codes and data of the smart speaker 200 . For example, it can be used to store audio files, etc.
  • the unit modules in the above-mentioned smart speaker 200 include but are not limited to the above-mentioned processing unit 801 , sound source localization unit 802 , channel assignment unit 803 , and storage unit 804 .
  • the smart speaker 200 may further include an audio unit, a communication unit, and the like.
  • the audio unit is used to collect the voice made by the user and play the voice.
  • the communication unit is used to support the communication between the smart speaker 200 and other devices.
  • the chip system includes at least one processor 901 and at least one interface circuit 902 .
  • the processor 901 and the interface circuit 902 may be interconnected by wires.
  • the interface circuit 902 may be used to receive signals from other devices, such as the memory of an electronic device.
  • the interface circuit 902 may be used to send signals to other devices (eg, the processor 901).
  • the interface circuit 902 can read the instructions stored in the memory and send the instructions to the processor 901 .
  • the electronic device can be caused to perform the various steps in the above-mentioned embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
  • Embodiments of the present application further provide a computer storage medium, where the computer storage medium includes computer instructions, when the computer instructions are executed on the above-mentioned electronic device, the electronic device is made to perform various functions or steps performed by the mobile phone in the above-mentioned method embodiments .
  • Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, enables the computer to perform various functions or steps performed by the mobile phone in the above method embodiments.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Abstract

Embodiments of the present application provide a method for allocating channels and a related device, which relate to the field of multimedia audio technologies. By means of the method provided in the embodiments of the present application, with the reduced channel allocation operation, a stereo sound effect can be easily formed by a stereo sound box set. Said method may comprise: a first sound box acquiring a first voice, and determining the direction of a sound source which issues the first voice, wherein the first voice is used to instruct the first sound box to allocate channels for each sound box in a stereo sound box set, the stereo sound box set comprising the first sound box and a second sound box; and according to the direction of the sound source which issues the first voice and the direction of the second sound box, the first sound box configuring the channel of the first sound box with a parameter of the first channel and configuring the channel of the second sound box with a parameter of the second channel.

Description

一种分配声道的方法及相关设备A method for allocating channels and related equipment
本申请要求于2020年9月24日提交国家知识产权局、申请号为202011014924.9、发明名称为“一种分配声道的方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on September 24, 2020, with the application number 202011014924.9 and the invention titled "A Method for Assigning Sound Channels and Related Equipment", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请实施例涉及多媒体音频技术领域,尤其涉及一种分配声道的方法及相关设备。The embodiments of the present application relate to the technical field of multimedia audio, and in particular, to a method for allocating channels and related devices.
背景技术Background technique
为了追求更好的声音播放效果,人们常会使用多个音箱创建立体声音箱系统。其中,创建立体声音箱系统时,首先为多个音箱组建音箱组网,即多个音箱(或称为从音箱)连接至其中一个音箱(或称为主音箱)的局域网中。其次为多个音箱中的每个音箱分配声道,以形成立体声音箱系统。使用立体声音箱系统播放音频文件时,可以形成环绕音场,产生混响效果,给用户带来身临其境的感觉。In pursuit of better sound playback, people often use multiple speakers to create a stereo speaker system. Among them, when creating a stereo speaker system, first set up a speaker network for multiple speakers, that is, multiple speakers (or called slave speakers) are connected to a local area network of one of the speakers (or called master speakers). Next, assign channels to each of the multiple speakers to form a stereo speaker system. When using a stereo speaker system to play audio files, a surround sound field can be formed, a reverberation effect can be produced, and the user can feel immersive.
一般而言,多个音箱组建音箱组网后,可以借助电子设备(例如,手机)设置多个音箱中每个音箱的声道,使得多个音箱组成立体声音箱系统。例如,两个音箱与手机处于同一个局域网中,两个音箱形成音箱组网,基于用户对手机的操作,为两个音箱设置左右声道。如,将第一音箱设置为左声道音箱,将第二音箱设置为右声道音箱。这样,两个音箱就形成双声道的立体声音箱系统,当播放音频文件时,第一音箱播放左声道音频,第二音箱播放右声道音频。Generally speaking, after multiple speakers form a speaker network, an electronic device (eg, a mobile phone) can be used to set the channel of each speaker in the multiple speakers, so that the multiple speakers form a stereo speaker system. For example, two speakers and the mobile phone are in the same local area network, and the two speakers form a speaker network. Based on the user's operation on the mobile phone, the left and right channels are set for the two speakers. For example, the first speaker is set as the left channel speaker, and the second speaker is set as the right channel speaker. In this way, the two speakers form a two-channel stereo speaker system. When playing an audio file, the first speaker plays the left channel audio, and the second speaker plays the right channel audio.
另外,多个音箱组建音箱组网后,还可以通过音箱上的按键为其设定声道,使得多个音箱组成立体声音箱系统。例如,两个音箱处于同一局域网中,且这两个音箱形成立体声音箱组网。通过对第一音箱和第二音箱上的按键操作,将第一音箱设置为左声道音箱,将第二音箱设置为右声道音箱。这样,两个音箱就组成双声道的立体声音箱系统。In addition, after multiple speakers form a speaker network, you can also set channels for them through the buttons on the speakers, so that multiple speakers form a stereo speaker system. For example, two speakers are in the same local area network, and the two speakers form a stereo speaker network. By operating the keys on the first sound box and the second sound box, the first sound box is set as the left channel sound box, and the second sound box is set as the right channel sound box. In this way, the two speakers form a two-channel stereo speaker system.
以上的分配声道的方式操作复杂,使得设置立体声音箱系统声道的难度增大。特别是对于初次操作的人员,操作比较繁琐复杂,不易实施。The above method of allocating channels is complicated to operate, which makes it more difficult to set channels of a stereo speaker system. Especially for those who operate for the first time, the operation is cumbersome and complicated, and it is not easy to implement.
发明内容SUMMARY OF THE INVENTION
本申请提供一种分配声道的方法及相关设备,可以降低的分配声道的操作方式,使得立体声音箱组易于形成立体声音效。The present application provides a method for channel allocation and related equipment, which can reduce the operation mode of channel allocation, so that a stereo sound box group can easily form a stereo sound effect.
为实现上述技术目的,本申请采用如下技术方案:In order to realize the above-mentioned technical purpose, the application adopts the following technical solutions:
第一方面,本申请提供一种分配声道的方法,该方法可以应用于至少两个音箱组成的立体声音箱组,以立体声音箱组包括第一音箱和第二音箱为例。该方法可以包括:第一音箱获取第一语音,并确定发出第一语音的声源所在的方向,第一语音用于指示第一音箱为立体声音箱组中的每个音箱分配声道。第一音箱根据第一语音的声源所在的方向,以及第二音箱的方向,配置第一音箱的声道为第一声道的参数,配置第二音箱的声道为第二声道的参数。也就是说,第一音箱可以为立体声音箱组中的每个音箱 分配声道。第一声道可以是左声道也可以是右声道。如果第一声道为左声道,则第二声道为右声道;如果第一声道为右声道,则第二声道为左声道。In a first aspect, the present application provides a method for allocating channels. The method can be applied to a stereo speaker group composed of at least two speakers, and the stereo speaker group includes a first speaker and a second speaker as an example. The method may include: the first speaker acquires the first voice, and determines the direction of the sound source emitting the first voice, where the first voice is used to instruct the first speaker to assign a channel to each speaker in the stereo speaker group. The first speaker configures the channel of the first speaker as the parameter of the first channel and the channel of the second speaker as the parameter of the second channel according to the direction of the sound source of the first voice and the direction of the second speaker . That is, the first speaker can assign channels to each speaker in the stereo speaker group. The first channel can be either the left channel or the right channel. If the first channel is the left channel, the second channel is the right channel; if the first channel is the right channel, the second channel is the left channel.
可以理解的,第一语音是用户发出的,用于控制第一音箱为立体声音箱组中的每个音箱分配声道。因此,通过语音可以实现为立体声音箱组中每个音箱分配声道的目的,降低了分配声道的操作难度。而且,第一音箱可以根据用户所在的方向(即发出第一语音的声源所在的方向)和第二音箱的方向,为第一音箱和第二音箱分配声道。也就是说,本申请实施例提供的方法中,可以根据声源进行方向确认,以便准确分配声道,为用户提供更好的听觉体验。It can be understood that the first voice is sent by the user, and is used to control the first speaker to assign a channel to each speaker in the stereo speaker group. Therefore, the purpose of allocating channels to each speaker in the stereo speaker group can be achieved by voice, and the operation difficulty of allocating channels is reduced. Moreover, the first sound box may assign channels to the first sound box and the second sound box according to the direction of the user (ie, the direction of the sound source emitting the first voice) and the direction of the second sound box. That is to say, in the method provided by the embodiment of the present application, the direction confirmation can be performed according to the sound source, so as to accurately allocate the channels and provide the user with a better listening experience.
在第一方面一种可能的实现方式中,上述第一音箱根据第一语音的声源所在的方向,以及第二音箱的方向,配置第一音箱和第二音箱的声道之前,第一音箱可以确定出第二音箱所在的方向。其中,第一音箱可以发送第一声波信息,第一声波信息用于指示第二音箱发出第二声波。第一音箱接收到第二声波信息,可以根据第二声波信息的方向确定出第二音箱所在的方向。In a possible implementation manner of the first aspect, the first speaker is configured according to the direction of the sound source of the first voice and the direction of the second speaker before configuring the channels of the first speaker and the second speaker. The direction in which the second speaker is located can be determined. Wherein, the first sound box can send first sound wave information, and the first sound wave information is used to instruct the second sound box to send out the second sound wave. The first sound box receives the second sound wave information, and the direction in which the second sound box is located can be determined according to the direction of the second sound wave information.
其中,第一音箱和第二音箱通过声波定位,不需要获取操作命令,可以直接根据第一音箱对第二音箱的声波定位,组建立体声音箱组。这种实现方式降低了操作的难度,提高了系统的智能程度。Wherein, the first speaker and the second speaker are positioned by sound waves, and there is no need to obtain an operation command, and a stereo speaker group can be formed directly according to the sound wave positioning of the first speaker to the second speaker. This implementation reduces the difficulty of operation and improves the intelligence of the system.
第一方面另一种可能的实现方式中,第一音箱还可以接收指示信息,指示信息用于指示第二音箱的位置发生改变。在这种情况下,第一音箱可以发出语音提示,语音提示用于提示是否更换第一音箱和第二音箱的声道。In another possible implementation manner of the first aspect, the first sound box may also receive indication information, where the indication information is used to indicate that the position of the second sound box is changed. In this case, the first speaker can issue a voice prompt, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
其中,当第二音箱的位置发生改变,则立体声音箱的立体声音效可能被破坏。如果第一音箱发出语音提示,提示用户可以更改立体声音箱组中每个声道的信息,使得立体声音箱组可以一直为用户提供良好的立体声音效。Wherein, when the position of the second sound box is changed, the stereo sound effect of the stereo sound box may be destroyed. If the first speaker sends out a voice prompt, it prompts the user that the information of each channel in the stereo speaker group can be changed, so that the stereo speaker group can always provide the user with good stereo sound effects.
示例性的,当第一音箱确定更换第一音箱和第二音箱声道的语音时,第一音箱可以根据该语音确定出用户所在的方向,并根据第二音箱所在的方向(即第二音箱移动后的位置),确定第一音箱和第二音箱的声道。Exemplarily, when the first speaker determines to replace the voice of the channel of the first speaker and the second speaker, the first speaker can determine the direction in which the user is located according to the voice, and the direction in which the second speaker is located (that is, the second speaker) Moved position), determine the channel of the first speaker and the second speaker.
第一方面另一种可能的实现方式中,第一音箱还可以获取第二语音,第二语音用于指示第一音箱更换第一音箱和第二音箱的声道。第一音箱响应于第二语音,配置第一音箱的声道为第二声道的参数,配置第二音箱的声道为第一声道的参数。In another possible implementation manner of the first aspect, the first speaker may also acquire a second voice, and the second voice is used to instruct the first speaker to replace the channels of the first speaker and the second speaker. In response to the second voice, the first speaker configures the channel of the first speaker as the parameter of the second channel, and configures the channel of the second speaker as the parameter of the first channel.
其中,第二语音用于指示切换第一音箱和第二音箱的声道,则第一音箱可以更改第一音箱和第二音箱的声道设置。这种通过语音控制第一音箱的方式中,降低了操作难度,使得用户体验更好。The second voice is used to instruct to switch the channels of the first sound box and the second sound box, and the first sound box can change the channel settings of the first sound box and the second sound box. In this way of controlling the first speaker by voice, the operation difficulty is reduced and the user experience is better.
第一方面另一种可能的实现方式中,第一音箱确定第三音箱加入立体声音箱组,第一音箱确定第三音箱所在的方向。第一音箱可以根据第三音箱所在的方向、第二音箱所在的方向配置第三音箱的声道。In another possible implementation manner of the first aspect, the first sound box determines that the third sound box is added to the stereo sound box group, and the first sound box determines the direction in which the third sound box is located. The first sound box may configure the channel of the third sound box according to the direction in which the third sound box is located and the direction in which the second sound box is located.
第一方面另一种可能的实现方式中,第一音箱获取第三语音,第三语音用于指示第一音箱取消声道分配。第一音箱响应于第三语音,解散立体声音箱组,使得立体声音箱组中的每个音箱单独工作。In another possible implementation manner of the first aspect, the first speaker acquires a third voice, and the third voice is used to instruct the first speaker to cancel channel assignment. The first speaker disbands the stereo speaker group in response to the third voice, so that each speaker in the stereo speaker group works independently.
第二方面,本申请还提供一种分配声道的装置,该装置包括获取模块和配置模块,该装置可以是第一音箱。其中,获取模块可以用于,获取第一语音,并确定发出第一 语音的声源所在的方向,第一语音用于指示第一音箱为立体声音箱中的每个音箱分配声道。其中,立体声音箱组包括第一音箱和第二音箱。配置模块可以用于,根据发出第一声音的声源所在的方向,以及第二音箱所在的方向,配置第一音箱的声道为第一声道的参数,配置第二音箱的声道为第二声道的参数。In a second aspect, the present application further provides an apparatus for channel allocation, the apparatus includes an acquisition module and a configuration module, and the apparatus may be a first sound box. Wherein, the acquisition module can be used to acquire the first voice, and determine the direction in which the sound source of the first voice is located, and the first voice is used to instruct the first sound box to allocate a channel for each sound box in the stereo sound box. The stereo speaker group includes a first speaker and a second speaker. The configuration module can be used to configure the channel of the first speaker as the parameters of the first channel and the channel of the second speaker as the parameter of the first channel according to the direction of the sound source that emits the first sound and the direction of the second speaker. parameters of the two channels.
第二方面的一种可能的实现方式中,上述分配声道的装置还可以包括:定位模块。定位模块可以用于,发送第一声波信息,第一声波信息用于指示第二音箱发送第二声波信息;以及接收第二声波信息,根据第二声波信息的方向,确定出第二音箱所在的方向。In a possible implementation manner of the second aspect, the above-mentioned apparatus for allocating channels may further include: a positioning module. The positioning module can be used to send the first sound wave information, and the first sound wave information is used to instruct the second sound box to send the second sound wave information; and receive the second sound wave information, and determine the second sound box according to the direction of the second sound wave information. the direction in which it is located.
第二方面另一种可能的实现方式中,上述分配声道的装置还可以包括语音模块。获取模块还可以用于,接收指示信息,指示信息用于指示第二信息的位置改变。语音模块可以用于,发出语音题述,语音提示用于提示是否更换第一音箱和第二音箱的声道。In another possible implementation manner of the second aspect, the above-mentioned apparatus for allocating channels may further include a voice module. The acquiring module may also be configured to receive indication information, where the indication information is used to indicate a change in the position of the second information. The voice module can be used to issue a voice description, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
第二方面另一种可能的实现方式中,获取模块还可以用于,获取第二语音,第二语音用于指示第一音箱更换第一音箱和第二音箱的声道。配置模块还可以用于,响应于第二语音,配置第一音箱的声道为第二声道的参数,配置第二音箱的声道为第一声道的参数。In another possible implementation manner of the second aspect, the acquisition module may also be used to acquire a second voice, and the second voice is used to instruct the first speaker to replace the channels of the first speaker and the second speaker. The configuration module may also be configured to, in response to the second voice, configure the channel of the first speaker as the parameter of the second channel, and configure the channel of the second speaker as the parameter of the first channel.
第二方面的另一种可能的实现方式中,上述分配声道的装置还可以包括确定模块。确定模块可以用于,确定第三音箱加入立体声音箱组,第一音箱用于确定第三音箱所在的方向。配置模块还用于,根据第二音箱所在的方向、第三音箱所在的方向,配置第三音箱的声道为第三声道的参数。In another possible implementation manner of the second aspect, the above-mentioned apparatus for allocating channels may further include a determining module. The determining module can be used to determine that the third speaker is added to the stereo speaker group, and the first speaker is used to determine the direction in which the third speaker is located. The configuration module is further configured to configure the channel of the third sound box as a parameter of the third channel according to the direction in which the second sound box is located and the direction in which the third sound box is located.
第二方面另一种可能的实现方式中,获取模块还可以用于,获取第三语音,第三语音用于指示第一音箱取消声道分配。配置模块还可以用于,响应于第三语音,解散立体声音箱组,使得立体声音箱组中的每个音箱单独工作。In another possible implementation manner of the second aspect, the obtaining module may also be configured to obtain a third voice, where the third voice is used to instruct the first speaker to cancel channel assignment. The configuration module may also be used, in response to the third speech, to disband the stereo speaker group so that each speaker in the stereo speaker group operates independently.
第三方面,本申请还提供一种电子设备,该第一电子设备可以包括:存储器和一个或多个处理器;存储器和处理器耦合。其中,存储器用于存储计算机程序代码,计算机程度代码包括计算机指令,当处理器执行该计算机指令时,使第一电子设备执行上述第一方面及其任一种可能的实现方式中的方法。In a third aspect, the present application also provides an electronic device, the first electronic device may include: a memory and one or more processors; the memory and the processor are coupled. The memory is used to store computer program codes, and the computer-level codes include computer instructions. When the processor executes the computer instructions, the first electronic device is made to execute the method in the first aspect and any possible implementation manners thereof.
第四方面,本申请还提供一种芯片系统,该芯片系统应用于电子设备;芯片系统可以包括一个或多个接口电路和一个或多个处理器。接口电路和处理器通过线路互联,接口电路用于从电子设备的存储器接收信号,并向处理器发送该信号,该信号包括存储器中存储的计算机指令。当处理器执行上述的计算机指令时,电子设备执行第一方面及其任一种可能的实现方式中的方法。In a fourth aspect, the present application further provides a chip system, which is applied to an electronic device; the chip system may include one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by wires, and the interface circuit is used to receive signals from the memory of the electronic device and send the signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the above-mentioned computer instructions, the electronic device executes the method in the first aspect and any possible implementations thereof.
第五方面,本申请还提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行第一方面及其任一种可能的实现方式中的方法。In a fifth aspect, the present application further provides a computer-readable storage medium, including computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to execute the method in the first aspect and any possible implementation manners thereof.
第六方面,本申请还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述第一方面及其任一种可能的实现方式中的方法。In a sixth aspect, the present application further provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method in the first aspect and any possible implementations thereof.
可以理解的是,上述本申请提供的第二方面的分配声道的装置,第三方面提供的电子设备,第四方面提供的芯片系统,第五方面提供的计算机可读存储介质,第六方 面的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。It can be understood that the above-mentioned apparatus for allocating channels provided in the second aspect, the electronic device provided in the third aspect, the chip system provided in the fourth aspect, the computer-readable storage medium provided in the fifth aspect, and the sixth aspect For the beneficial effects that can be achieved by the computer program product, reference may be made to the beneficial effects in the first aspect and any possible design methods thereof, which will not be repeated here.
附图说明Description of drawings
图1A为本申请实施例提供的一种立体声音箱组的场景示意图;1A is a schematic diagram of a scene of a stereo speaker group provided by an embodiment of the application;
图1B为本申请实施例提供的一种声源定位方式的场景示意图;FIG. 1B is a schematic scene diagram of a sound source localization method provided by an embodiment of the present application;
图2为本申请实施例提供的一种分配声道的方法的应用场景的示意图;2 is a schematic diagram of an application scenario of a method for channel allocation provided by an embodiment of the present application;
图3为本申请实施例提供的一种智能音箱的硬件结构示意图;3 is a schematic diagram of the hardware structure of a smart speaker provided by an embodiment of the present application;
图4为本申请实施例提供的一种智能音箱的结构示意图;4 is a schematic structural diagram of a smart speaker provided by an embodiment of the present application;
图5A为本申请实施例提供的另一声源定位场景的示意图;5A is a schematic diagram of another sound source localization scenario provided by an embodiment of the present application;
图5B为本申请实施例提供的另一声源定位场景的示意图;5B is a schematic diagram of another sound source localization scenario provided by an embodiment of the present application;
图6A为本申请实施例提供的一种分配声道的方法的流程图;6A is a flowchart of a method for allocating channels provided by an embodiment of the present application;
图6B为本申请实施例提供的建立立体声音箱组的方法的流程图;6B is a flowchart of a method for establishing a stereo speaker group provided by an embodiment of the application;
图7为本申请实施例提供的一种分配声道的装置的结构示意图;FIG. 7 is a schematic structural diagram of an apparatus for channel allocation provided by an embodiment of the present application;
图8为本申请实施例提供的一种智能音箱的结构示意图;8 is a schematic structural diagram of a smart speaker provided by an embodiment of the application;
图9为本申请实施例提供的一种芯片系统的结构示意图。FIG. 9 is a schematic structural diagram of a chip system according to an embodiment of the present application.
具体实施方式detailed description
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
本申请实施例提供一种分配声道的方法,该方法可以应用于已经建立立体声音箱组。其中,立体声音箱组中包括至少两个音箱。通过设置立体声音箱组中每个音箱的声道,使得立体声音箱组在播放音频文件时形成环绕音场。采用本申请实施例中的分配声道的方法,使得立体声音箱组可以根据语音信息的指示,为立体声音箱组中的每个音箱分配声道。降低了立体声音箱组分配声道的难度,使得立体声音箱组易于形成立体声音效。The embodiment of the present application provides a method for allocating channels, and the method can be applied to an already established stereo speaker group. The stereo speaker group includes at least two speakers. By setting the channel of each speaker in the stereo speaker group, the stereo speaker group forms a surround sound field when playing audio files. By using the method for allocating channels in the embodiments of the present application, the stereo speaker group can assign channels to each speaker in the stereo speaker group according to the instruction of the voice information. It reduces the difficulty of distributing channels for the stereo speaker group, making it easy to form a stereo sound effect for the stereo speaker group.
可以理解的,至少两个音箱形成立体声音箱组,立体声音箱组包括一个主音箱和多个从音箱(除主音箱之外的音箱)。主音箱可以和用户交互,从音箱在主音箱的控制下发出声音,使得立体声音箱组可以“像”一个音箱一样工作。It can be understood that at least two speakers form a stereo speaker group, and the stereo speaker group includes a master speaker and a plurality of slave speakers (speakers other than the master speaker). The main speaker can interact with the user, and the sound from the speaker is under the control of the main speaker, so that the stereo speaker group can work "like" a speaker.
一般而言,将多个音箱形成立体声音箱之后,可以通过对主音箱和从音箱的特定摆放角度设置主音箱和从音箱的声道。以两个音箱组成立体声音箱组为例,请参考图1A,为两个音箱组成的立体声音箱组。如图1A所示,第一音箱10为主音箱,第二音箱11为从音箱。主音箱的扬声器正对用户所在的方向,从音箱的扬声器也是正对用户所在的方向。基于用户所在的位置,可以设置从音箱为左声道,主音箱为右声道。这样,当立体声音箱组播放音频文件时,从音箱播放左声道的音频,主音箱播放右声道的音频,使得立体声音箱组形成环绕音场。Generally speaking, after a plurality of speakers are formed into stereo speakers, the channels of the main speakers and the slave speakers can be set by the specific placement angles of the main speakers and the slave speakers. Taking a stereo speaker group composed of two speakers as an example, please refer to FIG. 1A , which is a stereo speaker group composed of two speakers. As shown in FIG. 1A , the first speaker 10 is the master speaker, and the second speaker 11 is the slave speaker. The speaker of the main speaker is facing the direction of the user, and the speaker of the slave speaker is also facing the direction of the user. Based on the user's location, the slave speaker can be set as the left channel and the master speaker as the right channel. In this way, when the stereo speaker group plays an audio file, the audio of the left channel is played from the speaker, and the audio of the right channel is played from the main speaker, so that the stereo speaker group forms a surround sound field.
可以理解的,在如图1A所示的场景中,如果主音箱和从音箱的扬声器的朝向不同,则设置的从音箱和主音箱的声道可能是不准确的。假设主音箱的扬声器的朝向与用户所在方向相反,从音箱的扬声器的朝向是正对用户所在的方向。因此,设置主音 箱为左声道,从音箱为右声道,当立体声音箱组播放音频文件时,对于用户而言,左右声道是相反的。It can be understood that, in the scenario shown in FIG. 1A , if the orientations of the speakers of the master speaker and the slave speaker are different, the channels of the slave speaker and the master speaker may be inaccurate. It is assumed that the orientation of the speakers of the main speaker is opposite to the direction of the user, and the orientation of the speakers of the slave speakers is the direction facing the user. Therefore, set the master speaker as the left channel and the slave speaker as the right channel, when the stereo speaker group plays audio files, for the user, the left and right channels are reversed.
将多个音箱组成立体声音箱组,为每个音箱分配正确的声道,则可以在播放音频文件时为用户提供良好的环绕立体声音效。Combining multiple speakers into a stereo speaker group and assigning the correct channel to each speaker can provide users with good surround sound when playing audio files.
示例性的,采用本申请实施例提供的声源定位,使得主音箱可以通过声源定位方法确定出用户所在方向、从音箱所在方向,以便为从音箱和主音箱分配声道。请参考图1B,为采用声源定位场景示意图。如图1B所示,一个主音箱20、两个从音箱(如图1B中,第一从音箱21和第二从音箱22),形成立体声音箱组。主音箱基于声源定位确定用户所在的方向,并通过声源定位确定出第一从音箱21所在方向、第二从音箱22所在方向。主音箱设置第一从音箱21为左声道,设置第二从音箱22为右声道,主音箱设置为立体声。这样一来,立体声音箱组中的主音箱可以分配出正确的声道,并且,如图1B所示的立体声音箱组播放音频文件,可以形成立体声环绕音场。Exemplarily, using the sound source localization provided by the embodiments of the present application, the master speaker can determine the direction of the user and the slave speaker through the sound source localization method, so as to assign channels to the slave speaker and the master speaker. Please refer to FIG. 1B , which is a schematic diagram of a scene using sound source localization. As shown in FIG. 1B , one master speaker 20 and two slave speakers (in FIG. 1B , the first slave speaker 21 and the second slave speaker 22 ) form a stereo speaker group. The master speaker determines the direction of the user based on sound source localization, and determines the direction of the first slave speaker 21 and the second slave speaker 22 through sound source localization. For the master speaker, the first slave speaker 21 is set as the left channel, the second slave speaker 22 is set as the right channel, and the master speaker is set as stereo. In this way, the main speakers in the stereo speaker group can be assigned the correct channel, and, as shown in FIG. 1B , the stereo speaker group plays audio files to form a stereo surround sound field.
以下将对本申请实施例提供的方法的应用场景进行说明。Application scenarios of the methods provided by the embodiments of the present application will be described below.
请参考图2,为本申请实施例提供的分配声道的方法的应用场景示意图。如图2所示,包括电子设备100,以及多个智能音箱(如,第一音箱101和第二音箱102)。其中,电子设备100、第一音箱101和第二音箱102均连接至同一局域网,电子设备100可以将第一音箱101和第二音箱300组合为立体声音箱组。其中,电子设备100将第一音箱102和第二音箱102组合为立体声音箱组,可以设置第一音箱101为主音箱,则第二音箱102为从音箱。采用本申请实施例提供的方法,可以通过主音箱为立体声音箱组中的每个音箱设置声道。这样,当立体声音箱组在播放音频文件时,形成环绕声场,使得用户听到立体声音箱组播放的声音有身临其境的感觉。Please refer to FIG. 2 , which is a schematic diagram of an application scenario of the method for allocating channels provided by an embodiment of the present application. As shown in FIG. 2 , it includes an electronic device 100 and a plurality of smart speakers (eg, a first speaker 101 and a second speaker 102 ). The electronic device 100 , the first sound box 101 and the second sound box 102 are all connected to the same local area network, and the electronic device 100 can combine the first sound box 101 and the second sound box 300 into a stereo sound box group. The electronic device 100 combines the first sound box 102 and the second sound box 102 into a stereo sound box group, the first sound box 101 can be set as the master sound box, and the second sound box 102 is the slave sound box. Using the method provided by the embodiment of the present application, a channel can be set for each speaker in the stereo speaker group through the main speaker. In this way, when the stereo speaker group is playing an audio file, a surround sound field is formed, so that the user has an immersive feeling when listening to the sound played by the stereo speaker group.
示例性的,当第一音箱101和第二音箱102形成立体声音箱组,主音箱可以接收用户发出的“组件立体声”的语音(或称为第一语音),根据语音确定用户所在的方向。主音箱确定出从音箱所在的方向,根据用户所在的方向以及从音箱所在的方向,为主音箱和从音箱分配声道。例如,主音箱根据用户所在方向,识别到从音箱在用户的左侧,则主音箱设置从音箱为左声道,主音箱为右声道。又例如,主音箱根据用户所在方向,识别到从音箱在用户的右侧,则主音箱设置从音箱为右声道主音箱为左声道。Exemplarily, when the first speaker 101 and the second speaker 102 form a stereo speaker group, the main speaker can receive the user's "component stereo" voice (or the first voice), and determine the direction of the user according to the voice. The main speaker determines the direction of the slave speaker, and according to the direction of the user and the direction of the slave speaker, the channel is allocated to the master speaker and the slave speaker. For example, according to the direction of the user, the master speaker recognizes that the slave speaker is on the left side of the user, then the master speaker sets the slave speaker as the left channel and the master speaker as the right channel. For another example, the master speaker recognizes that the slave speaker is on the right side of the user according to the direction of the user, and the master speaker sets the slave speaker as the right channel and the master speaker as the left channel.
本申请实施例提供的方法简化了立体声音箱组分配声道的方式,主音箱根据接收到用户的语音,可以根据语音确定出用户所在的方向,并根据从音箱所在的方向进行声道分配。降低了立体声音箱组分配声道的操作难度,使得立体声音箱组易于分配声道,从而在播放音频文件时形成立体声音效。The method provided by the embodiment of the present application simplifies the way of assigning channels to the stereo speaker group. The main speaker can determine the direction of the user according to the voice according to the received user's voice, and allocate the channels according to the direction of the slave speakers. The operation difficulty of assigning channels in a stereo speaker group is reduced, making it easy to assign channels in a stereo speaker group, thereby forming stereo sound effects when playing audio files.
以下将结合附图,对本申请实施例中的技术方案进行说明。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
请参考图3,为本申请实施例提供的一种智能音箱200的结构示意图。如图3所示,智能音箱200可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,声源定位模块250,无线通信模块260,音频模块270,传感器模块280,按键290等。其中传感器模块280可以包括重力传感器280A、方向传感器280B和加速度传感器280C等。Please refer to FIG. 3 , which is a schematic structural diagram of a smart speaker 200 according to an embodiment of the present application. As shown in FIG. 3 , the smart speaker 200 may include a processor 210 , an external memory interface 220 , an internal memory 221 , a universal serial bus (USB) interface 230 , a charging management module 240 , a power management module 241 , and a battery 242 , Antenna 1, sound source localization module 250, wireless communication module 260, audio module 270, sensor module 280, button 290 and so on. The sensor module 280 may include a gravity sensor 280A, an orientation sensor 280B, an acceleration sensor 280C, and the like.
可以理解的是,本发明实施例示意的结构并不构成对智能音箱200的具体限定。在本申请另一些实施例中,智能音箱200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the smart speaker 200 . In other embodiments of the present application, the smart speaker 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括调制解调处理器,图形处理器(graphics processing unit,GPU),音频处理器(或称为,数字处理器)控制器,存储器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 210 may include one or more processing units, for example, the processor 210 may include a modem processor, a graphics processing unit (GPU), an audio processor (or referred to as a digital processor) controller , memory, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是智能音箱200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the smart speaker 200 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in processor 210 is cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 210 . If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 210 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对智能音箱200的结构限定。在本申请另一些实施例中,智能音箱200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that, the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the smart speaker 200 . In other embodiments of the present application, the smart speaker 200 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展智能音箱200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the smart speaker 200 . The external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行智能音箱200的各种功能应用以及数据处理。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储智能音箱200使用过程中所创建的数据(比如音频数据等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 221 may be used to store computer executable program code, which includes instructions. The processor 210 executes various functional applications and data processing of the smart speaker 200 by executing the instructions stored in the internal memory 221 . The internal memory 221 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area can store data (such as audio data, etc.) created during the use of the smart speaker 200 and the like. In addition, the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器 210,内部存储器221,外部存储器和无线通信模块260等供电。The charging management module 240 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. The power management module 241 is used to connect the battery 242 , the charging management module 240 and the processor 210 . The power management module 241 receives input from the battery 242 and/or the charge management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the wireless communication module 260, and the like.
声源定位模块250包括声波发生器251和声波接收器252。声源定位器250可以和处理器210数据传输。其中,声波发生器251可以发出预设频段的声波信号,声波接收器252可以接收声波信号。在一些实施例中,声源定位模块250可以根据接收到的声波信号确定声源所在的方向。例如,声源定位模块250根据接收到的用户的语音,确定出用户所在的方向。又例如,声源定位模块250根据接收到的其他智能音箱发出的声波信号(如,从音箱),以确定该智能音箱所在的方向。The sound source localization module 250 includes a sound wave generator 251 and a sound wave receiver 252 . The sound source locator 250 may communicate data with the processor 210 . The acoustic wave generator 251 can send out acoustic wave signals of a preset frequency band, and the acoustic wave receiver 252 can receive the acoustic wave signals. In some embodiments, the sound source localization module 250 may determine the direction of the sound source according to the received sound wave signal. For example, the sound source localization module 250 determines the direction in which the user is located according to the received voice of the user. For another example, the sound source localization module 250 determines the direction in which the smart speaker is located according to the received sound wave signals (eg, from the speaker) sent by other smart speakers.
无线通信模块260可以提供应用在智能音箱200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM)等无线通信的解决方案。其中,无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线1接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线1转为电磁波辐射出去。The wireless communication module 260 can provide applications on the smart speaker 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Solutions for wireless communication such as global navigation satellite system (GNSS), frequency modulation (FM). The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 1 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 . The wireless communication module 260 can also receive the signal to be sent from the processor 210 , perform frequency modulation on it, amplify it, and then convert it into electromagnetic waves for radiation through the antenna 1 .
智能音箱200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,以及应用处理器等实现音频功能。例如音乐播放,获取语音信息,录音等。The smart speaker 200 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, and an application processor. For example, music playback, acquisition of voice information, recording, etc.
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器110中。扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。The audio module 270 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be provided in the processor 210 , or some functional modules of the audio module 270 may be provided in the processor 110 . Speaker 270A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. The microphone 270C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
可以理解的,智能音箱200可以设置多个扬声器270A,以及多个麦克风270C。在一些实施例中,智能音箱200设置六个方位上设置扬声器270A,且每个扬声器270A可以对应一个麦克风270C。It can be understood that the smart speaker 200 may be provided with multiple speakers 270A and multiple microphones 270C. In some embodiments, the smart speaker 200 is provided with speakers 270A in six directions, and each speaker 270A may correspond to a microphone 270C.
重力传感器280A可以用于检测智能音箱200重力方向的改变,以判断智能音箱200是否发生位移。示例性的,重力传感器280A可以计算出智能音箱200相对于水平面的倾斜角度,从而确定智能音箱的重力方向发生改变,以判断智能音箱的位置是否发生移动。The gravity sensor 280A can be used to detect the change of the gravity direction of the smart speaker 200 to determine whether the smart speaker 200 is displaced. Exemplarily, the gravity sensor 280A can calculate the inclination angle of the smart speaker 200 relative to the horizontal plane, so as to determine that the direction of gravity of the smart speaker changes, so as to determine whether the position of the smart speaker has moved.
方向传感器280B可以用于感应智能音箱200在某个方向上惯性力大小和衡量智能音箱200在该方向上的加速度与重力。在一些实施例中,可以通过方向传感器280B确定出智能音箱移动的方向。The direction sensor 280B can be used to sense the inertial force of the smart speaker 200 in a certain direction and measure the acceleration and gravity of the smart speaker 200 in this direction. In some embodiments, the direction in which the smart speaker moves can be determined by the direction sensor 280B.
加速度传感器280C可检测智能音箱200在各个方向上(一般为三轴)加速度的大小。当智能音箱200静止时可检测出重力的大小及方向。还可以用于识别智能音箱的姿态,以确定智能音箱的移动的距离。The acceleration sensor 280C can detect the acceleration of the smart speaker 200 in various directions (generally three axes). When the smart speaker 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of the smart speaker to determine the moving distance of the smart speaker.
另外,智能音箱200中还可以包括显示屏,显示屏可以用于显示图像或视频。其中,上述智能音箱200的硬件结构仅为示意,本申请实施例对于智能音箱的硬件结构不做具体限定。In addition, the smart speaker 200 may further include a display screen, and the display screen may be used to display images or videos. The above-mentioned hardware structure of the smart speaker 200 is only for illustration, and the embodiment of the present application does not specifically limit the hardware structure of the smart speaker.
以下实施例中的方法均可以在具备上述硬件结构的电子设备中实现。The methods in the following embodiments can all be implemented in an electronic device having the above-mentioned hardware structure.
请参考图4,为本申请实施例提供的一种分配声道的方法的场景示意图。如图4所示的场景中包括:路由器300、第一音箱301、第二音箱302和第三音箱303。路由器300作为网关设备可以为第一音箱301、第二音箱302和第三音箱303提供网络接入点,使得第一音箱301、第二音箱302和第三音箱303可以通过网络接入点接入无线局域网中,则第一音箱301、第二音箱302和第三音箱303可以正常使用。其中,在局域网可通信范围中包括第一音箱301、第二音箱302和第三音箱303,第一音箱301、第二音箱302和第三音箱303中的至少两个音箱可以组成立体声音箱组。Please refer to FIG. 4 , which is a schematic diagram of a scenario of a method for allocating channels provided by an embodiment of the present application. The scene shown in FIG. 4 includes: a router 300 , a first sound box 301 , a second sound box 302 and a third sound box 303 . As a gateway device, the router 300 can provide a network access point for the first speaker 301, the second speaker 302 and the third speaker 303, so that the first speaker 301, the second speaker 302 and the third speaker 303 can be accessed through the network access point In the wireless local area network, the first sound box 301, the second sound box 302 and the third sound box 303 can be used normally. The communicable range of the local area network includes the first speaker 301, the second speaker 302 and the third speaker 303, and at least two of the first speaker 301, the second speaker 302 and the third speaker 303 can form a stereo speaker group.
示例性的,以第一音箱301、第二音箱302和第三音箱303形成立体声音箱组为例。其中,第一音箱301作为主音箱,第二音箱302和第三音箱303作为从音箱。当三个音箱组成立体声音箱组之后,主音箱作为无线接入点(Access Point,AP),从音箱均连接至AP,以便从音箱将在主音箱的控制下工作。Illustratively, take the first sound box 301 , the second sound box 302 and the third sound box 303 forming a stereo sound box group as an example. Among them, the first speaker 301 is used as a master speaker, and the second speaker 302 and the third speaker 303 are used as slave speakers. When the three speakers form a stereo speaker group, the master speaker acts as a wireless access point (AP), and the slave speakers are all connected to the AP, so that the slave speakers will work under the control of the master speaker.
具体地说,主音箱可以通过声源定位确定出从音箱的位置,并根据获取的用户的语音确定出用户所在的方向。主音箱可以依据用户所在的方向以及从音箱所在的方向,为主音箱和从音箱分配声道。使得立体声音箱组在播放音频文件时,形成环绕音场。Specifically, the master speaker can determine the position of the slave speaker through sound source localization, and determine the direction of the user according to the acquired user's voice. The main speakers can assign channels to the main speakers and the slave speakers according to the direction of the user and the direction of the slave speakers. Makes the stereo speaker group form a surround sound field when playing audio files.
可以理解的,第一音箱301、第二音箱302和第三音箱303形成立体声音箱组时,主音箱可以是随机选定的。因此,每个音箱都可以实现声源定位功能。It can be understood that when the first sound box 301, the second sound box 302 and the third sound box 303 form a stereo sound box group, the main sound box may be randomly selected. Therefore, each speaker can realize the function of sound source localization.
以下将对本申请实施例中的声源定位功能详细说明。The sound source localization function in the embodiments of the present application will be described in detail below.
请参考图5A,为本申请实施例提供的声源定位场景的示意图。如图5A所示,第一智能音箱51和第二智能音箱52形成立体声音箱组,其中,第一智能音箱51和第二智能音箱52的硬件结构相同。如图5A所示,第一智能音箱51和第二智能音箱52均包括6个扬声器和与扬声器对应设置的麦克风。每个扬声器都可以发出声波,每个麦克风都可以接收声波。Please refer to FIG. 5A , which is a schematic diagram of a sound source localization scene provided by an embodiment of the present application. As shown in FIG. 5A , the first smart speaker 51 and the second smart speaker 52 form a stereo speaker group, wherein the first smart speaker 51 and the second smart speaker 52 have the same hardware structure. As shown in FIG. 5A , both the first smart speaker 51 and the second smart speaker 52 include six speakers and microphones corresponding to the speakers. Each speaker can emit sound waves, and each microphone can receive sound waves.
第一智能音箱上任一个扬声器发出声波,则第二智能音箱上的麦克风可以接收到该声波。例如,第一智能音箱51为主音箱,第一智能音箱51的麦克风广播第一声波信息,第一声波信息指示智能音箱广播第二声波信息。第二智能音箱52接收到第一声波信息,则广播第二声波信息。这样一来,第一智能音箱51可以根据接收到第二声波的麦克风确定第二智能音箱52所在的方向。If any speaker on the first smart speaker emits sound waves, the microphone on the second smart speaker can receive the sound waves. For example, the first smart speaker 51 is the main speaker, the microphone of the first smart speaker 51 broadcasts the first sound wave information, and the first sound wave information instructs the smart speaker to broadcast the second sound wave information. The second smart speaker 52 broadcasts the second sound wave information after receiving the first sound wave information. In this way, the first smart speaker 51 can determine the direction in which the second smart speaker 52 is located according to the microphone that receives the second sound wave.
示例性的,如图5B所示,第一智能音箱51和第二智能音箱52形成立体声音箱组,用户位于S1所在的位置。其中,第一智能音箱51是主音箱,第二智能音箱52是从音箱。用户发出语音信息(即第一语音),第一语音用于指示主音箱为立体声音箱组中的每个音箱设置声道。主音箱接收到用户发出的第一语音,则可以根据第一语音确定用户所在的方向。主音箱可以发出第一声波,第一声波用于指示从音箱发出第二声波。从音箱接收到第一声波,则发出第二声波,这样,主音箱可以根据接收到的第二声波确定从音箱所在的方向。由此,主音箱就根据用户所在的方向,从音箱所在的方向,为主音箱分配左声道,从音箱分配右声道。Exemplarily, as shown in FIG. 5B , the first smart speaker 51 and the second smart speaker 52 form a stereo speaker group, and the user is located at the position where S1 is located. The first smart speaker 51 is a master speaker, and the second smart speaker 52 is a slave speaker. The user sends out voice information (ie, the first voice), and the first voice is used to instruct the main speaker to set a channel for each speaker in the stereo speaker group. When the main speaker receives the first voice from the user, the direction of the user can be determined according to the first voice. The main speaker may emit a first sound wave, and the first sound wave is used to instruct the second sound wave to be emitted from the speaker. When the first sound wave is received from the speaker, the second sound wave is sent out, so that the main speaker can determine the direction of the slave speaker according to the second sound wave received. As a result, the main speaker is assigned the left channel to the main speaker and the right channel to the slave speaker from the direction of the speaker according to the direction of the user.
可以理解的,用户在发出第一语音之后,主音箱可以根据第一语音对立体声音箱组中每个音箱的声道进行设置,使得立体声音箱组在播放音频文件时产生立体声音效。It is understandable that after the user sends out the first voice, the main speaker can set the channel of each speaker in the stereo speaker group according to the first voice, so that the stereo speaker group generates stereo sound effects when playing the audio file.
以下将详细说明本申请实施例提供的分配声道的方法。The method for allocating channels provided by the embodiments of the present application will be described in detail below.
需要说明的,本申请实施例将以第一音箱301、第二音箱302和第三音箱303形成立体声音箱组为例,对本申请实施例提供的分配声道的方法进行说明。其中,第一音箱301、第二音箱302和第三音箱303形成立体声音箱组,还未组建立体声的情况下,可以采用本申请实施例提供的方法为每个音箱分配声道,使得立体声音箱组形成立体声。It should be noted that the embodiment of the present application will take the example of a stereo speaker group formed by the first sound box 301 , the second sound box 302 and the third sound box 303 as an example to describe the method for allocating channels provided by the embodiment of the present application. The first sound box 301, the second sound box 302 and the third sound box 303 form a stereo sound box group, and in the case where a stereo sound box has not yet been formed, the method provided by the embodiment of the present application can be used to allocate channels to each sound box, so that the stereo sound box group form stereo.
请参考图6A,为本申请实施例提供的分配声道的方法的流程图。需要说明的,图6A所示的流程图是以第一音箱301和第二音箱302形成立体声音箱组,第一音箱301为主音箱,第二音箱302为从音箱为例,说明组合立体声音箱组中的分配声道的方法。Please refer to FIG. 6A , which is a flowchart of a method for allocating channels provided by an embodiment of the present application. It should be noted that the flowchart shown in FIG. 6A takes the first speaker 301 and the second speaker 302 to form a stereo speaker group, the first speaker 301 is the master speaker, and the second speaker 302 is the slave speaker as an example to illustrate the combined stereo speaker group. The method of assigning channels in .
其中,如图6A所示,该方法可以包括步骤601-步骤606。Wherein, as shown in FIG. 6A , the method may include steps 601 to 606 .
步骤601:主音箱和从音箱组成立体声音箱组。Step 601: The master speaker and the slave speakers form a stereo speaker group.
示例性的,在一个局域网的可通信范围中包括主音箱和从音箱,用户可以通过电子设备(如,手机)建立立体声音箱组。例如,手机可以访问局域网并查询连接至局域网的设备,以确定主音箱和从音箱均连接至该局域网。用户可以通过手机建立立体声音箱组,手机可以向主音箱和从音箱发送组件立体声音箱组的信息,进一步通过对主音箱和从音箱的选择操作,将主音箱和从音箱组建立体声音箱组。Exemplarily, a master speaker and a slave speaker are included in the communicable range of a local area network, and a user can establish a stereo speaker group through an electronic device (eg, a mobile phone). For example, a mobile phone can access a local area network and query the devices connected to the local area network to determine that both the master and slave speakers are connected to the local area network. The user can establish a stereo speaker group through the mobile phone, and the mobile phone can send the information of the component stereo speaker group to the main speaker and the slave speaker, and further through the selection operation of the main speaker and the slave speaker, the main speaker and the slave speaker form a stereo speaker group.
又例如,通过手机将主音箱连接至局域网,并将从音箱也连接至局域网。通过对主音箱和从音箱的选择操作(如,对主音箱和从音箱上按键的点击操作)确定组建立体声音箱组,确定首先发起立体声音箱组创建的为主音箱,接收立体声音箱组创建的为从音箱。这样,主音箱和从音箱形成立体声音箱组。For another example, the main speaker is connected to the local area network through the mobile phone, and the secondary speaker is also connected to the local area network. Determine the formation of a stereo speaker group by selecting the master speaker and the slave speaker (for example, click the button on the master speaker and the slave speaker), and determine the master speaker to be created first by initiating the stereo speaker group, and the receiver created by the stereo speaker group as from the speakers. In this way, the master speaker and the slave speakers form a stereo speaker group.
又示例性的,主音箱和从音箱可以在接收到语音信息之后,组建立体声音箱组。其组建的方法如图6B所示,该方法可以包括步骤61a-步骤67a。In another example, the master speaker and the slave speaker may form a stereo speaker group after receiving the voice information. A method of its formation is shown in FIG. 6B , and the method may include steps 61a to 67a.
步骤61a:用户发出语音信息,语音信息用于指示组建立体声音箱组。Step 61a: The user sends voice information, and the voice information is used to instruct the formation of a stereo speaker group.
可以理解的,智能音箱一般处于休眠状态,可以随时监听用户发出的语音信息,如果该语音信息不是唤醒自己(智能音箱)工作的唤醒语音,智能音箱不会响应该语音信息,也不会记录该语音信息。It is understandable that smart speakers are generally in a dormant state and can monitor the voice information sent by the user at any time. If the voice information is not a wake-up voice to wake up itself (smart speaker) to work, the smart speaker will not respond to the voice information, nor will it record the voice information. voice message.
示例性的,语音信息可以包括唤醒词,如,该语音信息为“小艺小艺,组建立体声音箱组”。该语音信息指示主音箱和从音箱组建立体声音箱组。Exemplarily, the voice information may include a wake-up word, for example, the voice information is "Xiaoyi Xiaoyi, set up a stereo speaker group". This voice message instructs the master speaker and slave speakers to form a stereo speaker group.
又示例性的,语音信息可以不包括唤醒词,如,该语音信息可以为“组建立体声音箱组”。In another example, the voice information may not include a wake-up word, for example, the voice information may be "build a stereo speaker group".
步骤62a:主音箱接收到语音信息。Step 62a: The main speaker receives the voice information.
其中,主音箱只要是处于可以接收到语音信息的范围中,则主音箱就可以接收到语音信息,并根据用户发出语音信息的位置。Wherein, as long as the main speaker is in the range where the voice information can be received, the main speaker can receive the voice information and send the voice information according to the position of the user.
步骤63a:从音箱接收到语音信息。Step 63a: Receive voice information from the speaker.
同理,只要从音箱是处于语音信息的接收范围中,则从音箱可以接收到语音信息,并根据语音信息确定用户所在的方向。Similarly, as long as the slave speaker is in the receiving range of the voice information, the slave speaker can receive the voice information, and determine the direction of the user according to the voice information.
步骤64a:主音箱广播组建立体声的声波。Step 64a: The main speaker broadcasts the sound waves forming the stereo.
可以理解的,主音箱可以是接收到语音信息后,首先发出组建立体声的声波的音箱。或者,主音箱是预设的音箱(如,首先接入局域网的音箱)。It can be understood that the main speaker may be a speaker that first emits sound waves to form stereo sound after receiving the voice information. Alternatively, the main speakers are preset speakers (eg, the speakers that are connected to the local area network first).
其中,主音箱广播的建立体声的声波可以是用户能听见的声音,也可以是用户听 不见的声音。The stereo sound waves broadcast by the main speaker may be the sound that the user can hear or the sound that the user cannot hear.
步骤65a:从音箱接收到组建立体声的声波,广播接入立体声组的声波。Step 65a: Receive the sound waves forming the stereo group from the speakers, and broadcast the sound waves connected to the stereo group.
示例性的,从音箱可以接收到用户发出的语音信息,且从音箱接收到主音箱广播的组件立体声的声波,则从音箱响应于组建立体声的声波广播接入立体声组的声波。使得主音箱可以接收到从音箱的接入请求,从而将从音箱加入立体声音箱组。Exemplarily, the voice information sent by the user may be received from the speaker, and the sound waves of the component stereo broadcasted by the main speaker may be received from the speaker, and the slave speaker will access the sound waves of the stereo group in response to the sound waves of the stereo group. This enables the master speaker to receive the access request from the slave speaker, so that the slave speaker can be added to the stereo speaker group.
步骤66a:主音箱接收到接入立体声组的声波,确定从音箱所在的方向,并确定与从音箱形成立体声音箱组。Step 66a: The master speaker receives the sound waves connected to the stereo group, determines the direction where the slave speakers are located, and determines to form a stereo speaker group with the slave speakers.
可以理解的,主音箱接收从音箱广播的接入立体声组的声波,则确定从音箱所在的方向。这样一来,主音箱可以根据用户所在的方向,以及从音箱所在的方向为主音箱和从音箱分配声道。It can be understood that the main speaker receives the sound waves broadcast from the speaker and is connected to the stereo group, and determines the direction of the slave speaker. In this way, the master speakers can assign channels to the master speaker and the slave speakers according to the direction of the user, and the direction of the slave speakers.
步骤67a:主音箱发出立体声音箱组组建成功的语音提示。Step 67a: The main speaker sends out a voice prompt that the stereo speaker group is successfully formed.
示例性的,主音箱可以广播“立体声音箱组组建完成”的语音提示,使得用户了解到立体声音箱组创建完成。Exemplarily, the main speaker may broadcast a voice prompt of "the stereo speaker group is completed", so that the user knows that the creation of the stereo speaker group is completed.
需要说明的,主音箱和从音箱组建立体声音箱组,则主音箱可以作为AP设备,从音箱与主音箱建立连接,从音箱在主音箱的控制下工作。It should be noted that if the master speaker and the slave speakers form a stereo speaker group, the master speaker can be used as an AP device to establish a connection between the slave speaker and the master speaker, and the slave speakers work under the control of the master speaker.
步骤602:主音箱获取第一语音,确定发出第一语音的声源所在的方向,第一语音用于指示主音箱为立体声音箱组中每个音箱分配声道。Step 602 : the main speaker acquires the first voice, and determines the direction of the sound source that emits the first voice. The first voice is used to instruct the main speaker to assign a channel to each speaker in the stereo speaker group.
可以理解的,当主音箱和从音箱形成立体声音箱组,则主音箱可以控制从音箱的工作。例如,主音箱可以控制从音箱接收语音信息,并将接收到的语音信息传输至主音箱,由主音箱响应从音箱接收到的语音信息。或者,从音箱将接收到的语音信息传输至主音箱,主音箱可以确定语音信息对应的响应信息,并向从音箱传输响应信息,由从音箱对语音信息作出响应。Understandably, when the master speaker and the slave speakers form a stereo speaker group, the master speaker can control the work of the slave speakers. For example, the main speaker can control to receive voice information from the speaker, and transmit the received voice information to the main speaker, and the main speaker responds to the voice information received from the speaker. Alternatively, the slave speaker transmits the received voice information to the master speaker, and the master speaker can determine the response information corresponding to the voice information, and transmit the response information to the slave speaker, and the slave speaker responds to the voice information.
示例性的,第一语音可以是“组建立体声”,指示主音箱和从音箱形成立体声。或者,第一语音可以是“小艺小艺,组建立体声”。其中,这里的“小艺小艺”是智能音箱的唤醒词。Exemplarily, the first voice may be "build stereo", indicating that the master speaker and the slave speakers form a stereo. Alternatively, the first voice may be "Xiaoyi Xiaoyi, set up stereo". Among them, "Xiaoyi Xiaoyi" here is the wake-up word of smart speakers.
步骤603:主音箱广播第一声波信息,第一声波信息用于指示从音箱广播第二声波信息。Step 603: The master speaker broadcasts the first sound wave information, and the first sound wave information is used to instruct the slave speaker to broadcast the second sound wave information.
其中,主音箱和从音箱已经组建为一个立体声音响组,主音箱采用声源定位的方式确定从音箱所在的方向。Among them, the master speaker and the slave speakers have been formed into a stereo sound group, and the master speaker uses the sound source positioning method to determine the direction of the slave speakers.
可以理解的,如果立体声音箱组中包括多个从音箱,则主音箱广播第一声波,以便多个音箱接收到第一声波信息,并响应于第一声波信息广播第二声波信息。这样,主音箱就可以接收到多个第二声波信息,从而可以根据接收到的第二声波信息确定出多个从音箱所在的方向。It can be understood that if the stereo speaker group includes multiple slave speakers, the master speaker broadcasts the first sound wave, so that the multiple speakers receive the first sound wave information and broadcast the second sound wave information in response to the first sound wave information. In this way, the master speaker can receive multiple pieces of second sound wave information, so that the directions where the multiple slave speakers are located can be determined according to the received second sound wave information.
步骤604:从音箱接收到第一声波信息,响应于第一声波信息广播第二声波信息。Step 604: Receive the first sound wave information from the speaker, and broadcast the second sound wave information in response to the first sound wave information.
其中,从音箱接收到第一声波信息,可以识别到第一声波信息是主音箱发送的,且请求从音箱广播第二声波信息。因此,从音箱接收到第一声波信息之后,广播第二声波信息。当主音箱接收到第二声波信息,以便主音箱根据第二声波信息确定从音箱所在的方向。Wherein, when the first sound wave information is received from the speaker, it can be recognized that the first sound wave information is sent by the main speaker, and the second sound wave information is requested to be broadcast from the speaker. Therefore, after receiving the first sound wave information from the speaker, the second sound wave information is broadcast. When the main speaker receives the second sound wave information, the main speaker determines the direction of the slave speaker according to the second sound wave information.
步骤605:主音箱接收到第二声波信息,确定从音箱所在的方向。Step 605: The master speaker receives the second sound wave information, and determines the direction of the slave speaker.
需要说明的,步骤603-步骤605是基于声源定位的方式,使得主音箱对从音箱所在的方向进行确定。具体也可以参考上述声源方法的描述,上述声源定位的方式可以全部应用在此处,具体不再赘述。It should be noted that steps 603 to 605 are based on the method of sound source localization, so that the main speaker determines the direction where the slave speaker is located. For details, reference may also be made to the description of the above-mentioned sound source method. The above-mentioned sound source localization methods can all be applied here, and details are not repeated here.
在一些实现方式中,主音箱还可以根据第二声波信息定位与从音箱的距离值,以便准确确定从音箱与用户之间的位置关系。In some implementations, the master speaker may also locate the distance value from the slave speaker according to the second sound wave information, so as to accurately determine the positional relationship between the slave speaker and the user.
步骤606:主音箱根据声源所在的方向、从音箱所在的方向,设置主音箱为第一声道,从音箱为第二声道。Step 606: According to the direction of the sound source and the direction of the slave speaker, the master speaker sets the master speaker as the first channel and the slave speaker as the second channel.
示例性的,声源所在的方向就是用户所在的方向,如果主音箱位于用户左侧的区域,从音箱位于用户右侧的区域,则主音箱可以设置主音箱为左声道,从音箱为右声道。如果主音箱位于用户右侧的区域,从音箱位于用户左侧的区域,则主音箱可以设置主音箱为右声道,从音箱为左声道。Exemplarily, the direction of the sound source is the direction of the user. If the main speaker is located in the area on the left side of the user and the slave speaker is located in the area on the right side of the user, the main speaker can be set as the left channel of the main speaker and the right channel of the slave speaker. sound. If the main speaker is located in the area on the right side of the user and the slave speaker is located in the area on the left side of the user, the main speaker can be set as the right channel for the main speaker and the left channel for the slave speaker.
可以理解的,如果立体声音箱组中包括三个音箱、五个音箱或七个音箱,则主音箱可以根据多个音箱所在的方向设置多个从音箱的声道。使得立体声音箱组播放音频文件时为立体声,为用户提供良好的听觉体验。It can be understood that if the stereo speaker group includes three speakers, five speakers, or seven speakers, the master speaker can set multiple channels of the slave speakers according to the directions in which the multiple speakers are located. Makes the stereo speaker group play audio files in stereo, providing users with a good listening experience.
在第一种实现场景中,当主音箱和从音箱形成立体声音箱组,且主音箱设置了立体声音箱组中的每个音箱(即主音箱和从音箱)的声道的情况下。如果第三音箱加入该立体声音箱组,即主音箱连接第一从音箱和第二从音箱,主音箱需要根据第三音箱的位置更新立体声音箱组中每个音箱的声道。In the first implementation scenario, when the master speaker and the slave speakers form a stereo speaker group, and the master speaker sets the channel of each speaker (ie, the master speaker and the slave speaker) in the stereo speaker group. If the third speaker is added to the stereo speaker group, that is, the main speaker is connected to the first slave speaker and the second slave speaker, the master speaker needs to update the channel of each speaker in the stereo speaker group according to the position of the third speaker.
示例性的,主音箱可以向第三音箱发送第一声波信息,第一声波信息用于指示从音箱广播第二声波信息。第一从音箱和第二从音箱接收到第一声波信息,响应于第一声波信息广播第二声波信息,这样,主音箱和接收到第一从音箱和第二从音箱广播的第二声波信息,以确定第一从音箱和第二从音箱所在的方向。主音箱可以根据第一从音箱和第二从音箱所在的方向,为第一从音箱和第二从音箱设置声道参数。Exemplarily, the main sound box may send first sound wave information to the third sound box, where the first sound wave information is used to instruct the slave sound box to broadcast the second sound wave information. The first slave speaker and the second slave speaker receive the first sound wave information, and broadcast the second sound wave information in response to the first sound wave information. Sonic information to determine the direction of the first slave speaker and the second slave speaker. The master speaker can set channel parameters for the first slave speaker and the second slave speaker according to the directions of the first slave speaker and the second slave speaker.
在第二种实现场景中,当主音箱和从音箱形成立体声音箱组,且主音箱为立体声音箱组中的每个音箱设置声道,使得立体声音箱组形成立体声。如果立体声音箱组中有任一音箱的位置被改变,该音箱都可以发出指示信息,用于指示自身(即音箱)的位置发生改变。这样,主音箱就可以接收到从音箱发出的指示信息。In the second implementation scenario, when the master speaker and the slave speakers form a stereo speaker group, and the master speaker sets a channel for each speaker in the stereo speaker group, so that the stereo speaker group forms a stereo sound. If the position of any speaker in the stereo speaker group is changed, the speaker can send an indication message to indicate that the position of itself (ie, the speaker) has changed. In this way, the main speakers can receive the instructions from the speakers.
可以理解的,指示信息可以是从音箱广播的,也可以是主音箱发出的。也就是说,主音箱检测到自身的位置发生改变,也需要发出提示信息。It can be understood that the indication information can be broadcast from the speaker, or can be sent from the main speaker. That is to say, if the main speaker detects that its position has changed, it also needs to send out a prompt message.
示例性的,主音箱接收到指示信息之后,可以发出语音提示,该语音提示用于提示是否更换第一音箱和第二音箱的声道。用户可以听到主音箱广播的语音提示,如果用户回答“是”,则主音箱可以根据当前从音箱的位置设置主音箱和从音箱的声道。Exemplarily, after receiving the instruction information, the main speaker may issue a voice prompt, where the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker. The user can hear the voice prompt broadcast by the master speaker. If the user answers "Yes", the master speaker can set the channel of the master speaker and the slave speaker according to the current position of the slave speaker.
又示例性的,主音箱接收到指示信息之后,确定该音箱当前的位置,并根据从音箱的位置和主音箱的位置更新主音箱和从音箱的声道。In another example, after the master speaker receives the instruction information, the current position of the speaker is determined, and the channels of the master speaker and the slave speaker are updated according to the positions of the slave speaker and the master speaker.
在第三种实现场景中,当主音箱和从音箱成立立体声音箱组,且主音箱为立体声音箱组中的每个音箱设置立体声。如果用户想要解散立体声音箱组,使得每个音箱可以单独工作,则用户可以发出“解散立体声音箱组”的语音信息。主音箱接收到该语音信息,则可以将解散立体声音箱组,使得每个音箱单独工作。In the third implementation scenario, when the master speaker and the slave speakers form a stereo speaker group, and the master speaker sets stereo for each speaker in the stereo speaker group. If the user wants to disband the stereo speaker group so that each speaker can work independently, the user can send out a voice message of "disband the stereo speaker group". When the main speaker receives the voice information, the stereo speaker group can be disbanded, so that each speaker can work independently.
本身实施例还提供一种分配声道的装置,对应于上述实施例中的主音箱。如图7 所示,该主音箱包括:获取模块701、配置模块702、定位模块703、语音模块704和确定模块705。The embodiment itself also provides a device for distributing channels, which corresponds to the main speaker in the above-mentioned embodiment. As shown in FIG. 7 , the main speaker includes: an acquisition module 701 , a configuration module 702 , a positioning module 703 , a voice module 704 and a determination module 705 .
获取模块701可以用于获取第一语音,并确定发出第一语音的声源所在的方向,第一语音用于指示第一音箱为立体声音箱中的每个音箱分配声道。其中,立体声音箱组包括第一音箱和第二音箱。The acquiring module 701 may be configured to acquire the first voice, and determine the direction of the sound source emitting the first voice, where the first voice is used to instruct the first speaker to assign a channel to each speaker in the stereo speakers. The stereo speaker group includes a first speaker and a second speaker.
配置模块702可以用于根据发出第一声音的声源所在的方向,以及第二音箱所在的方向,配置第一音箱的声道为第一声道的参数,配置第二音箱的声道为第二声道的参数。The configuration module 702 can be configured to configure the channel of the first speaker as the parameter of the first channel and the channel of the second speaker as the parameter of the first channel according to the direction of the sound source that emits the first sound and the direction of the second speaker. parameters of the two channels.
定位模块703可以用于发送第一声波信息,第一声波信息用于指示第二音箱发送第二声波信息;以及接收第二声波信息,根据第二声波信息的方向,确定出第二音箱所在的方向。The positioning module 703 can be used to send the first sound wave information, and the first sound wave information is used to instruct the second sound box to send the second sound wave information; and receive the second sound wave information, and determine the second sound box according to the direction of the second sound wave information. the direction in which it is located.
语音模块704可以用于发出语音题述,语音提示用于提示是否更换第一音箱和第二音箱的声道。The voice module 704 can be used to issue a voice description, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
确定模块705可以用于确定第三音箱加入立体声音箱组,第一音箱用于确定第三音箱所在的方向。The determining module 705 may be used to determine that the third speaker is added to the stereo speaker group, and the first speaker is used to determine the direction in which the third speaker is located.
可以理解的是,上述电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。It can be understood that, in order to realize the above-mentioned functions, the above-mentioned electronic device includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the electronic device may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
在采用集成的单元的情况下,图8示出了上述实施例中所涉及的智能音箱的一种可能的结构示意图。该智能音箱200包括:处理单元801、声源定位单元802、分配声道单元803和存储单元804。In the case of using an integrated unit, FIG. 8 shows a possible schematic structural diagram of the smart speaker involved in the above embodiment. The smart speaker 200 includes: a processing unit 801 , a sound source localization unit 802 , a channel assignment unit 803 and a storage unit 804 .
其中,处理单元801,用于对智能音箱200的动作进行控制管理。例如,可以用于指示如图6A中的步骤601,和/或用于本文所描述的技术的其它过程。Among them, the processing unit 801 is used to control and manage the actions of the smart speaker 200 . For example, may be used to indicate step 601 as in FIG. 6A, and/or other processes for the techniques described herein.
声源定位单元802,用于对智能音箱200确定从音箱的过程进行控制。例如,可以用于指示如图6B中的步骤61a-步骤67a,和/或用于本文所描述的技术的其它过程。The sound source localization unit 802 is used to control the process of determining the slave speaker of the smart speaker 200 . For example, may be used to indicate steps 61a-67a as in Figure 6B, and/or other processes for the techniques described herein.
分配声道单元803,用于对智能音箱200分配声道的过程进行控制。例如,可以用于指示如图6A中的步骤607,和/或用于本文所描述的技术的其它过程。The channel assignment unit 803 is used to control the process of assigning channels to the smart speaker 200 . For example, may be used to indicate step 607 in FIG. 6A, and/or other processes for the techniques described herein.
存储单元804用于保存智能音箱200的程序代码和数据。例如,可以用于储存音频文件等。The storage unit 804 is used to store program codes and data of the smart speaker 200 . For example, it can be used to store audio files, etc.
当然,上述智能音箱200中的单元模块包括但不限于上述处理单元801、声源定位单元802、分配声道单元803和存储单元804。例如,智能音箱200中还可以包括音 频单元、通信单元等。音频单元用于采集用户发出的语音,以及播放语音。通信单元用于支持智能音箱200与其他装置的通信。Of course, the unit modules in the above-mentioned smart speaker 200 include but are not limited to the above-mentioned processing unit 801 , sound source localization unit 802 , channel assignment unit 803 , and storage unit 804 . For example, the smart speaker 200 may further include an audio unit, a communication unit, and the like. The audio unit is used to collect the voice made by the user and play the voice. The communication unit is used to support the communication between the smart speaker 200 and other devices.
本申请实施例还提供一种芯片系统,如图9所示,该芯片系统包括至少一个处理器901和至少一个接口电路902。处理器901和接口电路902可通过线路互联。例如,接口电路902可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路902可用于向其它装置(例如处理器901)发送信号。示例性的,接口电路902可读取存储器中存储的指令,并将该指令发送给处理器901。当所述指令被处理器901执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。An embodiment of the present application further provides a chip system. As shown in FIG. 9 , the chip system includes at least one processor 901 and at least one interface circuit 902 . The processor 901 and the interface circuit 902 may be interconnected by wires. For example, the interface circuit 902 may be used to receive signals from other devices, such as the memory of an electronic device. As another example, the interface circuit 902 may be used to send signals to other devices (eg, the processor 901). Exemplarily, the interface circuit 902 can read the instructions stored in the memory and send the instructions to the processor 901 . When the instructions are executed by the processor 901, the electronic device can be caused to perform the various steps in the above-mentioned embodiments. Certainly, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。Embodiments of the present application further provide a computer storage medium, where the computer storage medium includes computer instructions, when the computer instructions are executed on the above-mentioned electronic device, the electronic device is made to perform various functions or steps performed by the mobile phone in the above-mentioned method embodiments .
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, enables the computer to perform various functions or steps performed by the mobile phone in the above method embodiments.
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above contents are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (15)

  1. 一种分配声道的方法,其特征在于,包括:A method for allocating sound channels, comprising:
    第一音箱获取第一语音,并确定发出所述第一语音的声源所在的方向,所述第一语音用于指示所述第一音箱为立体声音箱组中的每个音箱分配声道,其中,所述立体声音箱组包括所述第一音箱和第二音箱;The first speaker acquires the first voice, and determines the direction in which the sound source of the first voice is located, and the first voice is used to instruct the first speaker to allocate a channel for each speaker in the stereo speaker group, wherein , the stereo sound box group includes the first sound box and the second sound box;
    所述第一音箱根据发出所述第一语音的声源所在的方向,以及所述第二音箱的方向,配置所述第一音箱的声道为第一声道的参数,配置所述第二音箱的声道为第二声道的参数。The first sound box configures the channel of the first sound box as the parameters of the first channel according to the direction of the sound source that emits the first voice and the direction of the second sound box, and configures the second sound box. The channel of the speaker is the parameter of the second channel.
  2. 根据权利要求1所述的方法,其特征在于,所述第一音箱根据发出所述第一语音的声源所在的方向,以及所述第二音箱所在的方向,配置所述第一音箱的声道为第一声道的参数,配置所述第二音箱的声道为第二声道的参数之前,所述方法还包括:The method according to claim 1, wherein the first sound box configures the sound of the first sound box according to the direction in which the sound source emitting the first voice is located and the direction in which the second sound box is located. The channel is the parameter of the first channel, and before configuring the channel of the second speaker as the parameter of the second channel, the method further includes:
    所述第一音箱发送第一声波信息,所述第一声波信息用于指示所述第二音箱发送第二声波信息;The first sound box sends first sound wave information, and the first sound wave information is used to instruct the second sound box to send second sound wave information;
    所述第一音箱接收到第二声波信息,根据所述第二声波信息的方向,确定出所述第二音箱所在的方向。The first sound box receives the second sound wave information, and according to the direction of the second sound wave information, the direction in which the second sound box is located is determined.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    所述第一音箱接收指示信息,所述指示信息用于指示所述第二音箱的位置改变;The first sound box receives indication information, and the indication information is used to indicate that the position of the second sound box is changed;
    所述第一音箱发出语音提示,所述语音提示用于提示是否更换所述第一音箱和所述第二音箱的声道。The first speaker sends out a voice prompt, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker.
  4. 根据权利要求3所述的方法,其特征在于,所述第一音箱发出语音提示,所述语音提示用于提示是否更换所述第一音箱和所述第二音箱的声道之后,所述方法还包括:The method according to claim 3, wherein the first speaker sends out a voice prompt, and the voice prompt is used to prompt whether to replace the channels of the first speaker and the second speaker, and then the method Also includes:
    所述第一音箱获取第二语音,所述第二语音用于指示所述第一音箱更换所述第一音箱和所述第二音箱的声道;The first sound box acquires a second voice, and the second voice is used to instruct the first sound box to replace the channels of the first sound box and the second sound box;
    所述第一音箱响应于所述第二语音,配置所述第一音箱的声道为所述第二声道的参数,配置所述第二音箱的声道为所述第一声道的参数。In response to the second voice, the first speaker configures the channel of the first speaker as the parameter of the second channel, and configures the channel of the second speaker as the parameter of the first channel .
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    所述第一音箱确定第三音箱加入所述立体声音箱组,所述第一音箱确定所述第三音箱所在的方向;The first sound box determines that a third sound box is added to the stereo sound box group, and the first sound box determines the direction in which the third sound box is located;
    所述第一音箱根据所述第二音箱所在的方向、以及第三音箱所在的方向,配置所述第三音箱的声道为第三声道的参数。The first sound box configures the channel of the third sound box as a parameter of the third channel according to the direction in which the second sound box is located and the direction in which the third sound box is located.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    所述第一音箱获取第三语音,所述第三语音用于指示所述第一音箱取消声道分配;The first speaker acquires a third voice, and the third voice is used to instruct the first speaker to cancel channel assignment;
    所述第一音箱响应于所述第三语音,解散所述立体声音箱组,使得所述立体声音箱组中的每个音箱单独工作。In response to the third voice, the first sound box disbands the stereo sound box group, so that each sound box in the stereo sound box group works independently.
  7. 一种分配声道的装置,其特征在于,包括:获取模块和配置模块,A device for distributing sound channels, comprising: an acquisition module and a configuration module,
    所述获取模块用于,获取第一语音,并确定发出所述第一语音的声源所在的方向,所述第一语音用于指示第一音箱为立体声音箱组中的每个音箱分配声道,其中,所述立体声音箱组包括所述第一音箱和第二音箱;The acquisition module is used to acquire the first voice, and determine the direction in which the sound source of the first voice is located, and the first voice is used to instruct the first speaker to allocate a channel for each speaker in the stereo speaker group. , wherein the stereo sound box group includes the first sound box and the second sound box;
    所述配置模块用于,根据发出所述第一语音的声源所在的方向,以及所述第二音箱的方向,配置所述第一音箱的声道为第一声道的参数,配置所述第二音箱的声道为第二声道的参数。The configuration module is configured to, according to the direction of the sound source emitting the first voice, and the direction of the second speaker, configure the channel of the first speaker as a parameter of the first channel, and configure the The channel of the second speaker is the parameter of the second channel.
  8. 根据权利要求7所述的装置,其特征在于,所述分配声道的装置还包括:定位模块,The device according to claim 7, wherein the device for distributing channels further comprises: a positioning module,
    所述定位模块用于,发送第一声波信息,所述第一声波信息用于指示所述第二音箱发送第二声波信息;以及接收到第二声波信息,根据所述第二声波信息的方向,确定出所述第二音箱所在的方向。The positioning module is used to send first sound wave information, and the first sound wave information is used to instruct the second sound box to send the second sound wave information; and after receiving the second sound wave information, according to the second sound wave information to determine the direction in which the second speaker is located.
  9. 根据权利要求7或8所述的装置,其特征在于,所述分配声道的装置还包括语音模块;The device according to claim 7 or 8, wherein the device for distributing channels further comprises a voice module;
    所述获取模块还用于,接收指示信息,所述指示信息用于指示所述第二音箱的位置改变;The acquisition module is further configured to receive indication information, where the indication information is used to indicate that the position of the second sound box is changed;
    所述语音模块用于,发出语音提示,所述语音提示用于提示是否更换所述第一音箱和所述第二音箱的声道。The voice module is used to issue a voice prompt, and the voice prompt is used to prompt whether to replace the channels of the first sound box and the second sound box.
  10. 根据权利要求9所述的装置,其特征在于,The device of claim 9, wherein:
    所述获取模块还用于,获取第二语音,所述第二语音用于指示所述第一音箱更换所述第一音箱和所述第二音箱的声道;The acquiring module is further configured to acquire a second voice, where the second voice is used to instruct the first speaker to replace the channels of the first speaker and the second speaker;
    所述配置模块还用于,响应于所述第二语音,配置所述第一音箱的声道为所述第二声道的参数,配置所述第二音箱的声道为所述第一声道的参数。The configuration module is further configured to, in response to the second voice, configure the channel of the first speaker as the parameter of the second channel, and configure the channel of the second speaker as the first sound. parameters of the path.
  11. 根据权利要求7-10任一项所述的装置,其特征在于,所述分配声道的装置还包括确定模块;The device according to any one of claims 7-10, wherein the device for allocating channels further comprises a determining module;
    所述确定模块用于,确定第三音箱加入所述立体声音箱组,所述第一音箱确定所述第三音箱所在的方向;The determining module is used to determine that a third sound box is added to the stereo sound box group, and the first sound box determines the direction in which the third sound box is located;
    所述配置模块还用于,根据所述第二音箱所在的方向、以及第三音箱所在的方向,配置所述第三音箱的声道为第三声道的参数。The configuration module is further configured to configure the channel of the third sound box as a parameter of the third sound channel according to the direction in which the second sound box is located and the direction in which the third sound box is located.
  12. 根据权利要求7-11任一项所述的装置,其特征在于,The device according to any one of claims 7-11, characterized in that,
    所述获取模块还用于,获取第三语音,所述第三语音用于指示所述第一音箱取消声道分配;The obtaining module is further configured to obtain a third voice, where the third voice is used to instruct the first speaker to cancel channel assignment;
    所述配置模块还用于,响应于所述第三语音,解散所述立体声音箱组,使得所述立体声音箱组中的每个音箱单独工作。The configuration module is further configured to, in response to the third voice, disband the stereo sound box group, so that each sound box in the stereo sound box group works independently.
  13. 一种电子设备,其特征在于,所述电子设备包括:存储器和一个或多个处理器;所述存储器和所述处理器耦合;An electronic device, characterized in that the electronic device comprises: a memory and one or more processors; the memory and the processor are coupled;
    其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,使所述电子设备执行如权利要求1-6中任一项所述的方法。Wherein, the memory is used to store computer program codes, and the computer program codes include computer instructions, when the processor executes the computer instructions, the electronic device is made to perform the execution of any one of claims 1-6. method described.
  14. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机 指令时,所述电子设备执行如权利要求1-6中任一项所述的方法。A chip system, characterized in that, the chip system is applied to electronic equipment; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected by lines; The interface circuit is configured to receive signals from the memory of the electronic device and send the signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions , the electronic device performs the method according to any one of claims 1-6.
  15. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-6中任一项所述的方法。A computer-readable storage medium, characterized by comprising computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method according to any one of claims 1-6.
PCT/CN2021/118531 2020-09-24 2021-09-15 Method for allocating channels and related device WO2022062999A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011014924.9A CN114257924A (en) 2020-09-24 2020-09-24 Method for distributing sound channels and related equipment
CN202011014924.9 2020-09-24

Publications (1)

Publication Number Publication Date
WO2022062999A1 true WO2022062999A1 (en) 2022-03-31

Family

ID=80789918

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/118531 WO2022062999A1 (en) 2020-09-24 2021-09-15 Method for allocating channels and related device

Country Status (2)

Country Link
CN (1) CN114257924A (en)
WO (1) WO2022062999A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150717A (en) * 2022-09-05 2022-10-04 润芯微科技(江苏)有限公司 Bluetooth split type sound box based on BLE and use method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245004A (en) * 1997-01-10 2000-02-16 爱华株式会社 Speaker device
CN103024634A (en) * 2012-11-16 2013-04-03 新奥特(北京)视频技术有限公司 Method and device for processing audio signal
CN107040850A (en) * 2017-04-28 2017-08-11 湖南海翼电子商务股份有限公司 Intelligent sound box, sound system and its automatic method that sound channel is set
US20190191248A1 (en) * 2016-08-01 2019-06-20 D&M Holdings, Inc. Soundbar having single interchangeable mounting surface and multi-directional audio output
CN110677801A (en) * 2019-08-23 2020-01-10 华为技术有限公司 Sound box control method, sound box and sound box system
CN210405574U (en) * 2019-09-16 2020-04-24 杨欣元 Novel surround audio amplifier

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185132B (en) * 2014-09-02 2019-02-01 Oppo广东移动通信有限公司 Channel configuration method, intelligent terminal and corresponding system
CN105163241B (en) * 2015-09-14 2018-04-13 小米科技有限责任公司 Audio frequency playing method and device, electronic equipment
KR102614577B1 (en) * 2016-09-23 2023-12-18 삼성전자주식회사 Electronic device and control method thereof
CN109754798B (en) * 2018-12-20 2021-10-15 歌尔股份有限公司 Multi-loudspeaker-box synchronous control method and system and loudspeaker box
CN110049428B (en) * 2019-03-20 2020-07-28 中国科学院计算技术研究所 Method, playing device and system for realizing multi-channel surround sound playing
CN110996217B (en) * 2019-11-28 2021-08-24 荣成歌尔科技有限公司 Sound channel selection method and device for sound box and sound box
CN111091828B (en) * 2019-12-31 2023-02-14 华为技术有限公司 Voice wake-up method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245004A (en) * 1997-01-10 2000-02-16 爱华株式会社 Speaker device
CN103024634A (en) * 2012-11-16 2013-04-03 新奥特(北京)视频技术有限公司 Method and device for processing audio signal
US20190191248A1 (en) * 2016-08-01 2019-06-20 D&M Holdings, Inc. Soundbar having single interchangeable mounting surface and multi-directional audio output
CN107040850A (en) * 2017-04-28 2017-08-11 湖南海翼电子商务股份有限公司 Intelligent sound box, sound system and its automatic method that sound channel is set
CN110677801A (en) * 2019-08-23 2020-01-10 华为技术有限公司 Sound box control method, sound box and sound box system
CN210405574U (en) * 2019-09-16 2020-04-24 杨欣元 Novel surround audio amplifier

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150717A (en) * 2022-09-05 2022-10-04 润芯微科技(江苏)有限公司 Bluetooth split type sound box based on BLE and use method

Also Published As

Publication number Publication date
CN114257924A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
US10492015B2 (en) Automated user/sensor location recognition to customize audio performance in a distributed multi-sensor environment
US10524300B2 (en) Wireless low-latency audio content sharing
WO2020253844A1 (en) Method and device for processing multimedia information, and storage medium
CN113015065B (en) Connection method, device, equipment and computer storage medium
CN110049428B (en) Method, playing device and system for realizing multi-channel surround sound playing
EP3011763A2 (en) Method for generating a surround sound field, apparatus and computer program product thereof.
WO2021180083A1 (en) Bluetooth communication system and wireless communication system
EP2693721B1 (en) Audio output apparatus
JP2014508444A (en) Audio processing device
EP3068150B1 (en) Method and device for controlling device
US20230147435A1 (en) Audio Processing Method, Apparatus, and System
WO2021208358A1 (en) Data transmission method between tws bluetooth devices and tws bluetooth device therefor
CN111447600A (en) Audio sharing method for wireless earphone, terminal device and storage medium
EP3376781B1 (en) Speaker location identifying system, speaker location identifying device, and speaker location identifying method
WO2022062999A1 (en) Method for allocating channels and related device
WO2020254549A1 (en) Method and system for routing audio data in a bluetooth network
WO2022213689A1 (en) Method and device for voice communicaiton between audio devices
WO2022067652A1 (en) Real-time communication method, apparatus and system
US10966016B2 (en) Electronic device including a plurality of speakers
KR20220017332A (en) Electronic device for processing audio data and method of opearating the same
WO2020042490A1 (en) Earphone far-field interaction method, earphone far-field interaction accessory, and wireless earphone
EP4284027A1 (en) Audio signal processing method and electronic device
US11825282B1 (en) Portable wireless sound system
CN113746982B (en) Audio playing control method and device, electronic equipment and readable storage medium
WO2023051272A1 (en) Device networking and sound channel configuration method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21871370

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871370

Country of ref document: EP

Kind code of ref document: A1