CN111857473A - Audio playing method and device and electronic equipment - Google Patents

Audio playing method and device and electronic equipment Download PDF

Info

Publication number
CN111857473A
CN111857473A CN202010690811.4A CN202010690811A CN111857473A CN 111857473 A CN111857473 A CN 111857473A CN 202010690811 A CN202010690811 A CN 202010690811A CN 111857473 A CN111857473 A CN 111857473A
Authority
CN
China
Prior art keywords
electronic device
channel audio
target
audio signal
electronic devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010690811.4A
Other languages
Chinese (zh)
Other versions
CN111857473B (en
Inventor
王诗云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010690811.4A priority Critical patent/CN111857473B/en
Publication of CN111857473A publication Critical patent/CN111857473A/en
Application granted granted Critical
Publication of CN111857473B publication Critical patent/CN111857473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The application discloses an audio playing method, an audio playing device and electronic equipment, and belongs to the technical field of computers. Wherein the method comprises the following steps: the first electronic device receives a first input for the first electronic device, controls the first electronic device to play a first channel audio signal of a target audio file through a speaker in response to the first input, and sends N second channel audio signals of the target audio file to the N second electronic devices, respectively, so that each second electronic device plays the received second channel audio signal through the speaker, respectively. The loudspeakers of the first electronic device and the N second electronic devices are used for playing the audio corresponding to the M sound channel audio signals of the target audio file, so that the spatial stereoscopic impression of the audio file during playing can be enhanced, and the playing effect is improved.

Description

Audio playing method and device and electronic equipment
Technical Field
The application belongs to the technical field of computers, and particularly relates to an audio playing method and device and electronic equipment.
Background
At present, with the increasing popularization of electronic devices, people can use the electronic devices to play audio at any time. When the electronic device is used to play music, if the speaker of the electronic device is a mono channel, even if the audio decoding of the electronic device supports stereo, the electronic device will mix the left and right channels into the mono channel to play when playing the audio through the speaker, which affects the audio playing effect.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: when audio playing is performed through a loudspeaker of the electronic equipment, the playing effect is poor.
Disclosure of Invention
The embodiment of the application aims to provide an audio playing method, an audio playing device and electronic equipment, and can solve the problem that the playing effect is poor when the electronic equipment in the prior art plays audio.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an audio playing method, where the method includes:
receiving a first input for a first electronic device;
in response to the first input, controlling the first electronic device to play a first channel audio signal of a target audio file through a loudspeaker, and sending N second channel audio signals of the target audio file to N second electronic devices respectively, so that each second electronic device plays the received second channel audio signal through the loudspeaker respectively;
the target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are both smaller than a preset value, and M, N are both positive integers.
In a second aspect, an embodiment of the present application provides an audio playing apparatus, including:
a first receiving module for receiving a first input for a first electronic device;
the first playing module is used for responding to the first input, controlling the first electronic equipment to play a first sound channel audio signal of a target audio file through a loudspeaker, and respectively sending N second sound channel audio signals of the target audio file to N second electronic equipment, so that each second electronic equipment respectively plays a received second sound channel audio signal through the loudspeaker;
the target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are both smaller than a preset value, and M, N are both positive integers.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In an embodiment of the present application, a first input is received for a first electronic device; in response to the first input, controlling the first electronic device to play a first channel audio signal of a target audio file through a loudspeaker, and sending N second channel audio signals of the target audio file to N second electronic devices respectively, so that each second electronic device plays the received second channel audio signal through the loudspeaker respectively; the target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are smaller than a preset value, M, N are positive integers, the loudspeakers of the first electronic device and the N second electronic devices are used for playing audio corresponding to the M channel audio signals of the target audio file, spatial stereoscopic impression during audio playing can be enhanced, and playing effect is improved.
Drawings
Fig. 1 is a flowchart of an audio playing method provided in an embodiment of the present application;
2a, 2b and 2d are schematic diagrams of a device control page provided by an embodiment of the present application;
FIG. 2c is a schematic diagram of selecting a music page according to an embodiment of the present application;
FIG. 2e is a schematic diagram of an edit page of the device provided in the embodiment of the present application;
fig. 3 is a structural diagram of an audio playing apparatus provided in an embodiment of the present application;
fig. 4 is a block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail the audio playing method provided by the embodiment of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart of an audio playing method provided in an embodiment of the present application, and as shown in fig. 1, the audio playing method applied to a first electronic device includes:
step 101, receiving a first input for a first electronic device.
The first input may be a click input, a slide input, or a voice input, etc., which is not limited herein.
Step 102, in response to the first input, controlling the first electronic device to play a first channel audio signal of a target audio file through a speaker, and sending N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays a received second channel audio signal through the speaker, respectively;
the target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are both smaller than a preset value, and M, N are both positive integers.
The N second electronic devices are in signal connection with the first electronic device, and the signal connection can be wireless connection or wired connection, and is preferably wireless connection. The wireless connection may be a bluetooth connection or a connection using ultra wideband technology. The uwb is a wireless personal area network communication technology with low power consumption and high-speed transmission, and the uwb (ultra wide band) technology uses ultra wide baseband pulses with extremely wide frequency spectrum for communication, which is also called a baseband communication technology or a wireless carrier communication technology. For example, the first electronic device and the N electronic devices respectively have an implementation module for ultra-wideband connection, the distance between the first electronic device and each second electronic device is smaller than a preset value, and the preset value can be set according to actual conditions, so that the space stereoscopic playing effect of the target audio file is better, the distance between the first electronic device and the second electronic device is not too far, for example, within 10 meters, and the first electronic device and the N second electronic devices can mutually sense and complete connection.
For example, stereo sound can be formed with 2 electronic devices, including 2 independent channels; the 3-4 electronic devices can form four-sound surround, including a front left channel, a front right channel, a rear left channel and a rear right channel; the 5-6 electronic devices can form 5.1 sound channels including a center sound channel, a front left sound channel, a front right sound channel, a rear left sound channel, a rear right sound channel and a 0.1 bass sound channel.
The target audio file may be determined based on a user selection input, for example, the user selects one target audio file based on an audio application, such as the select music page shown in fig. 2c, from which the user may select the target audio file to be played.
The target audio file includes M channel audio signals corresponding to M channels, the first channel audio signal includes one or more channel audio signals of the M channel audio signals, each second channel audio signal also includes one or more channel audio signals of the M channel audio signals, and the first channel audio signal and the second channel audio signal include channel audio signals that may be the same or different, or may be partially the same, which is not limited herein. For any one of the M channel audio signals, the channel audio signal may be included in the first channel audio signal, may be included in the second channel audio signal, and may be included in both the first channel audio signal and the second channel audio signal.
If N +1 is equal to M, the speaker of each of the first electronic device and the N second electronic devices plays an audio corresponding to one channel audio signal; if N +1 is greater than M, the speaker of each of the first electronic device and the N second electronic devices plays the audio corresponding to one channel audio signal, and the speakers of at least 2 electronic devices play the audio corresponding to the same channel audio signal; if N +1 is smaller than M, the speaker of at least one of the first electronic device and the N second electronic devices plays audio corresponding to the plurality of channel audio signals.
In this embodiment, the speaker of the first electronic device may be a speaker of the first electronic device itself, or may be a speaker of a sound box having a signal connection with the first electronic device, in which case, the first electronic device may play the audio corresponding to the first channel audio signal through the sound box. Similarly, the speaker of the second electronic device may be a speaker of the second electronic device itself, or may be a speaker of a sound box having a signal connection with the second electronic device, in this case, the second electronic device may play audio corresponding to the second channel audio signal through the sound box.
After the first electronic device sends the second channel audio signal to the second electronic device, the audio corresponding to the second channel audio signal received by the second electronic device may be played based on the control of the first electronic device, or the audio corresponding to the second channel audio signal received by the second electronic device may be played under the control of the second electronic device.
In this embodiment, a first electronic device receives a first input for the first electronic device, in response to the first input, controls the first electronic device to play a first channel audio signal of a target audio file through a speaker, and sends N second channel audio signals of the target audio file to N second electronic devices respectively, so that each of the second electronic devices plays a received second channel audio signal through the speaker respectively, where the target audio file includes M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal include one or more channel audio signals of the M channel audio signals, and one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, the distance between the first electronic device and each second electronic device is smaller than a preset value, and M, N are positive integers. The loudspeakers of the first electronic device and the N second electronic devices are used for playing the audio corresponding to the M sound channel audio signals of the target audio file, so that the spatial stereoscopic impression of the audio file during playing can be enhanced, and the playing effect is improved.
In an embodiment of the present application, the audio playing method further includes a step of determining M channel audio signals based on the target audio file, specifically as follows:
decoding the target audio file to obtain an initial channel audio signal corresponding to a first channel in the M channels;
carrying out time delay on an initial channel audio signal corresponding to a first channel in the M channels to obtain an intermediate channel audio signal;
superposing the initial channel audio signal corresponding to the first channel and the intermediate channel audio signal to obtain a target channel audio signal corresponding to the first channel;
and determining a target channel audio signal corresponding to the first channel and an initial channel audio signal corresponding to a second channel as the M channel audio signals, wherein the second channel is the other channel except the first channel in the M channels.
In this embodiment, a part of the audio signals decoded from the target audio file is delayed to increase the playing effect of the audio, for example, to enhance the heaviness and charm of the sound. The first sound channel can be a high-pitch sound channel, time delay is carried out on an initial sound channel audio signal of the high-pitch sound channel to obtain a middle sound channel audio signal, the initial sound channel audio signal of the high-pitch sound channel and the middle sound channel audio signal are overlapped, and a target sound channel audio signal corresponding to the high-pitch sound channel is obtained. The delay time may be 0.44 microseconds to 0.5 microseconds.
In addition, the first channel may include a plurality of channels, in this case, the channel audio signals corresponding to each of the plurality of channels are delayed respectively, the delay time corresponding to each channel may be the same or different, and may be set according to an actual situation, and for each channel, the delayed channel audio signal and the channel audio signal before being delayed are superimposed to obtain the target channel audio signal.
The M channel audio signals include a target channel audio signal corresponding to a first channel and an initial channel audio signal corresponding to a second channel, where the second channel is a channel other than the first channel among the M channels.
In this embodiment, by performing time delay processing on the initial channel audio signal corresponding to the first channel in the M channels, the playing effect of the audio corresponding to the first channel can be enhanced.
The step of determining the M channel audio signals based on the target audio file may be determined in any step before step 102, or may be determined in response to the first input, for example, in response to the first input, determining the M channel audio signals based on the target audio file, and then controlling the first electronic device to play the first channel audio signal of the target audio file through a speaker, and sending the N second channel audio signals of the target audio file to the N second electronic devices, respectively.
In an embodiment of the application, the controlling, in response to the first input, the first electronic device to play a first channel audio signal of a target audio file through a speaker, and send N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays a received second channel audio signal through the speaker, includes:
responding to the first input, and taking the position of the first electronic equipment as a reference to acquire the positions of the N second electronic equipment relative to the first electronic equipment;
according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device, allocating first channel audio signals to the first electronic device and allocating second channel audio signals to the N second electronic devices;
and controlling the first electronic equipment to play the first channel audio signal of the target audio file through a loudspeaker, and respectively sending N second channel audio signals of the target audio file to N second electronic equipment, so that each second electronic equipment respectively plays the received second channel audio signal through the loudspeaker.
Specifically, after the first electronic device establishes signal connections between the first electronic device and the plurality of electronic devices, based on a user selection input, N second electronic devices are determined, that is: and displaying a selection interface (also called a device control page) on the first electronic device, wherein the selection interface comprises the identifications of the plurality of electronic devices, and a user can select N electronic device identifications from the plurality of electronic device identifications based on the selection interface, and the selected electronic device is the second electronic device. As shown in fig. 2a and 2b, identifiers of a plurality of electronic devices are displayed on the selection interface, where the current device, device 2, device 3, device 4, and device 5 are identifiers of electronic devices, and a positional relationship of each electronic device is also displayed, and the positional relationship can be perceived based on the ultra wideband technology of the electronic device. The electronic equipment provided with the ultra-wideband technology has space sensing capability, can sense other nearby electronic equipment provided with the ultra-wideband technology, accurately judges the position relationship among the electronic equipment, and can display the position relationship among the electronic equipment in a selection interface based on the position relationship. The user may select the electronic device based on the position relationship, for example, clicking a corresponding electronic device icon, which may have a mark thereon, as shown in fig. 2 b. Clicking the icon of the electronic equipment again to deselect, displaying a completion button after selecting 2 pieces of equipment, and displaying the number of the selected equipment on a selection interface in real time, wherein the current equipment, the equipment 3 and the equipment 4 are selected as shown in fig. 2 b.
Or after the first electronic device establishes signal connection between the first electronic device and the plurality of electronic devices, the first electronic device automatically selects N second electronic devices from the plurality of electronic devices according to the position relationship between the first electronic device and the plurality of electronic devices.
The method comprises the steps of acquiring positions of N second electronic devices relative to a first electronic device by taking the position of the first electronic device as a reference, distributing a first channel audio signal to the first electronic device and distributing a second channel audio signal to the N second electronic devices according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device, controlling the first electronic device to play a first channel audio signal of a target audio file through a loudspeaker, and sending N second channel audio signals of the target audio file to the N second electronic devices respectively, so that each second electronic device plays the received second channel audio signal through the loudspeaker. For example, the first electronic device may utilize the ultra-wideband technology to transmit the decoded channel audio signal to the second electronic device at a different location according to the result of channel analysis, and the second electronic device that receives the second channel audio signal cooperatively receives and plays the second channel audio signal at the same time.
For example, if M is 4 and N is 4, the first electronic device allocates channel audio signals to the 4 electronic devices according to the positions of the 4 electronic devices, allocates the front left channel to the electronic device located at the front left position, allocates the front right channel to the electronic device located at the front right position, allocates the rear left channel to the electronic device located at the rear left position, and allocates the rear right channel to the electronic device located at the rear right position, so that when the target audio file is played by using the 4 electronic devices, a four-sound surround effect can be formed. As shown in fig. 2c, the device control page displays the song information played by the device, the playing progress, the playing button, and the like in real time, and further, the user can delete and add the device by clicking the edit in the upper right corner of the device control page in fig. 2 c.
In this embodiment, the channel audio signals are allocated to the first electronic device and the N second electronic devices according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device, so that the spatial stereoscopic impression of sound can be enhanced, and the playing effect of the target audio file, for example, the audio playing effect of directional sense and surround sense, can be improved.
In one embodiment of the present application, the allocating a first channel audio signal to the first electronic device and a second channel audio signal to the N second electronic devices according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device includes:
determining correspondence between J electronic devices and M channel audio signals of the target audio file according to positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device, wherein the J electronic devices comprise the first electronic device and the N second electronic devices, and J is an integer greater than or equal to 2;
and distributing a first channel audio signal to the first electronic device and distributing a second channel audio signal to the N second electronic devices according to the corresponding relation between the J electronic devices and the M channel audio signals.
Specifically, when channel audio signals are allocated to each of the J electronic devices, the correspondence between the J electronic devices and the M channel audio signals may be determined according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device. And then distributing a first channel audio signal for the first electronic device, distributing a second channel audio signal for the N second electronic devices, and sending the second channel audio signal to the second electronic devices. Specifically, the second channel audio signal can be transmitted from the first electronic device to each second electronic device based on the transmission function of the ultra-wideband technology, so that synchronous playing is realized, and the J electronic devices are combined into a space 3D player.
In this embodiment, first, the corresponding relationship between the J electronic devices and the M channel audio signals is determined, a first channel audio signal is allocated to the first electronic device, and a second channel audio signal is allocated to the N second electronic devices, so that the J electronic devices can synchronously play a target audio file, a spatial surround effect is formed, and a playing effect of the target audio file is improved.
If J is larger than M, the loudspeaker of one electronic device in the J electronic devices plays the audio corresponding to one sound channel audio signal, and the loudspeaker of at least 2 electronic devices plays the audio corresponding to the same sound channel audio signal.
Specifically, if J is greater than M, determining a correspondence between M electronic devices of the J electronic devices and the M channel audio signals according to positions of the N second electronic devices relative to the first electronic device and a position of the first electronic device;
if a third target electronic device is closest to a fourth target electronic device of the M electronic devices, determining a channel audio signal corresponding to the fourth target electronic device as a channel audio signal corresponding to the third target electronic device, where the third target electronic device is an electronic device of the J electronic devices except the M electronic devices;
Determining a correspondence between the M electronic devices of the J electronic devices and the M channel audio signals, and a correspondence between the channel audio signals of the third target electronic device and the fourth target electronic device, as a correspondence between the J electronic devices and the M channel audio signals.
That is, M electronic devices are selected from the J electronic devices according to the position of the second electronic device relative to the first electronic device and the position of the first electronic device, and the correspondence relationship between the M electronic devices and the M channel audio signals is determined, for example, if M is 4, the first electronic device determines 4 electronic devices having the positional relationship of front left, rear left, front right, and rear right among the J electronic devices, allocates the front left channel to the electronic device located at the front left position, allocates the front right channel to the electronic device located at the front right position, allocates the rear left channel to the electronic device located at the rear left position, and allocates the rear right channel to the electronic device located at the rear right position.
Then, the channel audio signals are assigned to the electronic apparatuses other than the M electronic apparatuses among the J electronic apparatuses. Namely: if a third target electronic device is closest to a fourth target electronic device of the M electronic devices, determining a channel audio signal corresponding to the fourth target electronic device as a channel audio signal corresponding to the third target electronic device, where the third target electronic device is an electronic device of the J electronic devices except the M electronic devices. For example, if the third target electronic device is closest to the electronic device located at the front left position, the channel audio signal corresponding to the third target electronic device is the front left channel audio signal. Therefore, the same audio signal can be played by the loudspeaker of the electronic equipment closest to the loudspeaker, the interference on the spatial sense caused by the fact that the electronic equipment playing the same audio signal is too far away is avoided, and the playing effect of the target audio file is improved.
Furthermore, the electronic device assigned to one channel cannot be more than half of J, and if more than J is assigned, the channel assigned to the electronic device closest to the second electronic device is assigned to the electronic device.
For another example, if J is smaller than M, determining a correspondence relationship between J electronic devices and J channel audio signals in the M channel audio signals according to a position of each electronic device in the N second electronic devices relative to the first electronic device and a position of the first electronic device; for channel audio signals other than J channel audio signals in the M channel audio signals, the channel audio signals may be respectively allocated to one or more of the J electronic devices in a random allocation manner, or may be allocated according to a positional relationship of the J electronic devices, which is not limited herein.
In an embodiment of the application, after the controlling, in response to the first input, the first electronic device to play a first channel audio signal of a target audio file through a speaker, and sending N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays a received second channel audio signal through the speaker, the method further includes:
If a second input is received, displaying an editing interface, wherein the editing interface comprises the identifier of the first electronic device and the identifiers of the P electronic devices;
receiving a third input aiming at the editing interface, and determining U electronic devices from the first electronic device and the P electronic devices, wherein U is a positive integer;
and playing the target audio file by using the loudspeakers of the U pieces of electronic equipment.
Specifically, in the process of playing the target audio file, the electronic device that plays the target audio file may be adjusted, for example, a new electronic device is added and/or an existing electronic device is deleted. As shown in fig. 2d, a user may click on the edit in the upper right corner of the device control page in fig. 2d to generate an edit interface, and as shown in fig. 2e, the user may delete and add devices through the edit interface, where the edit interface includes the identifier of the first electronic device and the identifiers of the P electronic devices. The second input is an input for displaying an editing interface, the third input is an input for adding or deleting electronic devices, and U electronic devices can be determined according to the third input, and can comprise the first electronic device or not. And then, playing the part of the target audio file which is not played completely by utilizing the U electronic equipment.
In this embodiment, the played electronic device can be adjusted in the playing process of the target audio file, and then the adjusted electronic device is used to continue playing the target audio file, so that more playing choices are provided for a user, and the interest of playing the target audio file is enhanced.
In an embodiment of the application, the receiving a third input to the editing interface, and determining U electronic devices from the first electronic device and the P electronic devices includes:
receiving a third input aiming at the editing interface, and determining U electronic devices from the first electronic device and the N second electronic devices, wherein the P electronic devices comprise the N second electronic devices, and U is smaller than N;
the playing the target audio file by using the speakers of the U pieces of electronic equipment includes:
acquiring a sixth target electronic device, wherein the sixth target electronic device is a device which is included in the first electronic device or the N second electronic devices and is not included in the U electronic devices;
sending the audio channel audio signal allocated to the sixth target electronic device to a fifth target electronic device, where the fifth target electronic device is a device closest to the sixth target electronic device among the U electronic devices;
For each seventh target electronic device of the U electronic devices, playing the received channel audio signal with a speaker of the seventh target electronic device.
In this embodiment, in the process of playing the target audio file, the electronic devices for playing the target audio file are deleted, so that the number U of the electronic devices for playing the target audio file is smaller than J (i.e., the number of the first electronic device and the number N of the second electronic devices), and at this time, the electronic devices need to be newly allocated to the M channel audio signals of the target audio file.
Specifically, the U electronic devices include electronic devices in the J electronic devices, and the channel audio signals allocated to each of the U electronic devices are not changed and are still the channel audio signals allocated before the number of the electronic devices is adjusted. However, since the number of the electronic devices is reduced, the channel audio signal of the removed electronic device (i.e., the sixth target electronic device) is not allocated to the corresponding electronic device, and then the fifth target electronic device of the U electronic devices needs to play the audio corresponding to the channel audio signal allocated to the sixth target electronic device, so that the speaker of the fifth target electronic device needs to play the audio corresponding to the multiple channel audio signals. And the fifth target electronic device is the device closest to the sixth target electronic device in the U electronic devices.
For the electronic device whose channel audio signal does not change among the U electronic devices, the audio corresponding to the channel audio signal corresponding to the electronic device is still played, and for the fifth target electronic device, the audio corresponding to the channel audio signal allocated to the sixth target electronic device is also played.
The channel audio signal corresponding to the fifth target electronic device cannot be more than half of M, and if so, the channel audio signal allocated to the sixth target electronic device is allocated to the electronic device which is the second closest to the sixth target electronic device.
After the first electronic device sends the channel audio signal allocated to the seventh target electronic device, the audio corresponding to the channel audio signal received by the seventh target electronic device may be played based on the control of the first electronic device, or the audio corresponding to the channel audio signal received by the seventh target electronic device may be played by the seventh target electronic device.
In this embodiment, the channel audio signal allocated to the sixth target electronic device is allocated to the electronic device closest to the sixth target electronic device, so as to reduce the distance of the electronic device playing the same audio signal as much as possible, so that before and after the sixth target electronic device is removed, the spatial sense of the channel audio signal allocated to the sixth target electronic device is minimized during playing, and the playing effect of the target audio file is improved.
This application is connected P electronic equipment in coordination, through the operation to a first electronic equipment, realizes P electronic equipment's utilization in coordination, makes the target audio file that originally can only play through single electronic equipment's speaker, plays through J electronic equipment's speaker to utilize decoder decoding and surround sound principle, the perfect layering that reproduces the sound has increased the experience of user to the audio playback.
It should be noted that, in the audio playing method provided in the embodiment of the present application, the execution main body may be an audio playing device, or a control module in the audio playing device, which is used for executing the method of loading audio playing. In the embodiment of the present application, a method for loading audio playback performed by an audio playback device is taken as an example, and the method for audio playback provided in the embodiment of the present application is described.
As shown in fig. 3, fig. 3 is a structural diagram of an audio playing device according to an embodiment of the present application, and an audio playing device 300 according to the embodiment includes:
a first receiving module 301, configured to receive a first input for a first electronic device;
a first playing module 302, configured to, in response to the first input, control the first electronic device to play a first channel audio signal of a target audio file through a speaker, and send N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays a received second channel audio signal through the speaker, respectively;
The target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are both smaller than a preset value, and M, N are both positive integers.
In an embodiment of the present application, the audio playing apparatus 300 further includes:
the decoding module is used for decoding the target audio file to obtain an initial sound channel audio signal corresponding to a first sound channel in the M sound channels;
the delay module is used for carrying out time delay on an initial sound channel audio signal corresponding to a first sound channel in the M sound channels to obtain an intermediate sound channel audio signal;
the superposition module is used for superposing an initial channel audio signal corresponding to the first channel and an intermediate channel audio signal to obtain a target channel audio signal corresponding to the first channel;
a determining module, configured to determine a target channel audio signal corresponding to the first channel and an initial channel audio signal corresponding to a second channel as the M channel audio signals, where the second channel is another channel of the M channels except the first channel.
In an embodiment of the present application, the first playing module 302 includes:
the first obtaining submodule is used for responding to the first input and obtaining the positions of the N second electronic devices relative to the first electronic device by taking the position of the first electronic device as a reference;
the distribution submodule is used for distributing a first channel audio signal to the first electronic equipment and distributing a second channel audio signal to the N second electronic equipment according to the positions of the N second electronic equipment relative to the first electronic equipment and the position of the first electronic equipment;
and the playing sub-module is used for controlling the first electronic equipment to play the first channel audio signal of the target audio file through a loudspeaker, and sending N second channel audio signals of the target audio file to N second electronic equipment respectively, so that each second electronic equipment plays the received second channel audio signal through the loudspeaker.
In an embodiment of the present application, the allocation submodule includes:
a determining unit, configured to determine, according to positions of the N second electronic devices relative to the first electronic device and a position of the first electronic device, correspondence relationships between J electronic devices and M channel audio signals of the target audio file, where the J electronic devices include the first electronic device and the N second electronic devices, and J is an integer greater than or equal to 2;
And the distribution unit is used for distributing a first channel audio signal to the first electronic device and distributing a second channel audio signal to the N second electronic devices according to the corresponding relation between the J electronic devices and the M channel audio signals.
In an embodiment of the present application, the determining unit is configured to:
if J is larger than M, determining the corresponding relation between M electronic devices in the J electronic devices and the M sound channel audio signals according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device;
if a third target electronic device is closest to a fourth target electronic device of the M electronic devices, determining a channel audio signal corresponding to the fourth target electronic device as a channel audio signal corresponding to the third target electronic device, where the third target electronic device is an electronic device of the J electronic devices except the M electronic devices;
determining a correspondence between the M electronic devices of the J electronic devices and the M channel audio signals, and a correspondence between the channel audio signals of the third target electronic device and the fourth target electronic device, as a correspondence between the J electronic devices and the M channel audio signals.
In an embodiment of the present application, the audio playing apparatus 300 further includes:
a second receiving module, configured to display an editing interface if a second input is received, where the editing interface includes an identifier of the first electronic device and identifiers of the P electronic devices;
a third receiving module, configured to receive a third input for the editing interface, and determine U electronic devices from the first electronic device and the P electronic devices, where U is a positive integer;
and the second playing module is used for playing the target audio file by utilizing the loudspeakers of the U pieces of electronic equipment.
In an embodiment of the present application, the third receiving module is configured to:
receiving a third input aiming at the editing interface, and determining U electronic devices from the first electronic device and the N second electronic devices, wherein the P electronic devices comprise the N second electronic devices, and U is smaller than N;
the second playing module is configured to:
acquiring a sixth target electronic device, wherein the sixth target electronic device is a device which is included in the first electronic device or the N second electronic devices and is not included in the U electronic devices;
Sending the audio channel audio signal allocated to the sixth target electronic device to a fifth target electronic device, where the fifth target electronic device is a device closest to the sixth target electronic device among the U electronic devices;
for each seventh target electronic device of the U electronic devices, playing the received channel audio signal with a speaker of the seventh target electronic device.
The audio playing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The audio playing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The audio playing apparatus provided in this embodiment of the application can implement each process implemented by the first electronic device in the method embodiment of fig. 1, and is not described here again to avoid repetition.
The audio playing apparatus 300 in this embodiment receives a first input for a first electronic device, and in response to the first input, controls the first electronic device to play a first channel audio signal of a target audio file through a speaker, and sends N second channel audio signals of the target audio file to N second electronic devices respectively, so that each of the second electronic devices plays the received second channel audio signal through the speaker respectively, where the target audio file includes M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal include one or more channel audio signals of the M channel audio signals, and one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, the distance between the first electronic device and each second electronic device is smaller than a preset value, and M, N are positive integers. The loudspeakers of the first electronic device and the N second electronic devices are used for playing the audio corresponding to the M sound channel audio signals of the target audio file, so that the spatial stereoscopic impression of the audio file during playing can be enhanced, and the playing effect is improved.
Fig. 4, optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 1010, a memory 1009, and a program or an instruction stored in the memory 1009 and capable of running on the processor 1010, where the program or the instruction is executed by the processor 1010 to implement each process of the above-described embodiment of the audio playing method, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The input unit 1004 is used for receiving a first input aiming at the first electronic equipment;
a processor 1010, configured to, in response to the first input, control the first electronic device to play a first channel audio signal of a target audio file through a speaker, and send N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays a received second channel audio signal through the speaker, respectively;
the target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are both smaller than a preset value, and M, N are both positive integers.
In this embodiment, a first input for a first electronic device is received, in response to the first input, the first electronic device is controlled to play a first channel audio signal of a target audio file through a speaker, and N second channel audio signals of the target audio file are respectively sent to N second electronic devices, so that each second electronic device respectively plays a received second channel audio signal through the speaker, where the target audio file includes M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal include one or more channel audio signals of the M channel audio signals, and one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, the distance between the first electronic device and each second electronic device is smaller than a preset value, and M, N are positive integers. The loudspeakers of the first electronic device and the N second electronic devices are used for playing the audio corresponding to the M sound channel audio signals of the target audio file, so that the spatial stereoscopic impression of the audio file during playing can be enhanced, and the playing effect is improved.
Further, the processor 1010 is further configured to decode the target audio file to obtain an initial channel audio signal corresponding to a first channel of the M channels; carrying out time delay on an initial channel audio signal corresponding to a first channel in the M channels to obtain an intermediate channel audio signal; superposing the initial channel audio signal corresponding to the first channel and the intermediate channel audio signal to obtain a target channel audio signal corresponding to the first channel; and determining a target channel audio signal corresponding to the first channel and an initial channel audio signal corresponding to a second channel as the M channel audio signals, wherein the second channel is the other channel except the first channel in the M channels.
In this embodiment, by performing time delay processing on the initial channel audio signal corresponding to the first channel in the M channels, the playing effect of the audio corresponding to the first channel can be enhanced.
Further, the processor 1010 is further configured to, in response to the first input, obtain positions of the N second electronic devices relative to the first electronic device with reference to the position of the first electronic device;
a processor 1010, further configured to assign a first channel audio signal to the first electronic device and assign a second channel audio signal to the N second electronic devices according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device;
The processor 1010 is further configured to control the first electronic device to play the first channel audio signal of the target audio file through a speaker, and control the radio frequency unit 1001 to send N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays the received second channel audio signal through the speaker.
In this embodiment, the audio channel audio signals are allocated according to the position of each of the N second electronic devices relative to the first electronic device and the position of the first electronic device, so that the spatial stereoscopic impression of the sound can be enhanced, and the playing effect of the target audio file, for example, the audio playing effect of forming the directional sense and the surround sense, can be improved.
Further, the processor 1010 is further configured to determine, according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device, correspondence between J electronic devices and M channel audio signals of the target audio file, where the J electronic devices include the first electronic device and the N second electronic devices, and J is an integer greater than or equal to 2;
And distributing a first channel audio signal to the first electronic device and distributing a second channel audio signal to the N second electronic devices according to the corresponding relation between the J electronic devices and the M channel audio signals.
In this embodiment, first, the corresponding relationship between the J electronic devices and the M channel audio signals is determined, and then the channel audio signal corresponding to the second target electronic device in the N second electronic devices is sent to the second target electronic device, so that the J electronic devices can synchronously play one target audio file, a spatial surround effect is formed, and the playing effect of the target audio file is improved.
Further, the processor 1010 is configured to determine, if J is greater than M, corresponding relationships between M electronic devices of the J electronic devices and the M channel audio signals according to positions of the N second electronic devices relative to the first electronic device and a position of the first electronic device;
if a third target electronic device is closest to a fourth target electronic device of the M electronic devices, determining a channel audio signal corresponding to the fourth target electronic device as a channel audio signal corresponding to the third target electronic device, where the third target electronic device is an electronic device of the J electronic devices except the M electronic devices;
Determining a correspondence between the M electronic devices of the J electronic devices and the M channel audio signals, and a correspondence between the channel audio signals of the third target electronic device and the fourth target electronic device, as a correspondence between the J electronic devices and the M channel audio signals.
In this embodiment, the same audio signal can be played by the speaker of the electronic device closest to the electronic device, so that the electronic device playing the same audio signal is prevented from causing spatial interference due to too far distance, and the playing effect of the target audio file is improved.
Further, an input unit 1004 is configured to receive a first input, and a display unit 1006 is configured to display an editing interface, where the editing interface includes an identifier of the first electronic device and identifiers of the P electronic devices
A processor 1010, configured to receive a third input for the editing interface at the input unit 1004, determine U electronic devices from the first electronic device and the P electronic devices, where U is a positive integer;
and a processor 1010, configured to play the target audio file using the speakers of the U electronic devices.
In this embodiment, the played electronic device can be adjusted in the playing process of the target audio file, and then the adjusted electronic device is used to play the part of the target audio file that is not played, so that more playing choices are provided for a user, and the interest of playing the target audio file is enhanced.
Further, the input unit 1004 is configured to receive a third input for the editing interface, determine U electronic devices from the first electronic device and the N second electronic devices, where the P electronic devices include the N second electronic devices, and U is smaller than N;
a processor 1010, configured to acquire a sixth target electronic device, where the sixth target electronic device is a device that is included in the first electronic device or the N second electronic devices and is not included in the U electronic devices;
a radio frequency unit 1001, configured to send a channel audio signal allocated to the sixth target electronic device to a fifth target electronic device, where the fifth target electronic device is a device closest to the sixth target electronic device in the U electronic devices;
the processor 1010 is further configured to, for each seventh target electronic device of the U electronic devices, play the received channel audio signal using a speaker of the seventh target electronic device.
In this embodiment, the channel audio signal allocated to the sixth target electronic device is allocated to the electronic device closest to the sixth target electronic device, so as to reduce the distance of the electronic device playing the same audio signal as much as possible, so that before and after the sixth target electronic device is removed, the spatial sense of the channel audio signal allocated to the sixth target electronic device is minimized during playing, and the playing effect of the target audio file is improved.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned audio playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned audio playing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (16)

1. An audio playing method, comprising:
receiving a first input for a first electronic device;
in response to the first input, controlling the first electronic device to play a first channel audio signal of a target audio file through a loudspeaker, and sending N second channel audio signals of the target audio file to N second electronic devices respectively, so that each second electronic device plays the received second channel audio signal through the loudspeaker respectively;
the target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are both smaller than a preset value, and M, N are both positive integers.
2. The method of claim 1, further comprising:
decoding the target audio file to obtain an initial channel audio signal corresponding to a first channel in the M channels;
Carrying out time delay on an initial channel audio signal corresponding to a first channel in the M channels to obtain an intermediate channel audio signal;
superposing the initial channel audio signal corresponding to the first channel and the intermediate channel audio signal to obtain a target channel audio signal corresponding to the first channel;
and determining a target channel audio signal corresponding to the first channel and an initial channel audio signal corresponding to a second channel as the M channel audio signals, wherein the second channel is the other channel except the first channel in the M channels.
3. The method of claim 1, wherein the controlling, in response to the first input, the first electronic device to play a first channel audio signal of a target audio file through a speaker and to send N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays the received second channel audio signal through the speaker, comprises:
responding to the first input, and taking the position of the first electronic equipment as a reference to acquire the positions of the N second electronic equipment relative to the first electronic equipment;
According to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device, allocating first channel audio signals to the first electronic device and allocating second channel audio signals to the N second electronic devices;
and controlling the first electronic equipment to play the first channel audio signal of the target audio file through a loudspeaker, and respectively sending N second channel audio signals of the target audio file to N second electronic equipment, so that each second electronic equipment respectively plays the received second channel audio signal through the loudspeaker.
4. The method of claim 3, wherein assigning the first channel audio signal to the first electronic device and assigning the second channel audio signal to the N second electronic devices according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device comprises:
determining correspondence between J electronic devices and M channel audio signals of the target audio file according to positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device, wherein the J electronic devices comprise the first electronic device and the N second electronic devices, and J is an integer greater than or equal to 2;
And distributing a first channel audio signal to the first electronic device and distributing a second channel audio signal to the N second electronic devices according to the corresponding relation between the J electronic devices and the M channel audio signals.
5. The method of claim 4, wherein determining the correspondence between the J electronic devices and the M channel audio signals according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device comprises:
if J is larger than M, determining the corresponding relation between M electronic devices in the J electronic devices and the M sound channel audio signals according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device;
if a third target electronic device is closest to a fourth target electronic device of the M electronic devices, determining a channel audio signal corresponding to the fourth target electronic device as a channel audio signal corresponding to the third target electronic device, where the third target electronic device is an electronic device of the J electronic devices except the M electronic devices;
Determining a correspondence between the M electronic devices of the J electronic devices and the M channel audio signals, and a correspondence between the channel audio signals of the third target electronic device and the fourth target electronic device, as a correspondence between the J electronic devices and the M channel audio signals.
6. The method of claim 1, further comprising, after the controlling, in response to the first input, the first electronic device to play a first channel audio signal of a target audio file through a speaker and sending N second channel audio signals of the target audio file to N second electronic devices, respectively, so that each of the second electronic devices plays a received second channel audio signal through the speaker, respectively:
if a second input is received, displaying an editing interface, wherein the editing interface comprises the identifier of the first electronic equipment and the identifiers of the P electronic equipment;
receiving a third input aiming at the editing interface, and determining U electronic devices from the first electronic device and the P electronic devices, wherein U is a positive integer;
and playing the target audio file by using the loudspeakers of the U pieces of electronic equipment.
7. The method of claim 6, wherein receiving a third input for the editing interface, determining U electronic devices from the first electronic device and the P electronic devices comprises:
receiving a third input aiming at the editing interface, and determining U electronic devices from the first electronic device and the N second electronic devices, wherein the P electronic devices comprise the N second electronic devices, and U is smaller than N;
the playing the target audio file by using the speakers of the U pieces of electronic equipment includes:
acquiring a sixth target electronic device, wherein the sixth target electronic device is a device which is included in the first electronic device or the N second electronic devices and is not included in the U electronic devices;
sending the audio channel audio signal allocated to the sixth target electronic device to a fifth target electronic device, where the fifth target electronic device is a device closest to the sixth target electronic device among the U electronic devices;
for each seventh target electronic device of the U electronic devices, playing the received channel audio signal with a speaker of the seventh target electronic device.
8. An audio playback apparatus, comprising:
a first receiving module for receiving a first input for a first electronic device;
the first playing module is used for responding to the first input, controlling the first electronic equipment to play a first sound channel audio signal of a target audio file through a loudspeaker, and respectively sending N second sound channel audio signals of the target audio file to N second electronic equipment, so that each second electronic equipment respectively plays a received second sound channel audio signal through the loudspeaker;
the target audio file comprises M channel audio signals corresponding to M channels, the first channel audio signal and the second channel audio signal comprise one or more channel audio signals of the M channel audio signals, one channel audio signal of the M channel audio signals is included in the first channel audio signal and/or the second channel audio signal, distances between the first electronic device and each second electronic device are both smaller than a preset value, and M, N are both positive integers.
9. The apparatus of claim 8, further comprising:
The decoding module is used for decoding the target audio file to obtain an initial sound channel audio signal corresponding to a first sound channel in the M sound channels;
the delay module is used for carrying out time delay on an initial sound channel audio signal corresponding to a first sound channel in the M sound channels to obtain an intermediate sound channel audio signal;
the superposition module is used for superposing an initial channel audio signal corresponding to the first channel and an intermediate channel audio signal to obtain a target channel audio signal corresponding to the first channel;
a determining module, configured to determine a target channel audio signal corresponding to the first channel and an initial channel audio signal corresponding to a second channel as the M channel audio signals, where the second channel is another channel of the M channels except the first channel.
10. The apparatus of claim 8, wherein the first playing module comprises:
the first obtaining submodule is used for responding to the first input and obtaining the positions of the N second electronic devices relative to the first electronic device by taking the position of the first electronic device as a reference;
the distribution submodule is used for distributing a first channel audio signal to the first electronic equipment and distributing a second channel audio signal to the N second electronic equipment according to the positions of the N second electronic equipment relative to the first electronic equipment and the position of the first electronic equipment;
And the playing sub-module is used for controlling the first electronic equipment to play the first channel audio signal of the target audio file through a loudspeaker, and sending N second channel audio signals of the target audio file to N second electronic equipment respectively, so that each second electronic equipment plays the received second channel audio signal through the loudspeaker.
11. The apparatus of claim 10, wherein the assignment sub-module comprises:
a determining unit, configured to determine, according to positions of the N second electronic devices relative to the first electronic device and a position of the first electronic device, correspondence relationships between J electronic devices and M channel audio signals of the target audio file, where the J electronic devices include the first electronic device and the N second electronic devices, and J is an integer greater than or equal to 2;
and the distribution unit is used for distributing a first channel audio signal to the first electronic device and distributing a second channel audio signal to the N second electronic devices according to the corresponding relation between the J electronic devices and the M channel audio signals.
12. The apparatus of claim 11, wherein the determining unit is configured to:
If J is larger than M, determining the corresponding relation between M electronic devices in the J electronic devices and the M sound channel audio signals according to the positions of the N second electronic devices relative to the first electronic device and the position of the first electronic device;
if a third target electronic device is closest to a fourth target electronic device of the M electronic devices, determining a channel audio signal corresponding to the fourth target electronic device as a channel audio signal corresponding to the third target electronic device, where the third target electronic device is an electronic device of the J electronic devices except the M electronic devices;
determining a correspondence between the M electronic devices of the J electronic devices and the M channel audio signals, and a correspondence between the channel audio signals of the third target electronic device and the fourth target electronic device, as a correspondence between the J electronic devices and the M channel audio signals.
13. The apparatus of claim 8, further comprising:
the second receiving module is used for displaying an editing interface if a second input is received, wherein the editing interface comprises the identifier of the first electronic device and the identifiers of the P electronic devices;
A third receiving module, configured to receive a third input for the editing interface, and determine U electronic devices from the first electronic device and the P electronic devices, where U is a positive integer;
and the second playing module is used for playing the target audio file by utilizing the loudspeakers of the U pieces of electronic equipment.
14. The apparatus of claim 13, wherein the third receiving module is configured to:
receiving a third input aiming at the editing interface, and determining U electronic devices from the first electronic device and the N second electronic devices, wherein the P electronic devices comprise the N second electronic devices, and U is smaller than N;
the second playing module is configured to:
acquiring a sixth target electronic device, wherein the sixth target electronic device is a device which is included in the first electronic device or the N second electronic devices and is not included in the U electronic devices;
sending the audio channel audio signal allocated to the sixth target electronic device to a fifth target electronic device, where the fifth target electronic device is a device closest to the sixth target electronic device among the U electronic devices;
For each seventh target electronic device of the U electronic devices, playing the received channel audio signal with a speaker of the seventh target electronic device.
15. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the audio playback method of any of claims 1-7.
16. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the audio playback method according to any one of claims 1 to 7.
CN202010690811.4A 2020-07-17 2020-07-17 Audio playing method and device and electronic equipment Active CN111857473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010690811.4A CN111857473B (en) 2020-07-17 2020-07-17 Audio playing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010690811.4A CN111857473B (en) 2020-07-17 2020-07-17 Audio playing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111857473A true CN111857473A (en) 2020-10-30
CN111857473B CN111857473B (en) 2022-01-18

Family

ID=73000485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010690811.4A Active CN111857473B (en) 2020-07-17 2020-07-17 Audio playing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111857473B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312298A (en) * 2020-11-19 2021-02-02 北京小米松果电子有限公司 Audio playing method and device, electronic equipment and storage medium
CN113746982A (en) * 2021-08-25 2021-12-03 维沃移动通信(杭州)有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547245A (en) * 2008-03-25 2009-09-30 中兴通讯股份有限公司 Method for playing multitrack audio file through a mobile phone
CN104464763A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Method and device for processing information
US20160035218A1 (en) * 2004-05-10 2016-02-04 Peter Vincent Boesen Communication Device
CN108319445A (en) * 2018-02-02 2018-07-24 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN108353240A (en) * 2015-08-19 2018-07-31 雅马哈株式会社 Audio system, audio devices and audio devices setting method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160035218A1 (en) * 2004-05-10 2016-02-04 Peter Vincent Boesen Communication Device
CN101547245A (en) * 2008-03-25 2009-09-30 中兴通讯股份有限公司 Method for playing multitrack audio file through a mobile phone
CN104464763A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Method and device for processing information
CN108353240A (en) * 2015-08-19 2018-07-31 雅马哈株式会社 Audio system, audio devices and audio devices setting method
CN108319445A (en) * 2018-02-02 2018-07-24 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312298A (en) * 2020-11-19 2021-02-02 北京小米松果电子有限公司 Audio playing method and device, electronic equipment and storage medium
CN113746982A (en) * 2021-08-25 2021-12-03 维沃移动通信(杭州)有限公司 Audio playing control method and device, electronic equipment and readable storage medium
CN113746982B (en) * 2021-08-25 2023-02-28 维沃移动通信(杭州)有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN111857473B (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US11758329B2 (en) Audio mixing based upon playing device location
US20130324031A1 (en) Dynamic allocation of audio channel for surround sound systems
CN106790940B (en) Recording method, recording playing method, device and terminal
CN103065658A (en) Control method and device of multi-terminal synchronized playing
CN105679345B (en) Audio processing method and electronic equipment
CN109151595B (en) Method for processing video frequency, device, terminal and medium
CN111857473B (en) Audio playing method and device and electronic equipment
CN105354039B (en) Application management method and device
CN105959878B (en) The control method and device of stereo component system
US9843879B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
CN106878915A (en) The control method of playback equipment, device and playback equipment and mobile terminal
CN107301028A (en) A kind of audio data processing method and device based on many people's distance communicatings
US11120808B2 (en) Audio playing method and apparatus, and terminal
CN112286481A (en) Audio output method and electronic equipment
CN104994237A (en) Audio access method, equipment and WIFI headphone
CN106792125A (en) A kind of video broadcasting method and its terminal, system
CN104978981B (en) A kind of music shuffle method and device
CN109104765A (en) A kind of CSI transmission method, device, computer readable storage medium
CN112492506A (en) Audio playing method and device, computer readable storage medium and robot
CN105389118B (en) A kind of switching method and user terminal of audio file
CN114650496A (en) Audio playing method and electronic equipment
CN109348390B (en) Realization method of immersive panoramic acoustic electronic music diffusion system
CN109542388B (en) Multi-channel audio stream output method and related product
CN113746982B (en) Audio playing control method and device, electronic equipment and readable storage medium
WO2016112852A1 (en) Shuffle play method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant