CN113709652A - Audio playing control method and electronic equipment - Google Patents

Audio playing control method and electronic equipment Download PDF

Info

Publication number
CN113709652A
CN113709652A CN202111018118.3A CN202111018118A CN113709652A CN 113709652 A CN113709652 A CN 113709652A CN 202111018118 A CN202111018118 A CN 202111018118A CN 113709652 A CN113709652 A CN 113709652A
Authority
CN
China
Prior art keywords
data stream
audio data
information
audio signal
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111018118.3A
Other languages
Chinese (zh)
Inventor
汪千栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111018118.3A priority Critical patent/CN113709652A/en
Publication of CN113709652A publication Critical patent/CN113709652A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Abstract

The application discloses an audio playing control method and electronic equipment, and belongs to the technical field of communication. The method is applied to the electronic equipment and comprises the following steps: acquiring a first audio signal; obtaining a first audio data stream and a second audio data stream according to the first audio signal; and outputting the first audio data stream through a first loudspeaker built in the electronic equipment, and outputting the second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment.

Description

Audio playing control method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an audio playing control method and electronic equipment.
Background
Electronic devices such as smart phones and tablet computers usually have a speaker built in.
When a user uses the electronic equipment to listen to music and watch videos, the electronic equipment plays corresponding audio signals through the built-in loudspeaker, but the audio playing experience brought by the electronic equipment is poor.
Disclosure of Invention
The embodiment of the application aims to provide an audio playing control method and electronic equipment, and the problem of poor audio playing experience can be solved.
In a first aspect, an embodiment of the present application provides an audio playing control method, where the method is applied to an electronic device, and the method includes: acquiring a first audio signal; obtaining a first audio data stream and a second audio data stream according to the first audio signal; and outputting the first audio data stream through a first loudspeaker built in the electronic equipment, and outputting the second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment.
In a second aspect, an embodiment of the present application provides an electronic device, including: the acquisition module is used for acquiring a first audio signal; the first processing module is used for obtaining a first audio data stream and a second audio data stream according to the first audio signal; and the output module is used for outputting the first audio data stream through a first loudspeaker built in the electronic equipment and outputting the second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment.
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 the embodiment of the application, the electronic equipment obtains a first audio data stream and a second audio data stream according to a first audio signal; and outputting a first audio data stream through a first loudspeaker built in the electronic equipment, and outputting a second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment. In the embodiment, the built-in speaker of the electronic device and the speaker of the first device are used for playing different audio data streams of the same audio signal respectively, so that a stereo sound playing effect of playing the audio signal by multiple speakers can be achieved, and better audio playing experience can be brought.
Drawings
Fig. 1 is a flowchart of an audio playing control method provided in this embodiment;
fig. 2 to 4 are schematic diagrams of user interfaces of the electronic device provided in the present embodiment;
fig. 5 is a block schematic diagram of an electronic device provided in this embodiment;
fig. 6 is a schematic diagram of a hardware structure of another electronic device provided in this embodiment;
fig. 7 is a schematic diagram of a hardware structure of another electronic device provided in this embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
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 will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. 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 the audio playing control method provided by the embodiment of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 1, the audio playing control method provided in this embodiment is applied to an electronic device, and the method may include the following steps S110 to S130:
in step S110, the electronic device acquires a first audio signal.
In detail, the audio playing control method provided in this embodiment is implemented by an electronic device, and specifically, may be implemented by an audio playing control device in the electronic device.
In detail, the electronic device further includes at least one speaker, and the electronic device may be a tablet computer, a smart phone, a notebook computer, a network television, and the like.
In this embodiment, the electronic device is connected to a first device, the first device also includes at least one speaker, and the first device may be a tablet computer, a smart phone, a notebook computer, a network television, or the like.
The number of the first devices connected to the electronic device may be one or more.
In detail, the electronic device and each first device may be connected through a wired or wireless (e.g., WLAN or bluetooth) technology.
In detail, the first audio signal may be an audio signal in an audio/video resource played by the electronic device, or an audio signal sent by the first device.
Based on this, in an embodiment of the present application, in the step S110, the electronic device acquiring the first audio signal may include the following steps S1101 to S1102:
step S1101, in response to a first input, the electronic device establishes a same-screen connection with the first device.
The embodiment can be applied to the same-screen scene, for example, when the mobile phone screen is small and the tablet computer screen is large, the audio and video resources can be played on the tablet computer in the same screen when the audio and video resources in the mobile phone are played, so that a good watching effect is achieved.
Therefore, the user can send a co-screen request through the smart phone, the smart phone can send a first input to the tablet computer based on the co-screen request, and the tablet computer can establish a co-screen connection with the smart phone in response to the first input.
Step S1102, the electronic device receives the first audio signal sent by the first device based on the on-screen connection.
In this step, based on the established on-screen connection, the electronic device may receive the audio signal sent by the first device, and display a corresponding image signal on a display screen of the electronic device, so as to achieve the on-screen playing purpose.
In detail, the electronic equipment and the first equipment are provided with the loudspeakers, the distribution positions of the loudspeakers can bring corresponding influence to the audio playing effect, and the reasonable distribution positions of the loudspeakers can bring the relatively optimal audio playing effect. In this way, the speaker distribution positions can be determined and corresponding suggestions can be made to the user.
Based on this, in an embodiment of the present application, before the electronic device acquires the first audio signal in step S110, the method may further include steps S1001 to S1003 as follows:
in step S1001, the electronic device acquires first location information of a user.
In detail, the reasonable speaker distribution positions are based on the user, so the user positions can be determined first, and the distribution of the speakers can be determined based on the user positions.
In detail, the user position is acquired by the electronic device, and the user position can be acquired generally with the electronic device as a reference point, that is, the default electronic device position is not changed, and the position of the user relative to the electronic device is acquired.
In an embodiment of the present application, to illustrate a possible implementation manner of obtaining the location of the user, the step S1001 of obtaining the first location information of the user by the electronic device may include the following steps S1001a to S1001 b:
in step S1001a, the electronic device acquires a first image.
In this embodiment, a camera (for example, a built-in camera) of the electronic device may be used to take a picture of the user, and the position of the user relative to the electronic device is reflected based on the taken picture.
As shown in fig. 2, the electronic device B can take a picture through a built-in camera. When the user a watches the video through the electronic device B, the user a usually faces the electronic device B, and thus, the captured first image may include a user image. Since the electronic device B is fixed in position, the user image may reflect the relative positional relationship between the user a and the electronic device B.
In step S1001b, the electronic device obtains the first location information according to the first image.
In the step, a user image in the first image can be extracted according to technologies such as face recognition, and the first position information can be obtained according to the user image.
Wherein the first location information comprises one or more of: the distance from the set position, the angle from the set axis.
In detail, the distance from the set position can be obtained by combining the size of the face contour of the user image in the first image according to the preset mapping relationship between the size of the face contour and the distance. The set position may be a position of the electronic device or a position of a camera built in the electronic device.
In detail, the angle deviating from the set axis may be obtained by combining the face orientation of the user image in the first image according to a preset mapping relationship between the face orientation and the angle. The set axis may be a central axis of the electronic device (as shown by the dashed and dotted line in fig. 2).
As shown in fig. 2, the user is facing the electronic device, and the angle in the first position information may be 0. In other embodiments, the angle is generally not 0 if the user is not facing the electronic device.
Step S1002, the electronic device obtains second location information according to the first location information.
In this step, after the position of the user is known, it is equivalent to that the positions of the electronic device and the user are known, that is, the position relationship between the speaker in the electronic device and the user is known, and thus the preferred setting position of the first device can be determined according to the position relationship, and the position of the speaker in the first device is determined.
The position of the first device may also be regarded as the position of the first device relative to the electronic device.
Considering that the number of speakers in the electronic device may be more than one, the number of speakers in the first device may also be more than one, and the location of each speaker in the corresponding device may not be fixed, the location and number of speakers may be combined to determine the second location information accurately.
Based on this, in an embodiment of the present application, in the step S1002, the obtaining, by the electronic device, second location information according to the first location information may include the following step S1002 a:
in step S1002a, the electronic device obtains the second location information according to the set second information, the set third information, and the first location information.
Wherein the second information comprises setting position information of the first loudspeaker in the electronic equipment; the third information includes setting position information of the second speaker in the first device.
In this embodiment, the second location information is determined according to the number of speakers and the setting locations of the speakers in the corresponding devices, and in combination with the locations of the electronic device and the user, so that when the user places the first device, good speaker distribution can be achieved to support an ideal audio playing effect.
It is mentioned above that the user may not be facing the screen of the electronic device, i.e. the angle in the above-mentioned first position information may not be 0, in which case the second position information is preferably determined in combination with the orientation of the user in order to ensure a good audio playing effect.
Based on this, in an embodiment of the application, in the step S1002a, the electronic device obtaining the second position information according to the set second information, the set third information and the first position information may include the following steps S1002a1 to S1002a 2:
step S1002a1, the electronic device determines first connection information between the electronic device and the user according to the first location information.
Preferably, the speakers may be evenly distributed with respect to the user, such as left and right, so that the speaker position distribution can be determined based on the orientation of the user.
In this step, since the user faces the display screen of the electronic device when watching the video, the user's direction can be reflected by the first connection information, which is the information of the connection between the electronic device and the user.
As shown in fig. 2, if the angle in the first position information is 0, the first connection line may be shown by a dashed line in fig. 2.
Step S1002a2, the electronic device obtains the second location information according to the second information, the third information, and the first connection information.
In this step, the second location information is determined based on the connection between the electronic device and the user, in combination with the number and location of the speakers in the electronic device and the number and location of the speakers in the first device. By placing the first device according to the second position information, the plurality of speakers can be well and reasonably distributed relative to the user, and a good audio playing effect can be generated.
In one embodiment of the present application, the second location information includes: at least one of a distance from a set position, an angle from a set axis, and an orientation of the first device.
The set position may be a position of the electronic device or a position of a camera in the electronic device.
Wherein the setting axis may be a central axis of the electronic device (as shown by a dashed and dotted line in fig. 2).
Wherein the orientation of the first device is used to determine the orientation of the speakers in the first device such that the speakers in the first device are preferably oriented towards the user (as shown in fig. 2 and 3) with the first device in a fixed location.
Step S1003, the electronic equipment outputs first information, and the first information is used for prompting the first equipment to be placed according to the second position information.
In this step, the electronic device outputs indication information to instruct the user to place the first device accordingly. The content of this indication may be as shown in fig. 2 or fig. 3. Referring to fig. 2 and fig. 3, the first device placement suggestion determined under different conditions is correspondingly indicated, and the user may correspondingly place the first device according to the indication content.
According to the embodiment, the second position information is determined and the user is instructed to place the first device according to the second position information, so that the loudspeakers in the electronic device and the first device have reasonable distribution positions and form a three-dimensional sound field, and a good audio playing effect is brought.
In step S110, the electronic device obtains a first audio signal, where the first audio signal is an audio signal to be played.
Step S120, the electronic device obtains a first audio data stream and a second audio data stream according to the first audio signal.
For the purpose of multi-speaker playing, in step S120, the electronic device splits the first audio signal to be played into a plurality of audio data streams, so that the audio data streams can be output to the speakers respectively.
In this embodiment, according to the audio signal to be played, a first audio data stream corresponding to the electronic device and a second audio data stream corresponding to the first device may be obtained.
When the number of the loudspeakers in the electronic device and the first device is more than one, the number of the corresponding audio data streams can also be more than one.
For example, if the user connects the tablet computer to the smartphone and the tablet computer executes the audio playing control method, the tablet computer includes two speakers, and the smartphone includes one speaker, then in step S120, two first audio data streams and one second audio data stream may be obtained.
In an embodiment of the present application, in the step S120, the electronic device obtains a first audio data stream and a second audio data stream according to the first audio signal, and the method may include the following steps S1201 to S1202:
in step S1201, the electronic device determines whether the first audio signal is an audio signal obtained based on at least two audio sources.
In detail, the sound source using the audio signal may be a microphone in general.
In detail, the microphone may capture sounds of the surrounding environment, resulting in corresponding audio data streams, one or more of which may constitute an audio signal.
Correspondingly, when an audio signal consists of an audio data stream, the audio signal is usually not splittable.
Correspondingly, when an audio signal is composed of a plurality of audio data streams, the audio signal may be split, for example, the audio signal may be split into at least two audio data streams, and at most, the audio signal may be split into the plurality of audio data streams.
As can be seen from the above, when the first audio signal is an audio signal obtained based on at least two audio sources, it can support multi-channel playing, i.e. splitting, so in step S1201, it can be determined whether the first audio signal is taken from at least two audio sources.
In case that multi-channel playback is not supported, the first audio signal may be played by the first speaker or the second speaker.
In step S1202, the electronic device obtains the first audio data stream and the second audio data stream according to the first audio signal when the first audio signal is an audio signal obtained based on at least two audio sources.
As can be seen from the above, when the first audio signal is taken from at least two audio sources, the audio data streams corresponding to the speakers can be obtained according to the first audio signal.
In detail, the first audio signal may be directly split according to the number of speakers, the number of sound channels in the speakers, and the number of sound sources corresponding to the first audio signal, so as to obtain audio data streams corresponding to the speakers respectively.
In a feasible implementation manner, the first audio signal may be split according to the number of sound sources corresponding to the first audio signal to obtain a plurality of audio data streams having the same number as the sound sources, and then the plurality of audio data streams are combined and allocated according to the number of speakers and the number of sound channels in the speakers to obtain the audio data streams corresponding to the speakers respectively.
For example, assume that the first speaker includes two channels, channel 1 and channel 2, respectively, and the second speaker includes one channel, channel 3.
If the number of the sound sources corresponding to the first audio signal is 2, two audio data streams can be obtained according to the first audio signal, wherein one audio data stream is output to the sound channel 1 or the sound channel 2 of the first speaker, and the other audio data stream is output to the sound channel 3 of the second speaker. I.e., channel 1 and channel 2, there is one channel that is idle.
If the number of the sound sources corresponding to the first audio signal is greater than 2, three audio data streams can be obtained according to the first audio signal, and the three audio data streams are respectively output to the sound channel 1, the sound channel 2 and the sound channel 3.
The present embodiment determines the detachability of the audio signal according to the number of audio frequencies, and can provide support for smooth execution of the audio playback control method.
And step S130, the electronic equipment outputs the first audio data stream through a first loudspeaker built in the electronic equipment, and outputs the second audio data stream through a second loudspeaker in the first equipment.
Wherein the electronic device is communicatively coupled to the first device.
In this step, the first audio data stream may be output to a first speaker in the electronic device, and the second audio data stream may be output to a second speaker in the first device, and the respective audio data streams are converted into sound through the respective speakers and played.
In detail, an audio data stream channel between the electronic device and the first device may be established by WLAN, bluetooth, etc., and the first device outputs a second audio data stream to the second speaker based on the channel.
In this step, the first speaker and the second speaker may output the audio data stream in the audio signal synchronously.
The embodiment supports the playing of the same audio signal based on at least two speakers, so that the emitted sound can still keep natural and pleasant in different directions, and a stereo sound playing effect is achieved.
In detail, the electronic device may pre-establish an audio interaction channel between the electronic device and the first device, so as to implement mutual transmission of audio data streams between the electronic device and the first device.
In this embodiment, the electronic device is connected to the first device, and the electronic device splits the audio signal to be played to obtain audio data streams played by the speakers of the electronic device and the speakers of the first device, so that the speakers play the corresponding audio data streams, thereby achieving an effect that the multiple speakers play the same audio signal together.
Therefore, compared with the method of playing the audio signal only by using the electronic device, the audio signal playing method supported by the embodiment is equivalent to adding a speaker, restoring the spatial position information of each sound source corresponding to the audio signal by using a plurality of speakers, and forming stereo perception by using the sensitivity judgment of human ears on loudness, tone, direction and the like of different sounds, so that the embodiment can play a stereo playing effect.
In addition, the implementation mode does not need to adjust the hardware structure of the electronic equipment, so that the corresponding cost investment is not increased.
In detail, one speaker may comprise at least one channel, and the electronic device outputs an audio data stream to the second speaker, in particular to a corresponding channel in the second speaker.
In an embodiment of the application, in the step S120, the electronic device obtains a first audio data stream and a second audio data stream according to the first audio signal, including: and obtaining the first audio data stream and the second audio data stream according to the set fourth information, the set fifth information, the first position information, the third position information of the first device and the first audio signal.
The fourth information comprises setting position information of the first loudspeaker in the electronic equipment and the number of first channels in the first loudspeaker; the fifth information includes setting position information of the second speaker in the first device, and the number of second channels in the second speaker.
In detail, the electronic device may determine a placement position, an orientation, and the like of the first device based on signals collected by the sensor in the first device.
In this embodiment, the positions and the number of sound channels of each speaker and the position of the user are taken into consideration, so that the audio signal can be reasonably split, and when the audio data streams split in this way are output to the corresponding sound channels, a good playing effect according with the current scene can be achieved.
For example, referring to fig. 2, since the first speaker B1 of the tablet pc B and the second speaker C1 of the smartphone C are respectively located at the left and right sides of the axis (as shown by the dot-dash line in fig. 2) and the distances between the two speakers and the user a are not much different, the sound of the person can be output by the sound channel of the second speaker C1, and the sound of the environment and the music can be output by the first speaker B1.
For another example, referring to fig. 3, since the second speaker C1 of the smartphone C is relatively closer to the user a than the first speaker B1 and the first speaker B2 of the tablet computer B, the first speaker B1 and the first speaker B2 are respectively located at the left and right sides of the axis (as shown by the dotted line in fig. 3), and the second speaker C1 is located on the axis, human voice can be output from the sound channel of the second speaker C1, and environmental and vocal music can be output from the sound channels of the first speaker B1 and the first speaker B2, respectively.
Correspondingly, in step S130, the electronic device outputs the first audio data stream through a first speaker built in the electronic device, and outputs the second audio data stream through a second speaker in the first device, including: and outputting the audio data stream corresponding to the first channel in the first audio data stream through the first channel, and outputting the audio data stream corresponding to the second channel in the second audio data stream through the second channel.
In this embodiment, the loudspeakers comprise at least one channel, and the respective audio data streams are output to the loudspeakers, in particular to each channel in the loudspeakers. Wherein part of the channels in the loudspeakers can be idle without outputting an audio data stream.
Taking the example that the tablet personal computer of the user is connected to the smart phone, in this embodiment, the first audio signal may be split according to the speaker position in the tablet personal computer, the speaker position in the smart phone, the number of sound channels of each speaker, the user position, and the smart phone position, and the audio data streams corresponding to each sound channel are obtained by splitting. Therefore, the corresponding audio data stream is played based on the multi-channel with the specific position, and a good audio playing effect can be achieved.
As can be seen from the above, an embodiment of the present application provides an audio playing control method, where an electronic device may obtain a first audio data stream and a second audio data stream according to a first audio signal; and outputting a first audio data stream through a first loudspeaker built in the electronic equipment, and outputting a second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment. In the embodiment, the built-in speaker of the electronic device and the speaker of the first device are used for playing different audio data streams of the same audio signal respectively, so that a stereo sound playing effect of playing the audio signal by multiple speakers can be achieved, and better audio playing experience can be brought.
Different from the implementation mode of adding a loudspeaker in the electronic equipment to enhance the audio playing effect, the audio playing control method provided by the embodiment can enhance the audio playing effect without adding a loudspeaker in the electronic equipment, can meet the higher and higher audio and video experience requirements of people on electronic products such as mobile phones and tablet computers, and can avoid the problems of cost increase and volume increase of the electronic equipment due to the addition of the loudspeaker.
In one embodiment of the present application, the method may further include: in response to the first input, a first control is displayed. Wherein the first control is for a user to adjust parameters of the first speaker and the second speaker.
In this embodiment, the user may request to display the first control at any time during the audio playback. The electronic device may display a first control on the display screen in response to an input by the user requesting display of the first control for the user to adjust the speaker parameter.
In detail, at least one channel is usually included in the speaker, and the adjusting of the speaker parameters may specifically be adjusting the parameters of the channel.
Referring to fig. 4, a schematic diagram of displaying a first control on a tablet computer is shown. In fig. 4, a symbol B indicates a tablet computer, and a symbol B1 indicates one speaker of the tablet computer.
For example, a tablet pc is connected to a smartphone, and the two are connected to have three channels, so as shown in fig. 4, parameters for each channel can be respectively displayed in a display area of the first control, so that a user can adjust the channel parameters as needed. For example, the volume, tone, etc. corresponding to the sound channel may be adjusted.
After the user adjusts according to the requirement, the loudspeaker plays the sound according with the sound channel parameter through the corresponding sound channel according to the adjusted sound channel parameter.
In this embodiment, by displaying the first control, a user can be supported to adjust parameters of each channel as needed, so that an audio playing effect meets the user requirement.
Based on the audio playing control method provided by the embodiment, for example, a user plays a video on a tablet personal computer through a mobile phone, the sound channels of speakers in the mobile phone and the tablet personal computer can be used as a plurality of audio sources to be output in a coordinated manner, and specifically, the stereo playing effect based on the mobile phone and the tablet personal computer can be realized by coordinating the output of the plurality of audio sources, the automatic detection of the audio sources, the position determination and prompt of the audio sources, the automatic detection of the sound channels, the audio channel adjustment and other operations.
The audio playing control method provided by this embodiment supports outputting a common-frequency sound source through the combination of a tablet computer and a mobile phone when playing audio, specifically splitting an audio signal based on multi-channel of multiple speakers, and outputting the audio signal to each device synchronously, so that it is possible to realize a stereo sound effect scene by using a single speaker device based on the cooperative playing of audio data streams of each channel between the two devices. The embodiment realizes the stereo sound effect operation mode of the cooperation of the tablet personal computer and the mobile phone, and solves the problem that the tablet personal computer and the mobile phone only support single sound channel, so that a user cannot experience the stereo sound effect.
It should be noted that, in the audio playback control method provided in the embodiment of the present application, the execution main body may be an electronic device, or a control module used for executing the audio playback control method in the electronic device. The embodiment of the present application takes an example of an electronic device executing an audio playing control method, and illustrates the electronic device provided in the embodiment of the present application.
As shown in fig. 5, the present embodiment provides an electronic device 200, which may include an obtaining module 210, a first processing module 220, and an output module 230.
The obtaining module 210 is configured to obtain a first audio signal. The first processing module 220 is configured to obtain a first audio data stream and a second audio data stream according to the first audio signal. The output module 230 is configured to output the first audio data stream through a first speaker built in the electronic device 200, and output the second audio data stream through a second speaker in a first device, wherein the electronic device 200 is communicatively coupled to the first device.
In the embodiment of the application, the electronic equipment obtains a first audio data stream and a second audio data stream according to a first audio signal; and outputting a first audio data stream through a first loudspeaker built in the electronic equipment, and outputting a second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment. In the embodiment, the built-in speaker of the electronic device and the speaker of the first device are used for playing different audio data streams of the same audio signal respectively, so that a stereo sound playing effect of playing the audio signal by multiple speakers can be achieved, and better audio playing experience can be brought.
In an embodiment of the present application, the electronic device 200 further includes: a second processing module, configured to obtain first location information of the user before the obtaining module 210 obtains the first audio signal; obtaining second position information according to the first position information; and outputting first information, wherein the first information is used for prompting the first equipment to be placed according to the second position information.
In an embodiment of the present application, the second processing module is configured to acquire a first image; obtaining the first position information according to the first image; wherein the first location information comprises one or more of: the distance from the set position, the angle from the set axis.
In an embodiment of the application, the second processing module is configured to obtain the second location information according to set second information, set third information, and the first location information; wherein the second information includes setting position information of the first speaker in the electronic apparatus 200; the third information includes setting position information of the second speaker in the first device.
In an embodiment of the present application, the second processing module is configured to determine first connection information between the electronic device 200 and the user according to the first location information; and obtaining the second position information according to the second information, the third information and the first connecting line information.
In one embodiment of the present application, the second location information includes: at least one of a distance from a set position, an angle from a set axis, and an orientation of the first device.
In an embodiment of the present application, the first processing module 220 is configured to obtain the first audio data stream and the second audio data stream according to set fourth information, set fifth information, the first position information, third position information of the first device, and the first audio signal; wherein the fourth information includes setting position information of the first speaker in the electronic device 200, the number of first channels in the first speaker; the fifth information includes setting position information of the second speaker in the first device, and the number of second channels in the second speaker.
The output module 230 is configured to output an audio data stream corresponding to the first channel in the first audio data stream through the first channel, and output an audio data stream corresponding to the second channel in the second audio data stream through the second channel.
In an embodiment of the present application, the obtaining module 210 is configured to establish a same-screen connection with the first device in response to a first input; and receiving the first audio signal sent by the first equipment based on the on-screen connection.
In an embodiment of the present application, the first processing module 220 is configured to determine whether the first audio signal is an audio signal obtained based on at least two audio sources; and under the condition that the first audio signal is an audio signal obtained based on at least two sound sources, obtaining the first audio data stream and the second audio data stream according to the first audio signal.
In an embodiment of the present application, the electronic device 200 further includes: a third processing module for displaying the first control in response to the first input; wherein the first control is for a user to adjust parameters of the first speaker and the second speaker.
The electronic device in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The electronic device may be a mobile electronic device or a non-mobile electronic device. 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 self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The electronic device in the embodiment of the present application may be an electronic device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The electronic device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 310, a memory 320, and a program or an instruction stored in the memory 320 and executable on the processor 310, where the program or the instruction is executed by the processor 310 to implement each process of the above-mentioned audio playing control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic hardware structure diagram of an electronic device 1000 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. 7 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.
Wherein, the processor 1010 is configured to obtain a first audio signal; obtaining a first audio data stream and a second audio data stream according to the first audio signal; the first audio data stream is output through a first speaker built into the electronic device 1000 and the second audio data stream is output through a second speaker in the first device, wherein the electronic device 1000 is communicatively coupled to the first device.
In the embodiment of the application, the electronic equipment obtains a first audio data stream and a second audio data stream according to a first audio signal; the method includes outputting a first audio data stream via a built-in first speaker and outputting a second audio data stream via a second speaker in a first device, wherein the electronic device is communicatively coupled to the first device. In the embodiment, the built-in speaker of the electronic device and the speaker of the first device are used for playing different audio data streams of the same audio signal respectively, so that a stereo sound playing effect of playing the audio signal by multiple speakers can be achieved, and better audio playing experience can be brought.
Optionally, the processor 1010 is configured to obtain first position information of the user before the obtaining of the first audio signal; obtaining second position information according to the first position information; and outputting first information, wherein the first information is used for prompting the first equipment to be placed according to the second position information.
Optionally, a processor 1010 for acquiring a first image; obtaining the first position information according to the first image; wherein the first location information comprises one or more of: the distance from the set position, the angle from the set axis.
Optionally, the processor 1010 is configured to obtain the second position information according to the set second information, the set third information, and the first position information; wherein the second information includes setting position information of the first speaker in the electronic device 1000; the third information includes setting position information of the second speaker in the first device.
Optionally, the processor 1010 is configured to determine first connection information between the electronic device 1000 and the user according to the first position information; and obtaining the second position information according to the second information, the third information and the first connecting line information.
Optionally, the second location information comprises: at least one of a distance from a set position, an angle from a set axis, and an orientation of the first device.
Optionally, the processor 1010 is configured to obtain the first audio data stream and the second audio data stream according to set fourth information, set fifth information, the first location information, the third location information of the first device, and the first audio signal; wherein the fourth information includes setting position information of the first speaker in the electronic device 1000, and the number of first channels in the first speaker; the fifth information includes setting position information of the second speaker in the first device, and the number of second channels in the second speaker; and outputting the audio data stream corresponding to the first channel in the first audio data stream through the first channel, and outputting the audio data stream corresponding to the second channel in the second audio data stream through the second channel.
Optionally, the processor 1010 is configured to establish a co-screen connection with the first device in response to a first input; and receiving the first audio signal sent by the first equipment based on the on-screen connection.
Optionally, the processor 1010 is configured to determine whether the first audio signal is an audio signal obtained based on at least two audio sources; and under the condition that the first audio signal is an audio signal obtained based on at least two sound sources, obtaining the first audio data stream and the second audio data stream according to the first audio signal.
Optionally, a processor 1010 configured to display a first control in response to a first input; wherein the first control is for a user to adjust parameters of the first speaker and the second speaker.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
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 control 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 control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
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 computer 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, 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 (10)

1. An audio playing control method is applied to electronic equipment, and the method comprises the following steps:
acquiring a first audio signal;
obtaining a first audio data stream and a second audio data stream according to the first audio signal;
and outputting the first audio data stream through a first loudspeaker built in the electronic equipment, and outputting the second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment.
2. The method of claim 1, wherein prior to said obtaining the first audio signal, the method further comprises:
acquiring first position information of a user;
obtaining second position information according to the first position information;
and outputting first information, wherein the first information is used for prompting the first equipment to be placed according to the second position information.
3. The method of claim 2, wherein the obtaining the first location information of the user comprises:
acquiring a first image;
obtaining the first position information according to the first image; wherein the first location information comprises one or more of:
the distance from the set position, the angle from the set axis.
4. The method of claim 2, wherein obtaining second location information from the first location information comprises:
obtaining second position information according to the set second information, the set third information and the first position information;
wherein the second information comprises setting position information of the first loudspeaker in the electronic equipment;
the third information includes setting position information of the second speaker in the first device.
5. The method according to claim 4, wherein the obtaining the second position information according to the set second information, the set third information and the first position information comprises:
determining first connection information between the electronic equipment and the user according to the first position information;
and obtaining the second position information according to the second information, the third information and the first connecting line information.
6. The method of claim 2, wherein the second location information comprises: at least one of a distance from a set position, an angle from a set axis, and an orientation of the first device.
7. The method of claim 2, wherein deriving a first audio data stream and a second audio data stream from the first audio signal comprises:
obtaining the first audio data stream and the second audio data stream according to the set fourth information, the set fifth information, the first position information, the third position information of the first device and the first audio signal;
the fourth information comprises setting position information of the first loudspeaker in the electronic equipment and the number of first channels in the first loudspeaker; the fifth information includes setting position information of the second speaker in the first device, and the number of second channels in the second speaker;
the outputting the first audio data stream through a first speaker built in the electronic device and the outputting the second audio data stream through a second speaker in the first device includes:
and outputting the audio data stream corresponding to the first channel in the first audio data stream through the first channel, and outputting the audio data stream corresponding to the second channel in the second audio data stream through the second channel.
8. The method of claim 1, wherein the obtaining the first audio signal comprises:
establishing a same-screen connection with the first device in response to a first input;
and receiving the first audio signal sent by the first equipment based on the on-screen connection.
9. The method of claim 1, wherein deriving a first audio data stream and a second audio data stream from the first audio signal comprises:
determining whether the first audio signal is an audio signal obtained based on at least two sound sources;
and under the condition that the first audio signal is an audio signal obtained based on at least two sound sources, obtaining the first audio data stream and the second audio data stream according to the first audio signal.
10. An electronic device, comprising:
the acquisition module is used for acquiring a first audio signal;
the first processing module is used for obtaining a first audio data stream and a second audio data stream according to the first audio signal; and the number of the first and second groups,
and the output module is used for outputting the first audio data stream through a first loudspeaker built in the electronic equipment and outputting the second audio data stream through a second loudspeaker in the first equipment, wherein the electronic equipment is in communication connection with the first equipment.
CN202111018118.3A 2021-08-31 2021-08-31 Audio playing control method and electronic equipment Pending CN113709652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111018118.3A CN113709652A (en) 2021-08-31 2021-08-31 Audio playing control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111018118.3A CN113709652A (en) 2021-08-31 2021-08-31 Audio playing control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN113709652A true CN113709652A (en) 2021-11-26

Family

ID=78658508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111018118.3A Pending CN113709652A (en) 2021-08-31 2021-08-31 Audio playing control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113709652A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929691A (en) * 2014-03-20 2014-07-16 联想(北京)有限公司 Information processing method and electronic equipment
CN108419183A (en) * 2018-03-29 2018-08-17 联想(北京)有限公司 The audio-frequency processing method and electronic equipment of a kind of electronic equipment
CN109996167A (en) * 2017-12-31 2019-07-09 华为技术有限公司 A kind of multiple terminals collaboration plays the method and terminal of audio file
US20190387344A1 (en) * 2019-07-15 2019-12-19 Lg Electronics Inc. Surround audio device and method of providing multi-channel surround audio signal to a plurality of electronic devices including a speaker
CN111641916A (en) * 2020-04-29 2020-09-08 维沃移动通信有限公司 Audio sharing method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929691A (en) * 2014-03-20 2014-07-16 联想(北京)有限公司 Information processing method and electronic equipment
CN109996167A (en) * 2017-12-31 2019-07-09 华为技术有限公司 A kind of multiple terminals collaboration plays the method and terminal of audio file
CN108419183A (en) * 2018-03-29 2018-08-17 联想(北京)有限公司 The audio-frequency processing method and electronic equipment of a kind of electronic equipment
US20190387344A1 (en) * 2019-07-15 2019-12-19 Lg Electronics Inc. Surround audio device and method of providing multi-channel surround audio signal to a plurality of electronic devices including a speaker
CN111641916A (en) * 2020-04-29 2020-09-08 维沃移动通信有限公司 Audio sharing method and electronic equipment

Similar Documents

Publication Publication Date Title
WO2021008055A1 (en) Video synthesis method and apparatus, and terminal and storage medium
KR102183413B1 (en) Method and system for presenting content using a plurality of electronic devices
US20170047076A1 (en) Method and device for achieving object audio recording and electronic apparatus
US10834503B2 (en) Recording method, recording play method, apparatuses, and terminals
CN111641916B (en) Audio sharing method and electronic equipment
CN110324689B (en) Audio and video synchronous playing method, device, terminal and storage medium
CN111142838B (en) Audio playing method, device, computer equipment and storage medium
KR20220068894A (en) Method and apparatus for playing audio, electronic device, and storage medium
US10425758B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
CN110958537A (en) Intelligent sound box and use method thereof
CN112165648B (en) Audio playing method, related device, equipment and storage medium
CN113890932A (en) Audio control method and system and electronic equipment
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
CN112118477A (en) Virtual gift display method, device, equipment and storage medium
WO2023125847A1 (en) Audio processing method and system, and related apparatuses
WO2022135527A1 (en) Video recording method and electronic device
CN110958464A (en) Live broadcast data processing method and device, server, terminal and storage medium
CN111294607B (en) Live broadcast interaction method and device, server and terminal
CN114422935B (en) Audio processing method, terminal and computer readable storage medium
CN110798327A (en) Message processing method, device and storage medium
CN111953852B (en) Call record generation method, device, terminal and storage medium
CN112788489B (en) Control method and device and electronic equipment
CN113709652A (en) Audio playing control method and electronic equipment
CN114650496A (en) Audio playing method and electronic equipment
CN113992786A (en) Audio playing 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