CN111641916A - Audio sharing method and electronic device - Google Patents

Audio sharing method and electronic device Download PDF

Info

Publication number
CN111641916A
CN111641916A CN202010359400.7A CN202010359400A CN111641916A CN 111641916 A CN111641916 A CN 111641916A CN 202010359400 A CN202010359400 A CN 202010359400A CN 111641916 A CN111641916 A CN 111641916A
Authority
CN
China
Prior art keywords
electronic device
audio
information
audio file
electronic
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
CN202010359400.7A
Other languages
Chinese (zh)
Other versions
CN111641916B (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 CN202010359400.7A priority Critical patent/CN111641916B/en
Publication of CN111641916A publication Critical patent/CN111641916A/en
Application granted granted Critical
Publication of CN111641916B publication Critical patent/CN111641916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Stereophonic System (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本发明实施例提供了一种音频共享方法及电子设备。所述方法应用于第一电子设备,所述方法包括:确定与所述第一电子设备建立通信连接的至少两个第二电子设备;通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件。本发明实施例解决了现有技术中,电子设备在播放音频时,受限于其本身的性能参数,在播放时难以提供较高的播放效果的问题。

Figure 202010359400

Embodiments of the present invention provide an audio sharing method and an electronic device. The method is applied to a first electronic device, and the method includes: determining at least two second electronic devices that establish a communication connection with the first electronic device; sending the communication to each of the second electronic devices through the communication connection audio file, and control the second electronic device to play the audio file. The embodiment of the present invention solves the problem in the prior art that when an electronic device plays audio, it is limited by its own performance parameters, and it is difficult to provide a higher playing effect during playing.

Figure 202010359400

Description

音频共享方法及电子设备Audio sharing method and electronic device

技术领域technical field

本发明涉及移动通信技术领域,尤其涉及一种音频共享方法及电子设备。The present invention relates to the technical field of mobile communication, and in particular, to an audio sharing method and an electronic device.

背景技术Background technique

随着移动通信技术的迅速发展,以智能手机为首的电子设备已成为人们生活中各方面不可或缺的工具。电子设备的各种应用程序(Application,APP)的功能也逐渐完善,不再只是单纯地起到通信作用,较多的是将电子设备作为便携媒体设备,通过连接互联网进行观看视频、阅读新闻、收听音乐等多媒体操作。With the rapid development of mobile communication technology, electronic devices such as smart phones have become indispensable tools in all aspects of people's lives. The functions of various application programs (Application, APP) of electronic devices have gradually improved. They no longer simply play a role in communication. More electronic devices are used as portable media devices to watch videos, read news, etc. by connecting to the Internet. Multimedia operations such as listening to music.

以多媒体文件中的音频文件为例,音乐作为大众娱乐的主要方式之一,在用户的生活中占据着重要的地位,而电子设备当前则是用户收听音乐的一个重要的工具。电子设备在播放音频时,受限于其本身的性能参数,在播放时难以提供较高的播放效果。为了提升播放效果,可以通过电子设备连接音箱等方式,然而音响对场地的要求较高,且与音响连接的电子设备需与音响保持有线连接或无线连接,对于电子设备来说,操作较为不便。Taking audio files in multimedia files as an example, music, as one of the main ways of mass entertainment, occupies an important position in users' lives, and electronic devices are currently an important tool for users to listen to music. When an electronic device plays audio, it is limited by its own performance parameters, and it is difficult to provide a high playback effect during playback. In order to improve the playback effect, it is possible to connect speakers through electronic devices. However, the audio has high requirements on the venue, and the electronic devices connected to the audio need to be wired or wirelessly connected to the audio, which is inconvenient for electronic devices to operate.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种音频共享方法及电子设备,以解决现有技术中,电子设备在播放音频时,受限于其本身的性能参数,在播放时难以提供较高的播放效果的问题。Embodiments of the present invention provide an audio sharing method and an electronic device to solve the problem in the prior art that when an electronic device plays audio, it is difficult to provide a higher playback effect due to its own performance parameters.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

第一方面,本发明实施例提供了一种音频共享方法,所述方法包括:In a first aspect, an embodiment of the present invention provides an audio sharing method, the method comprising:

确定与所述第一电子设备建立通信连接的至少两个第二电子设备;determining at least two second electronic devices that establish a communication connection with the first electronic device;

通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件。Send an audio file to each of the second electronic devices through the communication connection, and control the second electronic device to play the audio file.

第二方面,本发明实施例还提供了一种电子设备,所述电子设备为第一电子设备,所述电子设备包括:In a second aspect, an embodiment of the present invention further provides an electronic device, the electronic device is a first electronic device, and the electronic device includes:

确定模块,用于确定与所述第一电子设备建立通信连接的至少两个第二电子设备;a determining module, configured to determine at least two second electronic devices that establish a communication connection with the first electronic device;

控制模块,用于通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件。A control module, configured to send an audio file to each of the second electronic devices through the communication connection, and control the second electronic device to play the audio file.

第三方面,本发明实施例还提供了一种电子设备,该电子设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的音频共享方法中的步骤。In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program Implement the steps in the audio sharing method described above.

第四方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的音频共享方法中的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the audio sharing method described above. step.

在本发明实施例中,确定与所述第一电子设备建立通信连接的至少两个第二电子设备;通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件,不受场地以及设备本身性能参数的限制,实现多个音频设备同时播放所述音频文件,提升音频播放音量以及播放效果。In this embodiment of the present invention, at least two second electronic devices that establish a communication connection with the first electronic device are determined; an audio file is sent to each of the second electronic devices through the communication connection, and the first electronic device is controlled The second electronic device plays the audio file, and is not limited by the venue and the performance parameters of the device itself, enabling multiple audio devices to play the audio file at the same time, improving the audio playback volume and playback effect.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.

图1表示本发明实施例提供的音频共享方法的流程图之一;FIG. 1 shows one of the flowcharts of the audio sharing method provided by an embodiment of the present invention;

图2表示本发明实施例的第一示例的示意图;FIG. 2 shows a schematic diagram of a first example of an embodiment of the present invention;

图3表示本发明实施例提供的音频共享方法的流程图之二;FIG. 3 shows the second flowchart of the audio sharing method provided by the embodiment of the present invention;

图4表示本发明实施例提供的音频共享方法的流程图之三;FIG. 4 shows the third flowchart of the audio sharing method provided by the embodiment of the present invention;

图5表示本发明实施例提供的音频共享方法的流程图之四;FIG. 5 shows the fourth flowchart of the audio sharing method provided by the embodiment of the present invention;

图6表示本发明的实施例提供的电子设备的框图之一;FIG. 6 shows one of the block diagrams of the electronic device provided by the embodiment of the present invention;

图7表示本发明的实施例提供的电子设备的框图之二。FIG. 7 shows the second block diagram of the electronic device provided by the embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It is to be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic associated with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence numbers of the following processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, rather than the implementation of the present invention The implementation of the examples constitutes no limitation.

此外,本发明实施例中,A和/或B,表示A和B中的至少一种。In addition, in the embodiments of the present invention, A and/or B represent at least one of A and B.

参见图1,本发明一实施例提供了一种音频共享方法,应用于第一电子设备,所述第一电子设备包括各种手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的移动台(Mobile Station,MS),终端设备(TerminalDevice)等等。Referring to FIG. 1, an embodiment of the present invention provides an audio sharing method, which is applied to a first electronic device, where the first electronic device includes various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or connected to a wireless modem other processing equipment, as well as various forms of mobile stations (Mobile Station, MS), terminal equipment (TerminalDevice) and so on.

所述方法包括:The method includes:

步骤101,确定与所述第一电子设备建立通信连接的至少两个第二电子设备。Step 101: Determine at least two second electronic devices that establish a communication connection with the first electronic device.

可选地,第一电子设备预先与至少两个第二电子设备建立通信连接,还可将所有第二电子设备组成一共享群组,用于共享音频文件;比如,第一电子设备在与第二电子设备建立通信连接的过程中临时建立共享群组。比如当第一电子设备的用户需要在较为开阔的场地播放电子设备内的目标音频时,目标音频如歌曲、录音时,受限于电子设备的音量或其他硬件参数,播放效果有限;此时第一电子设备的用户可使用音频共享功能,与至少两个第二电子设备建立通信连接,以第一电子设备为主设备,建立共享群组,并添加多个第二电子设备作为辅设备。Optionally, the first electronic device establishes a communication connection with at least two second electronic devices in advance, and all the second electronic devices may also be formed into a sharing group for sharing audio files; During the process of establishing the communication connection between the two electronic devices, a sharing group is temporarily established. For example, when the user of the first electronic device needs to play the target audio in the electronic device in a relatively open field, the target audio, such as songs and recordings, is limited by the volume or other hardware parameters of the electronic device, and the playback effect is limited; A user of an electronic device can use the audio sharing function to establish communication connections with at least two second electronic devices, use the first electronic device as the primary device, establish a sharing group, and add multiple second electronic devices as secondary devices.

第一电子设备需要共享音频文件时,确定与所述第一电子设备建立通信连接的至少两个第二电子设备,该通信连接可以是两个设备之间的点对点连接,或通过其他通信服务器进行连接等,本发明实施例对通信连接的具体方式不作具体限定。例如,通信连接可以是近场通信(Near Field Communication,NFC)连接或蓝牙连接;以NFC连接为例,NFC是在非接触式射频识别技术的基础上,结合无线互连技术研发而成的通信技术。NFC技术主要通过电磁场的无线电波进行短距离通信。第一电子设备通过NFC(或蓝牙等方式)与至少两个第二电子设备建立通信连接,比如,第一电子设备接收到向多个第二电子设备共享音频文件的指令或通过群组播放音频文件的指令,第一电子设备启动NFC模块,向在所述NFC模块覆盖范围内的第二电子设备建立通信连接;When the first electronic device needs to share an audio file, determine at least two second electronic devices that establish a communication connection with the first electronic device, and the communication connection may be a point-to-point connection between the two devices, or through other communication servers. connection, etc., the embodiment of the present invention does not specifically limit the specific manner of the communication connection. For example, the communication connection can be a near field communication (Near Field Communication, NFC) connection or a Bluetooth connection; taking NFC connection as an example, NFC is a communication developed based on contactless radio frequency identification technology combined with wireless interconnection technology technology. NFC technology mainly conducts short-distance communication through radio waves of electromagnetic fields. The first electronic device establishes a communication connection with at least two second electronic devices through NFC (or Bluetooth, etc.), for example, the first electronic device receives an instruction to share audio files with multiple second electronic devices or plays audio through a group The instruction of the file, the first electronic device starts the NFC module, and establishes a communication connection with the second electronic device within the coverage of the NFC module;

此过程中,第二电子设备需开启其NFC(或蓝牙等方式)功能,第一电子设备方可检测到该第二电子设备,与第二电子设备建立通信连接。During this process, the second electronic device needs to turn on its NFC (or Bluetooth, etc.) function, so that the first electronic device can detect the second electronic device and establish a communication connection with the second electronic device.

步骤102,通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件。Step 102: Send an audio file to each of the second electronic devices through the communication connection, and control the second electronic device to play the audio file.

其中,通过所述通信连接向每个第二电子设备发送音频文件,音频文件即被分享的目标音频文件,所述音频文件可以是音乐文件,或其他多媒体文件中的音频部分;可选地,可以向每个第二电子设备发送相同的文件,然后控制所有的第二电子设备与所述第一电子设备共同播放所有音频文件,实现多个电子设备同时播放,提升播放的音量以及播放效果;还可每个第二电子设备对应音频文件的不同部分,比如不同声道部分,不同音源部分,本发明实施例中,音源指发声的单个设备或人物、动物等声音源头,将不同音频文件的不同部分分别发送给不同的第二电子设备,使每个第二电子设备播放不同的音频部分,实现较为立体或环绕声等高阶的音频播放效果。Wherein, the audio file is sent to each second electronic device through the communication connection, and the audio file is the target audio file to be shared, and the audio file can be a music file or an audio part in other multimedia files; optionally, The same file can be sent to each second electronic device, and then all the second electronic devices are controlled to play all audio files together with the first electronic device, so as to realize simultaneous playback of multiple electronic devices, and improve the volume and playback effect of playback; Each second electronic device can also correspond to different parts of the audio file, such as different channel parts and different sound source parts. In this embodiment of the present invention, the sound source refers to a single device or sound source such as a character or animal, and the Different parts are respectively sent to different second electronic devices, so that each second electronic device plays different audio parts, so as to achieve higher-level audio playback effects such as stereo or surround sound.

本发明实施例中,确定与所述第一电子设备建立通信连接的至少两个第二电子设备;通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件,不受场地以及设备本身性能参数的限制,实现多个音频设备同时播放所述音频文件,提升音频播放音量以及播放效果。本发明实施例解决了现有技术中,电子设备在播放音频时,受限于其本身的性能参数,在播放时难以提供较高的播放效果的问题。In this embodiment of the present invention, at least two second electronic devices that establish a communication connection with the first electronic device are determined; an audio file is sent to each of the second electronic devices through the communication connection, and the second electronic device is controlled The electronic device plays the audio file, and is not limited by the venue and the performance parameters of the device itself, enabling multiple audio devices to play the audio file at the same time, improving the audio playback volume and playback effect. The embodiment of the present invention solves the problem that in the prior art, when an electronic device plays audio, it is limited by its own performance parameters, and it is difficult to provide a higher playing effect during playing.

可选地,本发明实施例中,所述确定与所述第一电子设备建立通信连接的至少两个第二电子设备步骤之前,所述方法包括:Optionally, in this embodiment of the present invention, before the step of determining at least two second electronic devices that establish a communication connection with the first electronic device, the method includes:

建立共享群组。Create a sharing group.

作为第一示例,参见图2,图2所示为第一电子设备建立共享群组的过程中,第一电子设备的显示界面;与第二电子设备建立通信连接的过程中,第一电子设备启动NFC模块,等待第二电子设备加入,其中,A表示第一电子设备,B、C、D分别表示多个第二电子设备;在预设的加入时限内,共有3个第二电子设备加入,组成共享群组。As a first example, referring to FIG. 2, FIG. 2 shows the display interface of the first electronic device in the process of establishing a sharing group by the first electronic device; in the process of establishing a communication connection with the second electronic device, the first electronic device Start the NFC module and wait for the second electronic device to join, where A represents the first electronic device, and B, C, and D respectively represent multiple second electronic devices; within the preset joining time limit, a total of 3 second electronic devices have joined to form a sharing group.

所述建立共享群组的步骤,包括:The step of establishing a sharing group includes:

接收所述第二电子设备发送的群组加入请求;receiving a group join request sent by the second electronic device;

响应于所述群组加入请求,根据预设验证规则,对所述第二电子设备进行验证;In response to the group joining request, verifying the second electronic device according to a preset verification rule;

若验证通过,将所述第二电子设备加入共享群组。If the verification is passed, the second electronic device is added to the sharing group.

其中,第一电子设备在启动音频共享功能之后,可主动向周边的电子设备发送加入共享群组的邀请;其他电子设备打开共享音频功能,搜索并向第一电子设备发送群组假如请求,请求加入第一电子设备作为主设备的共享群组;第一电子设备在接收到群组共享请求后,可以根据预设验证规则,对群组共享请求进行验证,并在验证通过后,将所述第二电子设备加入所述共享群组,以确保在共享群组内共享音频文件的过程中的文件传输的安全性。Wherein, after the first electronic device starts the audio sharing function, it can actively send an invitation to join the sharing group to the surrounding electronic devices; other electronic devices turn on the sharing audio function, search for and send the group if request to the first electronic device. Join the sharing group with the first electronic device as the main device; after receiving the group sharing request, the first electronic device can verify the group sharing request according to the preset verification rules, and after the verification is passed, the The second electronic device joins the sharing group to ensure the security of file transmission in the process of sharing audio files within the sharing group.

进一步地,验证方式可以是密码验证或者图像验证。以图像验证为例,第二电子设备可以向第一电子设备发送第二电子设备的用户面部图像,第一电子设备通过预先存储的图像,对每个第二电子设备的用户面部图像进行验证;或者第一电子设备直接通过摄像头采集第二电子设备的用户的面部图像,进行验证。此外,验证的过程还可设置第二电子设备也对第一电子设备进行验证,比如,获取第一电子设备用户的面部图像,与第二电子设备内存储的图像进行比对等,实现双向验证。Further, the verification method may be password verification or image verification. Taking image verification as an example, the second electronic device can send the user facial image of the second electronic device to the first electronic device, and the first electronic device verifies the user facial image of each second electronic device through a pre-stored image; Or the first electronic device directly collects the facial image of the user of the second electronic device through the camera for verification. In addition, in the verification process, the second electronic device can also be set to verify the first electronic device. For example, the facial image of the user of the first electronic device is obtained and compared with the image stored in the second electronic device to realize two-way verification. .

参见图3,本发明又一实施例提供了一种音频共享方法,应用于第一电子设备,所述方法包括:Referring to FIG. 3, another embodiment of the present invention provides an audio sharing method, which is applied to a first electronic device, and the method includes:

步骤301,确定与所述第一电子设备建立通信连接的至少两个第二电子设备。Step 301: Determine at least two second electronic devices that establish a communication connection with the first electronic device.

其中,当第一电子设备的用户需要在较为开阔的场地播放电子设备内的目标音频(歌曲、录音)时,受限于电子设备的音量或其他硬件参数,播放效果有限;此时第一电子设备的用户可使用音频共享功能,与至少两个第二电子设备建立通信连接,以第一电子设备为主设备,建立共享群组,并添加多个第二电子设备作为辅设备。Wherein, when the user of the first electronic device needs to play the target audio (song, recording) in the electronic device in a relatively open place, the playback effect is limited due to the volume or other hardware parameters of the electronic device; The user of the device can use the audio sharing function to establish communication connections with at least two second electronic devices, use the first electronic device as the main device, establish a sharing group, and add multiple second electronic devices as auxiliary devices.

步骤302,获取所述第二电子设备的扬声器参数信息。Step 302: Acquire speaker parameter information of the second electronic device.

扬声器参数信息包括硬件信息以及声效信息等参数;硬件信息比如包括单扬声器或双扬声器等硬件参数,或者布设在第二电子设备的位置,比如屏幕长度方向、宽度方向、背面等,用于第一电子设备排布所述第二电子设备的位置。声效信息包括声道类型等参数,具体地,声道(Sound Channel)是指声音在录制或播放时在不同空间位置采集或回放的相互独立的音频信号。声道类型包括单声道(例如左声道、右声道)、双声道以及多声道(多声道例如立体声)等类型。The speaker parameter information includes parameters such as hardware information and sound effect information; for example, the hardware information includes hardware parameters such as single speaker or dual speakers, or is located in the position of the second electronic device, such as the screen length direction, width direction, back, etc., for the first The electronic device arranges the position of the second electronic device. The sound effect information includes parameters such as channel type. Specifically, a sound channel (Sound Channel) refers to mutually independent audio signals collected or played back at different spatial positions during sound recording or playback. Channel types include mono (eg, left, right), dual, and multi-channel (multi-channel, eg, stereo).

步骤303,在所述音频文件以目标音效播放的情况下,根据所述目标音效和每个所述第二电子设备的所述扬声器参数信息,确定每个所述第二电子设备的第一位置信息。Step 303, when the audio file is played with the target sound effect, determine the first position of each of the second electronic devices according to the target sound effect and the speaker parameter information of each of the second electronic devices information.

所述第一位置信息为播放所述音频文件的第二电子设备与所述第一电子设备之间的相对位置。若所述音频文件需要以目标音效播放,则电子设备可根据目标音效以及每个所述第二电子设备的所述扬声器参数信息,确定所述第二电子设备应布局的位置;比如目标音效要求每个播放设备应具备哪些扬声器参数,则选择符合目标音效要求的第二电子设备,并根据目标音效中要求的播放设备的布局位置,排布每个第二电子设备的第一位置信息。以声道类型为例,第二电子设备的声道类型包括:左声道、右声道、双声道以及多声道,则第一电子设备根据目标音效中要求的声道类型以及布局位置,确定不同声道类型应处的位置,该位置即该声道类型对应的第二电子设备的位置信息。The first position information is the relative position between the second electronic device playing the audio file and the first electronic device. If the audio file needs to be played with the target sound effect, the electronic device can determine the position where the second electronic device should be laid out according to the target sound effect and the speaker parameter information of each second electronic device; for example, the target sound effect requires Which speaker parameters each playback device should have, select the second electronic device that meets the target sound effect requirements, and arrange the first position information of each second electronic device according to the layout position of the playback device required in the target sound effect. Taking the channel type as an example, the channel types of the second electronic device include: left channel, right channel, dual channel and multi-channel, then the first electronic device is based on the channel type and layout position required in the target sound effect. , and determine the positions where different channel types should be located, where the positions are the position information of the second electronic device corresponding to the channel types.

示例性的,如果音频文件以杜比音效播放,那么为了是第二电子设备播放出来的音频文件能够达到杜比效果,则将拥有双声道的第二电子设备设置在整个布局的中间位置,将拥有左声道的第二电子设备设置在整个布局的左边位置,将拥有右声道的第二电子设备设置在整个布局的右边位置,那么在该布局下,控制所有第二电子设备播放音频文件后,能够达到杜比音效的效果。Exemplarily, if the audio file is played with a Dolby sound effect, in order for the audio file played by the second electronic device to achieve the Dolby effect, the second electronic device having two channels is set in the middle of the entire layout, Set the second electronic device with the left channel to the left position of the entire layout, and set the second electronic device with the right channel to the right position of the entire layout, then in this layout, control all second electronic devices to play audio After the file, it can achieve the effect of Dolby sound.

步骤304,将所述音频文件和所述第一位置信息发送给对应的第二电子设备,并控制所述第二电子设备播放所述音频文件。Step 304: Send the audio file and the first location information to a corresponding second electronic device, and control the second electronic device to play the audio file.

其中,第一电子设备将每个第二电子设备的第一位置信息发送至对应的第二电子设备,并在接收到每个所述第二电子设备已经处于对应的第一位置信息中指示的位置之后,控制所述第二电子设备播放所述音频文件。Wherein, the first electronic device sends the first position information of each second electronic device to the corresponding second electronic device, and receives the information indicated in the corresponding first position information that each of the second electronic devices is already located After the location, the second electronic device is controlled to play the audio file.

可选地,向每个第二电子设备发送音频文件时,由于每个第二电子设备具有各自的声道类型,可先将所述音频文件拆分出不同声道类型的子文件,然后将子文件发送给与其声道类型对应的第二电子设备,使每个第二电子设备播放不同声道的音频部分,实现较为立体或环绕声等高阶的音频播放效果。Optionally, when sending an audio file to each second electronic device, since each second electronic device has its own channel type, the audio file can be split into sub-files of different channel types first, and then The sub-file is sent to the second electronic device corresponding to its channel type, so that each second electronic device plays audio parts of different channels, so as to achieve higher-level audio playback effects such as stereo or surround sound.

参见图4,本发明又一实施例提供了一种音频共享方法,应用于第一电子设备,所述方法包括:Referring to FIG. 4, another embodiment of the present invention provides an audio sharing method, which is applied to a first electronic device, and the method includes:

步骤401,确定与所述第一电子设备建立通信连接的至少两个第二电子设备。Step 401: Determine at least two second electronic devices that establish a communication connection with the first electronic device.

其中,当第一电子设备的用户需要在较为开阔的场地播放电子设备内的目标音频时,目标音频如歌曲、录音时,受限于电子设备的音量或其他硬件参数,播放效果有限;此时第一电子设备的用户可使用音频共享功能,与至少两个第二电子设备建立通信连接,以第一电子设备为主设备,建立共享群组,并添加多个第二电子设备作为辅设备。Wherein, when the user of the first electronic device needs to play the target audio in the electronic device in a relatively open place, the target audio, such as songs and recordings, is limited by the volume or other hardware parameters of the electronic device, and the playback effect is limited; The user of the first electronic device can use the audio sharing function to establish communication connections with at least two second electronic devices, use the first electronic device as the main device, establish a sharing group, and add multiple second electronic devices as auxiliary devices.

步骤402,获取所述第二电子设备的扬声器参数信息。Step 402: Acquire speaker parameter information of the second electronic device.

扬声器参数信息包括硬件信息以及声效信息等参数;硬件信息比如包括单扬声器或双扬声器等硬件参数,或者布设在第二电子设备的位置,比如屏幕长度方向、宽度方向、背面等,用于第一电子设备排布所述第二电子设备的位置。声效信息包括声道类型等参数,具体地,声道是指声音在录制或播放时在不同空间位置采集或回放的相互独立的音频信号。声道类型包括单声道(例如左声道、右声道)、双声道以及多声道(多声道例如立体声)等类型。The speaker parameter information includes parameters such as hardware information and sound effect information; for example, the hardware information includes hardware parameters such as single speaker or dual speakers, or is located in the position of the second electronic device, such as the screen length direction, width direction, back, etc., for the first The electronic device arranges the position of the second electronic device. The sound effect information includes parameters such as the channel type. Specifically, the channel refers to the mutually independent audio signals collected or played back at different spatial positions during sound recording or playback. Channel types include mono (eg, left, right), dual, and multi-channel (multi-channel, eg, stereo).

步骤403,在所述音频文件中包括场所信息的情况下,根据所述场所信息和每个所述第二电子设备的所述扬声器参数信息,确定每个所述第二电子设备的第二位置信息。Step 403: In the case where the audio file includes location information, determine the second position of each of the second electronic devices according to the location information and the speaker parameter information of each of the second electronic devices information.

场所信息可以是播放所述音频文件中包含的场所的信息,比如,如果音频文件是歌曲1在演唱会版本,那么此时的场所信息是演唱会场馆,如果音频文件是歌曲1在音乐厅中的版本,那么此时的场所信息是音乐大厅;场所信息还可以是播放所述音频文件的场所信息,比如,该音频在操场,电影院等场所播放,这种情况下,第一电子设备可通过拍摄照片或预先输入等方式,获取场所的场所信息,例如场所信息包括高度信息和/或位置信息。The venue information may be the information of the venue contained in the audio file to be played. For example, if the audio file is the version of song 1 in a concert, then the venue information at this time is the venue of the concert, and if the audio file is the version of song 1 in a concert hall version, then the venue information at this time is the music hall; the venue information can also be the venue information for playing the audio file, for example, the audio is played in playgrounds, cinemas and other places, in this case, the first electronic device can pass The location information of the location is obtained by taking a photo or inputting in advance, for example, the location information includes altitude information and/or location information.

不同场所信息对应的布局方式不同,对播放设备的扬声器要求也不同,比如场所信息每个播放设备应具备哪些扬声器参数,则选择符合目标音效要求的第二电子设备,并根据场所信息中要求的播放设备的布局位置,排布每个第二电子设备的第二位置信息。以声道类型为例,所有第二电子设备的声道类型包括:左声道、右声道、双声道以及多声道,则第一电子设备根据场所信息中要求的声道类型以及布局位置,确定每个声道类型应处的位置,该位置即该声道类型对应的第二电子设备的位置信息。可选地,所述第二位置信息为播放所述单音源文件的设备与所述第一电子设备之间的相对位置。The layout methods corresponding to different venue information are different, and the speaker requirements for the playback device are also different. For example, which speaker parameters should each playback device have in the venue information, the second electronic device that meets the target sound effect requirements is selected. According to the requirements in the venue information For the layout position of the playback device, the second position information of each second electronic device is arranged. Taking the channel type as an example, the channel types of all the second electronic devices include: left channel, right channel, dual channel and multi-channel, then the first electronic device is based on the channel type and layout required in the location information. The position is to determine the position where each channel type should be located, and the position is the position information of the second electronic device corresponding to the channel type. Optionally, the second position information is a relative position between the device playing the single sound source file and the first electronic device.

示例性的,如果音频文件是歌曲1的演唱会版本,那么所有第二电子设备以布局A进行排布,从而使得播放音频文件后,能够得到近似演唱会中播放的效果,如果音频文件是歌曲1的录音室版本,那么所有第二电子设备以布局B进行排布,从而使得在该布局方式下,播放音频文件后能够得到近似录音室中播放的效果。Exemplarily, if the audio file is a concert version of song 1, then all the second electronic devices are arranged in layout A, so that after playing the audio file, an effect similar to that played in the concert can be obtained. If the audio file is a song 1, then all the second electronic devices are arranged in layout B, so that in this layout, after playing the audio file, the effect similar to that played in the recording studio can be obtained.

步骤404,将所述音频文件和所述第二位置信息发送给对应的第二电子设备,并控制所述第二电子设备播放所述音频文件。Step 404: Send the audio file and the second location information to the corresponding second electronic device, and control the second electronic device to play the audio file.

第一电子设备将所述音频文件和每个第二电子设备的第一位置信息发送至对应的第二电子设备,并在接收到每个所述第二电子设备已经处于对应的第一位置信息中指示的位置之后,控制所述第二电子设备播放所述音频文件。The first electronic device sends the audio file and the first position information of each second electronic device to the corresponding second electronic device, and after receiving the information that each second electronic device is already in the corresponding first position After the position indicated in , the second electronic device is controlled to play the audio file.

通过所述通信连接向每个第二电子设备发送音频文件以及第二位置信息,使每个第二电子设备可在不同位置播放音频文件,实现较为立体或环绕声等高阶的音频播放效果。Send audio files and second position information to each second electronic device through the communication connection, so that each second electronic device can play audio files in different positions, and achieve higher-level audio playback effects such as stereo or surround sound.

参见图5,本发明又一实施例提供了一种音频共享方法,应用于第一电子设备,所述方法包括:Referring to FIG. 5 , another embodiment of the present invention provides an audio sharing method, which is applied to a first electronic device, and the method includes:

步骤501,确定与所述第一电子设备建立通信连接的至少两个第二电子设备。Step 501: Determine at least two second electronic devices that establish communication connections with the first electronic device.

其中,当第一电子设备的用户需要在较为开阔的场地播放电子设备内的目标音频时,目标音频如歌曲、录音时,受限于电子设备的音量或其他硬件参数,播放效果有限;此时第一电子设备的用户可使用音频共享功能,与至少两个第二电子设备建立通信连接,以第一电子设备为主设备,建立共享群组,并添加多个第二电子设备作为辅设备。Wherein, when the user of the first electronic device needs to play the target audio in the electronic device in a relatively open place, the target audio, such as songs and recordings, is limited by the volume or other hardware parameters of the electronic device, and the playback effect is limited; The user of the first electronic device can use the audio sharing function to establish communication connections with at least two second electronic devices, use the first electronic device as the main device, establish a sharing group, and add multiple second electronic devices as auxiliary devices.

步骤502,获取所述第二电子设备的扬声器参数信息。Step 502: Acquire speaker parameter information of the second electronic device.

扬声器参数信息包括硬件信息以及声效信息等参数;硬件信息比如包括单扬声器或双扬声器等硬件参数,或者布设在第二电子设备的位置,比如屏幕长度方向、宽度方向、背面等,用于第一电子设备排布所述第二电子设备的位置。声效信息包括声道类型等参数,具体地,声道是指声音在录制或播放时在不同空间位置采集或回放的相互独立的音频信号。声道类型包括单声道(例如左声道、右声道)、双声道以及多声道(多声道例如立体声)等类型。The speaker parameter information includes parameters such as hardware information and sound effect information; for example, the hardware information includes hardware parameters such as single speaker or dual speakers, or is located in the position of the second electronic device, such as the screen length direction, width direction, back, etc., for the first The electronic device arranges the position of the second electronic device. The sound effect information includes parameters such as the channel type. Specifically, the channel refers to the mutually independent audio signals collected or played back at different spatial positions during sound recording or playback. Channel types include mono (eg, left, right), dual, and multi-channel (multi-channel, eg, stereo).

步骤503,在所述音频文件包括N个声源信息的情况下,解析所述音频文件,得到N个单声源文件。Step 503, in the case that the audio file includes N pieces of sound source information, parse the audio file to obtain N single sound source files.

解析所述音频文件,得到N个单音源的单音源文件,其中,N为大于1的正整数。Parse the audio file to obtain N single-sound source files of single-sound sources, where N is a positive integer greater than 1.

若所述音频文件包括多个音源,可将所述音频文件拆分成多个单音源的单音源文件。本发明实施例中,音源指发声的单个设备或人物、动物等声音源头,单音源即单个发生对象作为声源。If the audio file includes multiple audio sources, the audio file may be split into single-sound source files of multiple single-sound sources. In the embodiment of the present invention, a sound source refers to a single device or a sound source such as a person, an animal, etc. that emits sound, and a single sound source, that is, a single generating object, is used as a sound source.

可以理解的是,若所述音频文件中,包括超过一定数目的音源,则可以从中解析出少量的主要音源的单音源文件,而将占比较少的非主要音源作为一个单音源。It can be understood that if the audio file includes more than a certain number of audio sources, a small number of single audio source files of the main audio source can be parsed from the audio file, and the non-main audio source with a small proportion is regarded as a single audio source.

步骤504,获取每个所述单声源文件的参数信息;所述参数信息包括音色信息和音量信息中的至少一种。Step 504: Acquire parameter information of each of the monophonic source files; the parameter information includes at least one of timbre information and volume information.

获取每个单音源文件的参数信息,参数信息包括音量信息以及音色信息中的至少一种,以便将参数信息一同发送给第二电子设备。Parameter information of each single sound source file is acquired, where the parameter information includes at least one of volume information and timbre information, so that the parameter information is sent to the second electronic device together.

步骤505,根据所述单声源文件的参数信息和每个所述第二电子设备的扬声器参数信息,确定每个第二电子设备的第三位置信息。Step 505: Determine third position information of each second electronic device according to the parameter information of the single sound source file and the speaker parameter information of each of the second electronic devices.

所述第三位置信息为播放所述单音源文件的设备与所述第一电子设备之间的相对位置。根据每个单声源文件的参数信息,为该单音源文件匹配第二电子设备,并根据参数信息中指示的位置布局要求,布局第二电子设备的位置信息,使得第二电子设备在对应的第三位置信息指示的位置处播放所述单音源文件,提升播放效果。The third position information is the relative position between the device playing the single audio source file and the first electronic device. According to the parameter information of each monophonic source file, the second electronic device is matched for the monophonic source file, and the positional information of the second electronic device is laid out according to the position layout requirements indicated in the parameter information, so that the second electronic device is in the corresponding The single audio source file is played at the position indicated by the third position information to improve the playing effect.

步骤506,将所述单声源文件以及所述第三位置信息发送给对应的所述第二电子设备,并控制所述第二电子设备播放所述音频文件。Step 506: Send the monophonic source file and the third position information to the corresponding second electronic device, and control the second electronic device to play the audio file.

其中,为每个所述单音源文件分别匹配一个所述第二电子设备,同时将与所述单音源文件对应的第三位置信息发送至第二电子设备,并在接收到每个所述第二电子设备已经处于对应的第三位置信息中指示的位置之后,控制所述第二电子设备播放所述音频文件。Wherein, each of the single-sound source files is matched with one of the second electronic devices, and the third position information corresponding to the single-sound source files is sent to the second electronic device at the same time, and after each of the first and second electronic devices is received After the second electronic device has been in the position indicated in the corresponding third position information, the second electronic device is controlled to play the audio file.

比如,以参数信息包括音量为例,在播放复杂的多音源组成的音频文件时,如电影中的嘈杂场面,第一电子设备分析音频文件中存在的不同音源以及在不同音源音频文件中的音量大小,将音频文件拆分得到单音源文件,将单音源文件分别分配到一部或多部第二电子设备中,并根据识别到的音量,安排不同的位置布局,达到复原音频文件中场景的效果,使收听音频效果更真实。For example, taking the parameter information including volume as an example, when playing a complex audio file composed of multiple audio sources, such as a noisy scene in a movie, the first electronic device analyzes the different audio sources in the audio file and the volume in the audio files of different audio sources. Size, split the audio file to obtain a single-sound source file, assign the single-sound source file to one or more second electronic devices, and arrange different location layouts according to the recognized volume, so as to restore the scene in the audio file. effect to make listening to audio more realistic.

可选地,本发明实施例中,所述通过所述通信连接向每个所述第二电子设备发送音频文件的步骤之后,所述方法还包括:Optionally, in this embodiment of the present invention, after the step of sending an audio file to each of the second electronic devices through the communication connection, the method further includes:

显示提示信息,所述提示信息用于提示每个第二电子设备的摆放方向以及音量大小。Displaying prompt information, the prompt information is used to prompt the placement direction and volume of each second electronic device.

根据所述音源文件中指示的电子设备的摆放方向以及播放时的音量大小,生成提示信息,并显示在第一电子设备上,以便第一电子设备的用户核查每个所述第二电子设备是否正确摆放;同时可将所述提示信息发送给对应的第二电子设备,以便第二电子设备的用户按照提示信息中要求的摆放方向摆放所述第二电子设备,以及按照提示信息中要求的音量大小播放所述音频文件。According to the placement direction of the electronic device and the volume during playback indicated in the sound source file, prompt information is generated and displayed on the first electronic device, so that the user of the first electronic device can check each of the second electronic devices Whether it is placed correctly; at the same time, the prompt information can be sent to the corresponding second electronic device, so that the user of the second electronic device can place the second electronic device according to the orientation required in the prompt information, and follow the prompt information. Play the audio file at the volume level required in .

本发明实施例中,确定与所述第一电子设备建立通信连接的至少两个第二电子设备;通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件,不受场地以及设备本身性能参数的限制,实现多个音频设备同时播放所述音频文件,提升音频播放音量以及播放效果。In this embodiment of the present invention, at least two second electronic devices that establish a communication connection with the first electronic device are determined; an audio file is sent to each of the second electronic devices through the communication connection, and the second electronic device is controlled The electronic device plays the audio file, and is not limited by the venue and the performance parameters of the device itself, enabling multiple audio devices to play the audio file at the same time, improving the audio playback volume and playback effect.

以上介绍了本发明实施例提供的音频共享方法,下面将结合附图介绍本发明实施例提供的电子设备。The audio sharing method provided by the embodiment of the present invention has been described above, and the electronic device provided by the embodiment of the present invention will be described below with reference to the accompanying drawings.

参见图6,本发明实施例还提供了一种电子设备,所述电子设备为第一电子设备600,所述电子设备包括:Referring to FIG. 6, an embodiment of the present invention further provides an electronic device, the electronic device is a first electronic device 600, and the electronic device includes:

确定模块601,用于确定与所述第一电子设备600建立通信连接的至少两个第二电子设备。The determining module 601 is configured to determine at least two second electronic devices that establish a communication connection with the first electronic device 600 .

可选地,第一电子设备600预先与至少两个第二电子设备建立通信连接,还可将所有第二电子设备组成一共享群组,用于共享音频文件;比如,第一电子设备600在与第二电子设备建立通信连接的过程中临时建立共享群组。比如当第一电子设备600的用户需要在较为开阔的场地播放电子设备内的目标音频时,目标音频如歌曲、录音时,受限于电子设备的音量或其他硬件参数,播放效果有限;此时第一电子设备600的用户可使用音频共享功能,与至少两个第二电子设备建立通信连接,以第一电子设备600为主设备,建立共享群组,并添加多个第二电子设备作为辅设备。Optionally, the first electronic device 600 establishes a communication connection with at least two second electronic devices in advance, and all the second electronic devices can also be formed into a sharing group for sharing audio files; A sharing group is temporarily established during the process of establishing a communication connection with the second electronic device. For example, when the user of the first electronic device 600 needs to play the target audio in the electronic device in a relatively open place, the target audio, such as songs and recordings, is limited by the volume or other hardware parameters of the electronic device, and the playback effect is limited; The user of the first electronic device 600 can use the audio sharing function to establish a communication connection with at least two second electronic devices, use the first electronic device 600 as the main device, establish a sharing group, and add multiple second electronic devices as auxiliary devices. equipment.

第一电子设备600需要共享音频文件时,确定与所述第一电子设备600建立通信连接的至少两个第二电子设备,该通信连接可以是两个设备之间的点对点连接,或通过其他通信服务器进行连接等,本发明实施例对通信连接的具体方式不作具体限定。例如,通信连接可以是近场通信(Near Field Communication,NFC)连接或蓝牙连接;以NFC连接为例,NFC是在非接触式射频识别技术的基础上,结合无线互连技术研发而成的通信技术。NFC技术主要通过电磁场的无线电波进行短距离通信。第一电子设备600通过NFC(或蓝牙等方式)与至少两个第二电子设备建立通信连接,比如,第一电子设备600接收到向多个第二电子设备共享音频文件的指令或通过群组播放音频文件的指令,第一电子设备600启动NFC模块,向在所述NFC模块覆盖范围内的第二电子设备建立通信连接;When the first electronic device 600 needs to share audio files, determine at least two second electronic devices that establish a communication connection with the first electronic device 600, and the communication connection may be a point-to-point connection between the two devices, or through other communication The server performs connection, etc., and the specific manner of the communication connection is not specifically limited in this embodiment of the present invention. For example, the communication connection can be a near field communication (Near Field Communication, NFC) connection or a Bluetooth connection; taking NFC connection as an example, NFC is a communication developed based on contactless radio frequency identification technology combined with wireless interconnection technology technology. NFC technology mainly conducts short-distance communication through radio waves of electromagnetic fields. The first electronic device 600 establishes a communication connection with at least two second electronic devices through NFC (or Bluetooth, etc.), for example, the first electronic device 600 receives an instruction to share audio files with multiple second electronic devices or through a group The instruction to play the audio file, the first electronic device 600 starts the NFC module, and establishes a communication connection to the second electronic device within the coverage of the NFC module;

此过程中,第二电子设备需开启其NFC(或蓝牙等方式)功能,第一电子设备600方可检测到该第二电子设备,与第二电子设备建立通信连接。During this process, the second electronic device needs to enable its NFC (or Bluetooth, etc.) function, so that the first electronic device 600 can detect the second electronic device and establish a communication connection with the second electronic device.

控制模块602,用于通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件。A control module 602, configured to send an audio file to each of the second electronic devices through the communication connection, and control the second electronic device to play the audio file.

其中,通过所述通信连接向每个第二电子设备发送音频文件,音频文件即被分享的目标音频文件,所述音频文件可以是音乐文件,或其他多媒体文件中的音频部分;可选地,可以向每个第二电子设备发送相同的文件,然后控制所有的第二电子设备与所述第一电子设备600600共同播放所有音频文件,实现多个电子设备600同时播放,提升播放的音量以及播放效果;还可每个第二电子设备对应音频文件的不同部分,比如不同声道部分,不同音源部分,本发明实施例中,音源指发声的单个设备或人物、动物等声音源头,将不同音频文件的不同部分分别发送给不同的第二电子设备,使每个第二电子设备播放不同的音频部分,实现较为立体或环绕声等高阶的音频播放效果。Wherein, the audio file is sent to each second electronic device through the communication connection, and the audio file is the target audio file to be shared, and the audio file can be a music file or an audio part in other multimedia files; optionally, The same file can be sent to each second electronic device, and then all the second electronic devices can be controlled to play all audio files together with the first electronic device 600600, so as to realize simultaneous playback of multiple electronic devices 600, increase the volume of playback and play effect; each second electronic device can also correspond to different parts of the audio file, such as different channel parts and different sound source parts. Different parts of the file are respectively sent to different second electronic devices, so that each second electronic device plays a different audio part, so as to achieve higher-level audio playback effects such as stereo or surround sound.

可选地,本发明实施例中,所述电子设备600包括:Optionally, in this embodiment of the present invention, the electronic device 600 includes:

第一获取模块,用于获取所述第二电子设备的扬声器参数信息。The first obtaining module is configured to obtain speaker parameter information of the second electronic device.

可选地,本发明实施例中,所述电子设备600包括:Optionally, in this embodiment of the present invention, the electronic device 600 includes:

第一确定模块,用于在所述音频文件以目标音效播放的情况下,根据所述目标音效和每个所述第二电子设备的所述扬声器参数信息,确定每个所述第二电子设备的第一位置信息;a first determination module, configured to determine each of the second electronic devices according to the target sound effect and the speaker parameter information of each of the second electronic devices when the audio file is played with a target sound effect 's first location information;

第一发送模块,用于将所述音频文件和和所述第一位置信息发送给对应的第二电子设备。The first sending module is configured to send the audio file and the first position information to the corresponding second electronic device.

可选地,本发明实施例中,所述电子设备600包括:Optionally, in this embodiment of the present invention, the electronic device 600 includes:

第二确定模块,用于在所述音频文件中包括场所信息的情况下,根据所述场所信息和每个所述第二电子设备的所述扬声器参数信息,确定每个所述第二电子设备的第二位置信息息;A second determination module, configured to determine each of the second electronic devices according to the location information and the speaker parameter information of each of the second electronic devices when the audio file includes location information second location information;

第二发送模块,用于将所述音频文件和所述第二位置信息发送给对应的第二电子设备。The second sending module is configured to send the audio file and the second position information to the corresponding second electronic device.

可选地,本发明实施例中,所述电子设备600包括:Optionally, in this embodiment of the present invention, the electronic device 600 includes:

解析模块,用于在所述音频文件包括N个声源信息的情况下,解析所述音频文件,得到N个单声源文件;a parsing module, configured to parse the audio file to obtain N single-sound source files when the audio file includes N pieces of sound source information;

第二获取模块,用于获取每个所述单声源文件的参数信息;所述参数信息包括音色信息和音量信息中的至少一种;The second acquisition module is used to acquire parameter information of each of the monophonic source files; the parameter information includes at least one of timbre information and volume information;

第三确定模块,用于根据所述单声源文件的参数信息和每个所述第二电子设备的扬声器参数信息,确定每个第二电子设备的第三位置信息;a third determining module, configured to determine the third position information of each second electronic device according to the parameter information of the single sound source file and the speaker parameter information of each of the second electronic devices;

第三发送模块,用于将所述单声源文件以及所述第三位置信息发送给对应的所述第二电子设备。A third sending module, configured to send the monophonic source file and the third position information to the corresponding second electronic device.

本发明实施例提供的电子设备600能够实现图1至图5的方法实施例中电子设备600实现的各个过程,为避免重复,这里不再赘述。The electronic device 600 provided in the embodiment of the present invention can implement each process implemented by the electronic device 600 in the method embodiments of FIG. 1 to FIG. 5 , and to avoid repetition, details are not repeated here.

本发明的实施例中,确定模块601确定与所述第一电子设备600建立通信连接的至少两个第二电子设备;发送模块602通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件,不受场地以及设备本身性能参数的限制,实现多个音频设备同时播放所述音频文件,提升音频播放音量以及播放效果。In this embodiment of the present invention, the determining module 601 determines at least two second electronic devices that establish a communication connection with the first electronic device 600; the sending module 602 sends audio to each of the second electronic devices through the communication connection file, and control the second electronic device to play the audio file, without being limited by the venue and the performance parameters of the device itself, enabling multiple audio devices to play the audio file at the same time, improving the audio playback volume and playback effect.

图7为实现本发明各个实施例的一种电子设备的硬件结构示意图;7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention;

该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and Power supply 711 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器710,用于于确定与所述第一电子设备建立通信连接的至少两个第二电子设备;通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件。The processor 710 is configured to determine at least two second electronic devices that establish a communication connection with the first electronic device; send audio files to each of the second electronic devices through the communication connection, and control all the second electronic devices The second electronic device plays the audio file.

本发明的实施例中,确定与所述第一电子设备建立通信连接的至少两个第二电子设备;通过所述通信连接向每个所述第二电子设备发送音频文件,并控制所述第二电子设备播放所述音频文件,不受场地以及设备本身性能参数的限制,实现多个音频设备同时播放所述音频文件,提升音频播放音量以及播放效果。In the embodiment of the present invention, at least two second electronic devices that establish a communication connection with the first electronic device are determined; audio files are sent to each of the second electronic devices through the communication connection, and the first electronic device is controlled The second electronic device plays the audio file, and is not limited by the venue and the performance parameters of the device itself, enabling multiple audio devices to play the audio file at the same time, improving the audio playback volume and playback effect.

需要说明的是,本实施例中上述电子设备700可以实现本发明实施例中方法实施例中的各个过程,以及达到相同的有益效果,为避免重复,此处不再赘述。It should be noted that, the electronic device 700 in this embodiment can implement each process in the method embodiment in the embodiment of the present invention, and achieve the same beneficial effect, which is not repeated here to avoid repetition.

应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 701 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 710; The uplink data is sent to the base station. Generally, the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the network module 702, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与电子设备700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into audio signals and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic device 700 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.

输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042. The graphics processor 7041 captures still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 706 . The image frames processed by the graphics processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio frequency unit 701 or the network module 702 . The microphone 7042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 701 for output in the case of a telephone call mode.

电子设备700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在电子设备700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and the display panel 7061 when the electronic device 700 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 705 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

用户输入单元707可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 707 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072 . The touch panel 7071, also referred to as a touch screen, can collect touch operations by the user on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 7071). operate). The touch panel 7071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 710, the command sent by the processor 710 is received and executed. In addition, the touch panel 7071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 7071 , the user input unit 707 may also include other input devices 7072 . Specifically, other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 7071 can be covered on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it transmits it to the processor 710 to determine the type of the touch event, and then the processor 710 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on display panel 7061. Although in FIG. 7 , the touch panel 7071 and the display panel 7061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元708为外部装置与电子设备700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备700内的一个或多个元件或者可以用于在电子设备700和外部装置之间传输数据。The interface unit 708 is an interface for connecting an external device to the electronic device 700 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 708 may be used to receive input from external devices (eg, data information, power, etc.) and transmit the received input to one or more elements within the electronic device 700 or may be used between the electronic device 700 and the external Transfer data between devices.

存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 709 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器710是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 709, and calling the data stored in the memory 709. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 710.

电子设备700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 700 may also include a power supply 711 (such as a battery) for supplying power to various components. Preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.

另外,电子设备700包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 700 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种电子设备,包括处理器710,存储器709,存储在存储器709上并可在所述处理器710上运行的计算机程序,该计算机程序被处理器710执行时实现上述音频共享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides an electronic device, including a processor 710, a memory 709, and a computer program stored in the memory 709 and running on the processor 710, when the computer program is executed by the processor 710 Various processes of the above-mentioned audio sharing method embodiments are implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述音频共享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned audio sharing method embodiments can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (12)

1. An audio sharing method applied to a first electronic device, the method comprising:
determining at least two second electronic devices establishing communication connection with the first electronic device;
and sending an audio file to each second electronic device through the communication connection, and controlling the second electronic devices to play the audio files.
2. The audio sharing method according to claim 1, wherein after the step of determining at least two second electronic devices that establish a communication connection with the first electronic device, the method further comprises:
and acquiring the loudspeaker parameter information of the second electronic equipment.
3. The audio sharing method of claim 2, wherein the step of sending an audio file to each of the second electronic devices via the communication connection comprises:
under the condition that the audio file is played in a target sound effect, determining first position information of each second electronic device according to the target sound effect and the loudspeaker parameter information of each second electronic device;
and sending the audio file and the first position information to corresponding second electronic equipment.
4. The audio sharing method of claim 2, wherein the step of sending an audio file to each of the second electronic devices via the communication connection comprises:
under the condition that the audio file comprises the place information, determining second position information of each second electronic device according to the place information and the loudspeaker parameter information of each second electronic device;
and sending the audio file and the second position information to corresponding second electronic equipment.
5. The audio sharing method of claim 2, wherein the step of sending an audio file to each of the second electronic devices via the communication connection comprises:
under the condition that the audio file comprises N pieces of sound source information, analyzing the audio file to obtain N pieces of single-sound source files;
acquiring parameter information of each single sound source file; the parameter information includes at least one of tone color information and volume information;
determining third position information of each second electronic device according to the parameter information of the mono source file and the loudspeaker parameter information of each second electronic device;
and sending the single sound source file and the third position information to the corresponding second electronic equipment.
6. An electronic device, the electronic device being a first electronic device, the electronic device comprising:
the determining module is used for determining at least two second electronic devices which establish communication connection with the first electronic device;
and the control module is used for sending an audio file to each second electronic device through the communication connection and controlling the second electronic devices to play the audio file.
7. The electronic device of claim 6, wherein the electronic device comprises:
and the first acquisition module is used for acquiring the loudspeaker parameter information of the second electronic equipment.
8. The electronic device of claim 7, wherein the electronic device comprises:
the first determining module is used for determining first position information of each second electronic device according to a target sound effect and the loudspeaker parameter information of each second electronic device under the condition that the audio file is played in the target sound effect;
and the first sending module is used for sending the audio file and the first position information to corresponding second electronic equipment.
9. The electronic device of claim 7, wherein the electronic device comprises:
a second determining module, configured to determine, when the audio file includes location information, second location information of each second electronic device according to the location information and the speaker parameter information of each second electronic device;
and the second sending module is used for sending the audio file and the second position information to corresponding second electronic equipment.
10. The electronic device of claim 7, wherein the electronic device comprises:
the analysis module is used for analyzing the audio file under the condition that the audio file comprises N pieces of sound source information to obtain N pieces of single-sound source files;
the second acquisition module is used for acquiring the parameter information of each single sound source file; the parameter information includes at least one of tone color information and volume information;
the third determining module is used for determining third position information of each second electronic device according to the parameter information of the single sound source file and the loudspeaker parameter information of each second electronic device;
and the third sending module is used for sending the single sound source file and the third position information to the corresponding second electronic equipment.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the audio sharing method as claimed in any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the audio sharing method according to any one of claims 1 to 5.
CN202010359400.7A 2020-04-29 2020-04-29 Audio sharing method and electronic equipment Active CN111641916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010359400.7A CN111641916B (en) 2020-04-29 2020-04-29 Audio sharing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010359400.7A CN111641916B (en) 2020-04-29 2020-04-29 Audio sharing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111641916A true CN111641916A (en) 2020-09-08
CN111641916B CN111641916B (en) 2022-09-06

Family

ID=72331888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010359400.7A Active CN111641916B (en) 2020-04-29 2020-04-29 Audio sharing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111641916B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261569A (en) * 2020-09-29 2021-01-22 上海连尚网络科技有限公司 Method and equipment for playing multiple channels
CN112423053A (en) * 2020-11-06 2021-02-26 歌尔科技有限公司 Audio sharing method, system, remote controller and computer readable storage medium
CN113129915A (en) * 2021-04-22 2021-07-16 北京二六三企业通信有限公司 Audio sharing method, device, equipment, storage medium and program product
CN113709652A (en) * 2021-08-31 2021-11-26 维沃移动通信有限公司 Audio playing control method and electronic equipment
CN113746982A (en) * 2021-08-25 2021-12-03 维沃移动通信(杭州)有限公司 Audio playing control method and device, electronic equipment and readable storage medium
CN113905131A (en) * 2021-09-02 2022-01-07 咪咕音乐有限公司 Multimedia color ringtone setting method, terminal and computer-readable storage medium
CN115396472A (en) * 2022-08-23 2022-11-25 广州小鹏汽车科技有限公司 Vehicle control method, vehicle, and computer-readable storage medium
WO2026066562A1 (en) * 2024-09-29 2026-04-02 比亚迪股份有限公司 Vehicle control method and apparatus, electronic device, vehicle, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384105A (en) * 2008-10-27 2009-03-11 深圳华为通信技术有限公司 Three dimensional sound reproducing method, device and system
CN101547245A (en) * 2008-03-25 2009-09-30 中兴通讯股份有限公司 Method for playing multitrack audio file through a mobile phone
CN104869523A (en) * 2014-02-26 2015-08-26 北京三星通信技术研究有限公司 Method, terminal and system for playing audio file through virtual multiple channel
CN105282660A (en) * 2014-07-25 2016-01-27 中兴通讯股份有限公司 Method, terminal and system for realizing multichannel stereo output
CN105611381A (en) * 2015-12-29 2016-05-25 深圳市民展科技开发有限公司 Multi-device audio synchronous playing system and method based on wireless network
CN109996167A (en) * 2017-12-31 2019-07-09 华为技术有限公司 A kind of multiple terminals collaboration plays the method and terminal of audio file
US20190289244A1 (en) * 2016-05-19 2019-09-19 Guangzhou Shiyuan Electronics Co., Ltd. System and method for displaying key function icons on screen
CN110377265A (en) * 2019-06-24 2019-10-25 贵安新区新特电动汽车工业有限公司 Sound playing method and device

Patent Citations (8)

* 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
CN101384105A (en) * 2008-10-27 2009-03-11 深圳华为通信技术有限公司 Three dimensional sound reproducing method, device and system
CN104869523A (en) * 2014-02-26 2015-08-26 北京三星通信技术研究有限公司 Method, terminal and system for playing audio file through virtual multiple channel
CN105282660A (en) * 2014-07-25 2016-01-27 中兴通讯股份有限公司 Method, terminal and system for realizing multichannel stereo output
CN105611381A (en) * 2015-12-29 2016-05-25 深圳市民展科技开发有限公司 Multi-device audio synchronous playing system and method based on wireless network
US20190289244A1 (en) * 2016-05-19 2019-09-19 Guangzhou Shiyuan Electronics Co., Ltd. System and method for displaying key function icons on screen
CN109996167A (en) * 2017-12-31 2019-07-09 华为技术有限公司 A kind of multiple terminals collaboration plays the method and terminal of audio file
CN110377265A (en) * 2019-06-24 2019-10-25 贵安新区新特电动汽车工业有限公司 Sound playing method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261569A (en) * 2020-09-29 2021-01-22 上海连尚网络科技有限公司 Method and equipment for playing multiple channels
CN112423053A (en) * 2020-11-06 2021-02-26 歌尔科技有限公司 Audio sharing method, system, remote controller and computer readable storage medium
CN112423053B (en) * 2020-11-06 2024-04-09 歌尔科技有限公司 Audio sharing method, system, remote controller and computer readable storage medium
CN113129915A (en) * 2021-04-22 2021-07-16 北京二六三企业通信有限公司 Audio sharing method, device, equipment, storage medium and program product
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
CN113709652A (en) * 2021-08-31 2021-11-26 维沃移动通信有限公司 Audio playing control method and electronic equipment
CN113709652B (en) * 2021-08-31 2024-05-14 维沃移动通信有限公司 Audio play control method and electronic equipment
CN113905131A (en) * 2021-09-02 2022-01-07 咪咕音乐有限公司 Multimedia color ringtone setting method, terminal and computer-readable storage medium
CN113905131B (en) * 2021-09-02 2024-02-23 咪咕音乐有限公司 Multimedia color ring setting method, terminal and computer readable storage medium
CN115396472A (en) * 2022-08-23 2022-11-25 广州小鹏汽车科技有限公司 Vehicle control method, vehicle, and computer-readable storage medium
WO2026066562A1 (en) * 2024-09-29 2026-04-02 比亚迪股份有限公司 Vehicle control method and apparatus, electronic device, vehicle, and storage medium

Also Published As

Publication number Publication date
CN111641916B (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN111641916B (en) Audio sharing method and electronic equipment
CN108551636B (en) Loudspeaker control method and mobile terminal
CN111459456B (en) Audio control method and electronic device
CN107770760B (en) A kind of method and mobile terminal of the type identifying bluetooth equipment
WO2017215660A1 (en) Scene sound effect control method, and electronic device
CN111638779A (en) Audio playback control method, device, electronic device and readable storage medium
WO2021083168A1 (en) Video sharing method and electronic device
CN111402844B (en) Song chorus method, device and system
WO2021129529A1 (en) Device switching method and related device
CN110996305A (en) Method, device, electronic equipment and medium for connecting Bluetooth equipment
CN108040313A (en) A kind of play parameter control method and electronic equipment
CN111370018A (en) Audio data processing method, electronic device and medium
CN108683980B (en) Audio signal transmission method and mobile terminal
CN107889044B (en) Audio data processing method and device
CN111414097A (en) Interaction method, interaction system and display equipment
CN108319445A (en) A kind of audio playing method and mobile terminal
CN111628925A (en) Song interaction method and device, terminal and storage medium
CN107743178A (en) A kind of message player method and mobile terminal
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
WO2017215511A1 (en) Control method of scene sound effect and related products
CN110531852A (en) Information processing method and electronic device
CN110673770A (en) Message display method and terminal equipment
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
WO2021136141A1 (en) Playback method and electronic device
CN111369994A (en) Voice processing method and electronic 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