WO2016145870A1 - 音频数据的请求播放及播放的方法、装置及终端 - Google Patents

音频数据的请求播放及播放的方法、装置及终端 Download PDF

Info

Publication number
WO2016145870A1
WO2016145870A1 PCT/CN2015/093429 CN2015093429W WO2016145870A1 WO 2016145870 A1 WO2016145870 A1 WO 2016145870A1 CN 2015093429 W CN2015093429 W CN 2015093429W WO 2016145870 A1 WO2016145870 A1 WO 2016145870A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
terminal
audio data
requesting
play
Prior art date
Application number
PCT/CN2015/093429
Other languages
English (en)
French (fr)
Inventor
赵凯
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016145870A1 publication Critical patent/WO2016145870A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and terminal for requesting playback and playback of audio data.
  • some terminals do not have speakers, but there is a need to play audio files.
  • most desktop computers do not have built-in speakers, or some laptops do not have speakers or speakers. This makes it impossible to play audio files and cause them to be used. inconvenient.
  • you want to release the sound outside you need to purchase an external audio device to achieve the sound release. Therefore, additional costs are added and portability is often poor.
  • playing audio files is also a temporary requirement. To purchase external audio equipment for this purpose, it will cause waste of equipment and property; it is inconvenient to use without purchasing.
  • the technical problem to be solved by the present invention is to provide a method, a device and a terminal for requesting playback and playing of audio data, which are used to solve the problem that the prior art terminal cannot play audio data when there is no speaker.
  • an embodiment of the present invention provides a method for requesting a terminal to play audio data, including:
  • the audio data is converted into drive and broadcast data that can be recognized by the speaker, and played by the speaker.
  • the audio data is converted into driving and broadcast data that can be recognized by the speaker, and played by the speaker, including:
  • the converted audio data is converted into driver and broadcast data that can be recognized by the speaker, and played by the speaker.
  • the method further includes:
  • Determining whether the request terminal includes program data for driving communication and if yes, receiving audio data that needs to be played by the requesting terminal, and if not, transmitting the program data to the requesting terminal, and performing installation.
  • an embodiment of the present invention further provides a method for requesting a playback terminal to play audio data, including:
  • the audio data to be played is transmitted to the playback terminal through the data transmission path.
  • the method further includes:
  • program data for driving communication is downloaded from the playback terminal and installed.
  • the program data includes:
  • Control command data sent to the playing terminal wherein the control command data is used to control a play path in which the playing terminal turns on the audio data;
  • the path switching command data is used to switch the transmission path of the audio data to a data transmission path for transmitting data with the playback terminal.
  • the embodiment of the present invention further provides an apparatus for playing audio data for a requesting terminal, including:
  • a data interface module configured to connect with the requesting terminal, and receive audio data that is requested to be played by the terminal
  • the data processing module is configured to convert the audio data into driving and broadcast data that can be recognized by the speaker, and play by the speaker.
  • the data interface module is further configured to:
  • the data processing module includes:
  • a CPU processing unit configured to convert audio data sent by the data interface module into audio data that can be processed by a codec
  • the audio processing codec CODEC unit is configured to convert the audio data sent by the CPU processing unit into driving and broadcast data recognizable by the speaker, and play by the speaker.
  • the data interface module is further configured to:
  • Determining whether the request terminal includes program data for driving communication and if yes, receiving audio data that needs to be played by the requesting terminal, and if not, transmitting the program data to the requesting terminal, and performing installation.
  • the embodiment of the present invention further provides a playing terminal, wherein the playing terminal uses the above-mentioned device for requesting the terminal to play audio data to play audio data for the requesting terminal.
  • an embodiment of the present invention provides an apparatus for requesting a playback terminal to play audio data, including:
  • a data processing module configured to switch a transmission path of the audio data to a data transmission path for transmitting data with the playback terminal Path
  • the data interface module is configured to be connected to the playing terminal, and send the audio data to be played to the playing terminal through the data sending path.
  • the data interface module is further configured to:
  • program data for driving communication is downloaded from the playback terminal and installed.
  • the program data includes:
  • Control command data sent to the playing terminal wherein the control command data is used to control a play path in which the playing terminal turns on the audio data;
  • the path switching command data is used to switch the transmission path of the audio data to a data transmission path for transmitting data with the playback terminal.
  • the embodiment of the present invention further provides a requesting terminal, where the requesting terminal uses the device for requesting the playing terminal to play audio data to connect with the playing terminal, and requests the playing terminal to play the audio data.
  • a data connection is established between two terminals to establish a transmission channel of audio data, and data of one terminal can be played by another terminal, which expands the function of the terminal, increases the user experience, and has a simple implementation manner.
  • FIG. 1 is a flowchart of a method for requesting a terminal to play audio data by using a playback terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for requesting a terminal to play audio data in an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for requesting a playback terminal to play audio data in an embodiment of the present invention
  • FIG. 4 is a flow chart of a method for using a mobile phone as a computer speaker in an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a mobile phone and a computer connected through a USB data line according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a hardware line connection in which a mobile phone is connected by a wired connection in a mobile phone according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a hardware line connection in which a mobile phone is connected to a computer through a wireless connection according to an embodiment of the present invention.
  • the principle of the embodiment of the present invention is to connect a playback terminal (such as a mobile phone) with a requesting terminal (such as a computer), and use the audio processing system and the speaker system provided by the playback terminal to release the sound of the requesting terminal.
  • a playback terminal such as a mobile phone
  • a requesting terminal such as a computer
  • the implementation plan is as follows:
  • an embodiment of the present invention relates to a method for requesting a terminal to play audio data by using a playback terminal, including:
  • Step S101 The connection between the requesting terminal and the playing terminal is established, and a physical link of signal communication is established.
  • connection between the playback terminal and the requesting terminal establishes a physical connection path.
  • the corresponding terminal data (host computer driver software) of the playback terminal is installed in the request terminal, and the program data includes:
  • control command data sent by the requesting terminal to the playing terminal wherein, the control command data is used to control the playback path of the audio data by the playing terminal; that is, the requesting terminal sends the control command, so that the playing terminal responds to the control command of the requesting terminal, and then starts Playing the audio data of the terminal end from the receiving port to the external path of the speaker;
  • Path switching command data wherein the path switching command data is used to switch the play path of the audio data to the data transmission path. That is, after the host computer software of the requesting terminal is started, the requesting terminal switches the transmission path of the audio data from its own audio transmission path to the data transmission path, for example, switching to a universal serial bus (USB) transmission path. on.
  • USB universal serial bus
  • the requesting terminal detects the access of the playing terminal, and the playing terminal downloads the built-in driver to the requesting terminal, and requests the terminal to complete the installation of the upper computer driver software.
  • Step S102 the requesting terminal and the playing terminal respectively perform an initializing operation, and each completes channel switching of the audio data.
  • the requesting terminal and the playing terminal respectively perform an initializing operation, and each completes channel switching of the audio data.
  • the requesting terminal starts the upper computer control software, and sends a control command requesting sound transmission to the playing terminal.
  • the playback terminal receives the control command and responds, and opens the data interface to the central processing unit (CPU), the CPU to the audio codec (CODER-DECoder, CODEC for short), and the audio
  • the CODEC module converts the analog audio signal output to drive the entire set of path switching of the horn.
  • the requesting terminal After receiving the initialization completion response signal of the playback terminal, the requesting terminal also performs conversion of the corresponding audio signal output path, and switches the transmission path of the audio data to the data transmission path that transmits data with the playback terminal.
  • the playback terminal sets its own playback mode to the sound playback mode; it can also be set to the headset mode or the handset mode as required.
  • Step S103 The requesting terminal sends the audio data that needs to be played to the playing terminal; after receiving, the playing terminal performs processing after being processed.
  • the play terminal processes the received audio data through the CPU unit, and converts it into a format recognizable by the internal audio processing unit CODEC of the play terminal, and transmits the format to the audio processing unit CODEC.
  • the audio processing unit CODEC converts the received audio data into internal audio and then converts it into audio data, and the audio data is amplified by an internal or external amplifier of the CODEC, and then sent to the sounding unit (horn) of the playback terminal itself. Thereby the sound release function is realized.
  • an embodiment of the present invention further relates to an apparatus for playing audio data for a requesting terminal, including:
  • the data interface module 201 is configured to be connected to the requesting terminal, and receive the audio data that needs to be played by the requesting terminal;
  • the data processing module 202 is configured to convert the audio data into driving and broadcast data that can be recognized by the speaker, and play by the speaker.
  • the data interface module 201 is further configured to:
  • the data processing module 202 includes:
  • the CPU processing unit 2021 is configured to convert the audio data sent by the data interface module into audio data that can be processed by the codec;
  • the audio processing CODEC unit 2022 is configured to convert the audio data transmitted by the CPU processing unit into driving and broadcast data recognizable by the speaker, and play by the speaker.
  • the data interface module 201 is further configured to:
  • Determining whether the request terminal includes program data for driving communication and if yes, receiving audio data that needs to be played by the requesting terminal, and if not, transmitting the program data to the requesting terminal, and performing installation.
  • an embodiment of the present invention further relates to an apparatus for requesting a playback terminal to play audio data, including:
  • the data processing module 301 is configured to switch the transmission path of the audio data to a data transmission path for transmitting data with the playback terminal;
  • the data interface module 302 is configured to be connected to the playing terminal, and send the audio data to be played to the playing terminal through the data sending path.
  • the data interface module 302 is further configured to:
  • program data for driving communication is downloaded from the playback terminal and installed.
  • the program data includes:
  • Control command data sent to the playing terminal wherein the control command data is used to control a play path in which the playing terminal turns on the audio data;
  • the path switching command data is used to switch the transmission path of the audio data to a data transmission path for transmitting data with the playback terminal.
  • the embodiment of the invention further relates to the requesting terminal and the playing terminal, wherein the playing terminal uses the above-mentioned device for playing the audio data for the requesting terminal to play the audio data for the requesting terminal.
  • the requesting terminal connects to the playing terminal by using the above-mentioned device for requesting the playing terminal to play the audio data, and requests the playing terminal to play the audio data.
  • the requesting terminal and the playing terminal may be any terminal that has audio data processing, sending, and playing, for example, may be a computer, a mobile phone, a tablet, or the like.
  • the audio data of the computer is requested to be played by the mobile phone, including:
  • step S401 the mobile phone and the computer are connected by a USB cable.
  • the mobile phone and the computer are connected through a USB data line to establish a physical link of signal communication.
  • step S402 it is determined whether the driver of the mobile phone is installed in the computer. If yes, the process goes to step S405, and if no, the process goes to step S403.
  • step S403 the computer downloads the driver from the mobile phone and completes the installation.
  • step S404 the computer sends a sound release request signal to the mobile phone.
  • Step S405 the mobile phone itself completes initialization, and completes the audio signal switching from the USB to the CODEC and finally to the speaker through the USB, and feeds back the initialization completion signal to the computer.
  • step S406 the computer also completes the switching of its own audio data transmission through the USB data channel.
  • step S407 the computer plays the sound, which is transmitted to the mobile phone, and is synchronized by the mobile phone.
  • the processor unit 101 of the computer (the data processing module of the requesting terminal) transmits the sound data to be sent to the USB interface module 102 of the computer ( Requesting the data receiving module of the terminal).
  • the USB interface module 102 of the computer performs signal processing, that is, converts the sound data into a transmitted USB signal, and transmits it to the USB interface module 104 (data receiving module of the playback terminal) of the mobile terminal through the USB data line 103.
  • the USB interface module 104 of the mobile terminal receives and processes the received USB signal, converts it into a data signal that the CPU processing unit 105 can process, and transmits it to the CPU processing unit 105.
  • the CPU processing unit 105 processes the digital signal including the audio signal into a data signal recognizable by the audio processing CODEC (CODER-DECoder) unit 106, and transmits it to the audio processing CODEC unit 106.
  • the audio processing CODEC unit 106 processes the received data signal and converts it into a driving signal of an external speaker, and transmits it to the sounding unit 107 (horn), thereby realizing the external release of the sound.
  • connection method between the mobile phone and the computer can also be realized by wireless.
  • the wireless transceiver circuit of the mobile phone is connected with the computer, for example, a Bluetooth module, a Wireless-Fidelity (WIFI) module, and the like, and a Bluetooth module and a WIFI module are connected to each other, so that the wireless connection path is opened, and the wireless connection path can also be opened.
  • the physical link between the computer and the mobile phone to achieve the sound release function is shown in Figure 7.
  • the processor unit 101 of the computer (the data processing module of the requesting terminal) transmits the voice data to be transmitted to the Bluetooth/wifi wireless communication module 102 (the data interface module of the requesting terminal).
  • the mobile phone side After the signal processing of the module is sent wirelessly, the mobile phone side has established a wireless link with the computer side via Bluetooth/wifi, and the Bluetooth/wifi wireless module 104 (data interface module of the playback terminal) on the mobile phone side will receive the wireless connection.
  • the corresponding data signal is sent to the CPU processing unit 105, and the CPU processing unit 105 converts the data signal including the audio signal into a signal recognizable by the audio processing CODEC unit 106, and transmits the signal to the audio processing.
  • the audio processing CODEC unit 106 processes the received data signal through its own unit, and then transmits the driving signal converted to the external speaker to the sounding unit 107 (horn), thereby realizing the external release of the sound.
  • a data connection is established between two terminals to establish a transmission channel of audio data, and data of one terminal can be played by another terminal, which expands the function of the terminal, increases the user experience, and has a simple implementation manner.
  • the playback terminal (such as a mobile phone or a tablet) does not want to copy the audio file to the playback terminal for playback due to storage capacity considerations.
  • the effect of requesting to play a song on the mobile phone on the mobile phone can be realized; if the two are connected through a wireless connection, the effect of moving the listening within a certain range can be realized, without being limited to In front of the computer.
  • the present invention establishes a data transmission connection between two terminals, and establishes a transmission channel of audio data.
  • the data of one terminal can be played through another terminal, which expands the function of the terminal and increases the user experience. And has the advantages of simple implementation and low cost.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种音频数据的请求播放及播放的方法、装置及终端,为请求终端播放音频数据的方法包括:与请求终端连接,接收请求终端发送的需要播放的音频数据;将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。本发明通过两个终端之间建立数据连接,建立音频数据的传送通道,一个终端的数据可以通过另外一个终端进行播放,扩展了终端的功能,增加了用户体验,并且具有实现方式简单、成本低的优点。

Description

音频数据的请求播放及播放的方法、装置及终端 技术领域
本发明涉及通讯技术领域,特别是涉及一种音频数据的请求播放及播放的方法、装置及终端。
背景技术
目前,有些终端并没有音箱,但是存在播放音频文件的需求,例如,大部分台式机电脑没有自带内置音箱,或者部分笔记本电脑也没有音箱或者音箱损害;造成无法播放音频文件,给用户使用造成不便。而且,在此情况下,如果想要外放出声音,就需要另外购置外置音响设备,才能实现声音外放。因此,会增加额外的成本,且便携性也往往不好。而且,有些时候,播放音频文件也是临时需求,为此购买外置音响设备,会造成设备和财产的浪费;不购买又造成使用不便。
发明内容
本发明要解决的技术问题是提供一种音频数据的请求播放及播放的方法、装置及终端,用以解决现有技术终端没有音箱时无法播放音频数据的问题。
为解决上述技术问题,一方面,本发明实施例提供一种请求终端播放音频数据的方法,包括:
与请求终端连接,接收请求终端发送的需要播放的音频数据;
将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
可选地,将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放,包括:
将接收的音频数据转换为中央处理器CPU能够处理的音频数据;
将经过一次转换的音频数据转换为编译码器能够处理的音频数据;
将经过两次转换的音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
可选地,与请求终端连接后,还包括:
判断所述请求终端上是否包括有用于驱动通信的程序数据,如果是,则接收请求终端发送的需要播放的音频数据,如果否,则将所述程序数据发送给所述请求终端,由其进行安装。
另一方面,本发明实施例还提供一种请求播放终端播放音频数据的方法,包括:
与播放终端连接,将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上;
将需要播放的音频数据通过数据发送路径发送给播放终端。
可选地,与播放终端连接后,还包括:
当首次与所述播放终端连接时,从所述播放终端中下载用于驱动通信的程序数据,并进行安装。
可选地,所述程序数据包括:
与所述播放终端进行数据通信的通信协议数据;
发送给播放终端的控制命令数据;其中,所述控制命令数据用于控制所述播放终端开通音频数据的播放路径;
路径切换命令数据;其中,所述路径切换命令数据用于将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上。
再一方面,本发明实施例还提供一种为请求终端播放音频数据的装置,包括:
数据接口模块,设置为与请求终端连接,接收请求终端发送的需要播放的音频数据;
数据处理模块,设置为将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
可选地,所述数据接口模块还设置为:
将接收的音频数据转换为中央处理器CPU能够处理的音频数据;
所述数据处理模块包括:
CPU处理单元,设置为将所述数据接口模块发送来的音频数据转换为编译码器能够处理的音频数据;
音频处理编译码器CODEC单元,设置为将所述CPU处理单元发送来的音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
可选地,所述数据接口模块还设置为:
判断所述请求终端上是否包括有用于驱动通信的程序数据,如果是,则接收请求终端发送的需要播放的音频数据,如果否,则将所述程序数据发送给所述请求终端,由其进行安装。
再一方面,本发明实施例还提供一种播放终端,所述播放终端利用上述的为请求终端播放音频数据的装置为请求终端播放音频数据。
再一方面,本发明实施例还提供一种请求播放终端播放音频数据的装置,包括:
数据处理模块,设置为将音频数据的传输路径切换到与播放终端传输数据的数据发送路 径上;
数据接口模块,设置为与播放终端连接,将需要播放的音频数据通过数据发送路径发送给播放终端。
可选地,所述数据接口模块还设置为:
当首次与所述播放终端连接时,从所述播放终端中下载用于驱动通信的程序数据,并进行安装。
可选地,所述程序数据包括:
与所述播放终端进行数据通信的通信协议数据;
发送给播放终端的控制命令数据;其中,所述控制命令数据用于控制所述播放终端开通音频数据的播放路径;
路径切换命令数据;其中,所述路径切换命令数据用于将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上。
再一方面,本发明实施例还提供一种请求终端,所述请求终端利用上述的请求播放终端播放音频数据的装置与播放终端连接,请求播放终端播放音频数据。
本发明实施例有益效果如下:
本发明实施例通过两个终端之间建立数据连接,建立音频数据的传送通道,一个终端的数据可以通过另外一个终端进行播放,扩展了终端的功能,增加了用户体验,并且具有实现方式简单、成本低的优点。
附图说明
图1是本发明实施例中一种通过请求终端请求、利用播放终端进行播放音频数据的方法的流程图;
图2是本发明实施例中为请求终端播放音频数据的装置的结构示意图;
图3是本发明实施例中请求播放终端播放音频数据的装置的结构示意图;
图4是本发明实施例中将手机做为电脑音箱的方法流程图;
图5是本发明实施例中手机与电脑通过USB数据线进行连接的示意图;
图6是本发明实施例中手机做电脑通过有线方式连接的硬件线连接示意图;
图7是本发明实施例中手机做电脑通过无线方式连接的硬件线连接示意图。
具体实施方式
以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的可选实施例仅仅用以解释本发明,并不限定本发明。
本发明实施例的原理是,使播放终端(例如手机)与请求终端(例如电脑)连接,利用播放终端自带的音频处理系统及扬声器系统将请求终端的声音通过外放出来。这样充分发挥了智能手机的便携性和信号处理能力,利用了手机的喇叭发声单元实现了电脑的声音外放。实施方案如下:
如图1所示,本发明实施例涉及一种通过请求终端请求、利用播放终端进行播放音频数据的方法,包括:
步骤S101,请求终端与播放终端之间进行连接,建立信号通讯的物理链路。
本步骤中,播放终端与请求终端之间进行连接,建立物理连接通路。请求终端中安装有播放终端的相应程序数据(上位机驱动软件),程序数据包括:
请求终端与播放终端进行数据通信的通信协议数据;
请求终端发送给播放终端的控制命令数据;其中,控制命令数据用于控制播放终端开通音频数据的播放路径;即:由请求终端发送控制命令,使得播放终端端响应请求终端的控制指令,而开启播放终端端的音频数据由接收端口到喇叭外放的路径;
路径切换命令数据;其中,路径切换命令数据用于将音频数据的播放路径切换到数据发送路径上。即:请求终端的上位机软件启动后,请求终端将音频数据的发送路径由自身的音频发送路径切换到数据发送路径上,例如切换至通用串行总线(Universal Serial Bus,简称为USB)发送通路上。
另外,对于首次连接的播放终端和请求终端,请求终端检测到播放终端的接入,播放终端将自带的驱动程序下载到请求终端中,请求终端完成上位机驱动软件的安装。
步骤S102,请求终端和播放终端分别进行初始化操作,各自完成音频数据的通道切换。可选的:
请求终端启动上位机控制软件,发送要求声音传送的控制命令给播放终端。播放终端接收到该控制命令作出响应,并打通由数据接口端到中央处理器(Central Processing Unit,简称为CPU)、由CPU到音频编译码器(COder-DECoder,简称为CODEC)模块、由音频CODEC模块将模拟音频信号输出去驱动喇叭的整套通路切换。请求终端收到播放终端的初始化完成响应信号后,自身也做相应的音频信号输出通路的转换,将音频数据的传输路径切换到与播放终端发送数据的数据发送路径上。
通常,对于默认设置,播放终端则将自身的播放模式设置为声音外放模式;也可以根据需求设置为耳机模式,或者听筒模式。
步骤S103,请求终端将需要播放的音频数据发送给播放终端;播放终端接收后,经过处理后进行播放。
其中,播放终端将接收到音频数据通过CPU单元进行处理,转换为播放终端内部音频处理单元CODEC所能识别的格式传送到音频处理单元CODEC中去。音频处理单元CODEC将接收到的音频数据经过内部处理后转换为音频数据发送出去,该音频数据经过CODEC内部或者外部的放大器进行功率放大后,发送给播放终端自身的发声单元(喇叭)中去,从而实现声音的外放功能。
另外,如图2所示,本发明实施例还涉及一种为请求终端播放音频数据的装置,包括:
数据接口模块201,设置为与请求终端连接,接收请求终端发送的需要播放的音频数据;
数据处理模块202,设置为将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
其中,数据接口模块201还设置为:
将接收的音频数据转换为中央处理器CPU能够处理的音频数据;
所述数据处理模块202包括:
CPU处理单元2021,设置为将所述数据接口模块发送来的音频数据转换为编译码器能够处理的音频数据;
音频处理CODEC单元2022,设置为将所述CPU处理单元发送来的音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
所述数据接口模块201还设置为:
判断所述请求终端上是否包括有用于驱动通信的程序数据,如果是,则接收请求终端发送的需要播放的音频数据,如果否,则将所述程序数据发送给所述请求终端,由其进行安装。
如图3所示,本发明实施例还涉及一种请求播放终端播放音频数据的装置,包括:
数据处理模块301,设置为将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上;
数据接口模块302,设置为与播放终端连接,将需要播放的音频数据通过数据发送路径发送给播放终端。
其中,所述数据接口模块302还设置为:
当首次与所述播放终端连接时,从所述播放终端中下载用于驱动通信的程序数据,并进行安装。
所述程序数据包括:
与所述播放终端进行数据通信的通信协议数据;
发送给播放终端的控制命令数据;其中,所述控制命令数据用于控制所述播放终端开通音频数据的播放路径;
路径切换命令数据;其中,所述路径切换命令数据用于将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上。
本发明实施例还涉及请求终端和播放终端,其中,播放终端利用上述的为请求终端播放音频数据的装置为请求终端播放音频数据。请求终端利用上述的请求播放终端播放音频数据的装置与播放终端连接,请求播放终端播放音频数据。可选的,请求终端和播放终端可以为任意的具有音频数据处理、发送、播放的终端,例如,可以为电脑、手机、平板电脑等设备。
下面,以手机和电脑为例,对本发明实施例技术方案进行详细说明:
如图4所示,电脑的音频数据请求手机播放,包括:
步骤S401,手机和电脑通过USB线连接。
本步骤中,如图5所示,手机与电脑通过USB数据线进行连接,建立信号通讯的物理链路。
步骤S402,判断电脑是否安装有手机的驱动程序,如果是,则转步骤S405,如果否,则转步骤S403。
步骤S403,电脑从手机中下载驱动程序,并完成安装。
步骤S404,电脑向手机发送声音外放请求信号。
步骤S405,手机自身完成初始化,并完成音频信号由USB经CPU到CODEC最后到喇叭的通路切换,反馈初始化完成信号给电脑。
步骤S406,电脑也完成自身其音频数据通过USB数据通道传输的切换。
步骤S407,电脑播放声音,从而传输到手机中,由手机同步外放。
本步骤中,如图6所示,当电脑中有声音数据需要同步外放时,电脑的处理器单元101(请求终端的数据处理模块)将要发送的声音数据发送到电脑的USB接口模块102(请求终端的数据接收模块)中。电脑的USB接口模块102进行信号处理,即将声音数据转换为传送的USB信号,通过USB数据线103发送到手机端的USB接口模块104(播放终端的数据接收模块)中。手机端的USB接口模块104接收并处理接收到的USB信号,将其转为CPU处理单元105能够处理的数据信号,并传送给CPU处理单元105。CPU处理单元105将包括有音频信号的数字信号处理成音频处理CODEC(COder-DECoder,编译码器)单元106能够识别的数据信号,并发送到音频处理CODEC单元106中去。音频处理CODEC单元106将接收到的数据信号处理后转换为外部喇叭的驱动信号,发送到发声单元107(喇叭)中去,从而实现了声音的外放。
另外手机与电脑的连接方式也可以由无线的方式实现。利用手机的无线收发电路与电脑连接,例如蓝牙模块、无线保真(Wireless-Fidelity,简称为WIFI)模块等与电脑相应的蓝牙模块、WIFI模块建立连接,这样打通了无线的连接通路,也可以实现声音的手机外放功能。电脑与手机的无线连接实现声音外放功能的物理链路如图7所示。当电脑中有声音需要同步外放时,电脑的处理器单元101(请求终端的数据处理模块)将要发送的声音数据传送的蓝牙/wifi无线通信模块102(请求终端的数据接口模块)中,经过该模块信号处理后以无线的方式发送出去,手机侧已经与电脑侧通过蓝牙/wifi的方式建立无线链路,手机侧的蓝牙/wifi无线模块104(播放终端的数据接口模块)将接收到了无线的声音数据信号经过自身处理后,将相应数据信号发送到CPU处理单元105中,CPU处理单元105将该包括有音频信号的数据信号转换成音频处理CODEC单元106能够识别的信号,发送到音频处理CODEC单元106中去,音频处理CODEC单元106将接收到的数据信号通过自身单元处理后,转换为外部喇叭的驱动信号发送到发声单元107(喇叭)中去,从而实现了声音的外放。
本发明实施例通过两个终端之间建立数据连接,建立音频数据的传送通道,一个终端的数据可以通过另外一个终端进行播放,扩展了终端的功能,增加了用户体验,并且具有实现方式简单、成本低的优点。
本发明实施例技术方案除了应用与手机与电脑之间的应用场景之外,还可以应用于以下场景:
请求终端(例如电脑)上保存有大量音频文件,例如学习录音(英文学习音频资料),歌曲文件等。而播放终端(例如手机或者平板电脑)由于存储容量的考虑,并不希望将音频文件拷贝到播放终端进行播放。采用本发明实施例的技术方案,就可以实现在电脑侧请求播放歌曲,在手机上收听的效果;如果二者是通过无线连接,还可以实现在一定范围内移动收听的效果,而不必限定在电脑前。
另外,当自己的终端(例如手机或平板电脑)保存有一些音频文件,需要给其他人听时,但是,基于隐私考虑,又不想将手机给对方操作,这样就可以采用本技术方案,利用手机请求将音频文件由对方的手机播放,这样,对方就可以操作自己的手机收听这些文件了,也避免占用对方手机存储空间,而且增加了隐私保护。
工业实用性:通过上述描述可知,本发明通过两个终端之间建立数据连接,建立音频数据的传送通道,一个终端的数据可以通过另外一个终端进行播放,扩展了终端的功能,增加了用户体验,并且具有实现方式简单、成本低的优点。
尽管为示例目的,已经公开了本发明的可选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。

Claims (14)

  1. 一种为请求终端播放音频数据的方法,包括:
    与请求终端连接,接收请求终端发送的需要播放的音频数据;
    将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
  2. 如权利要求1所述的为请求终端播放音频数据的方法,其中,将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放,包括:
    将接收的音频数据转换为中央处理器CPU能够处理的音频数据;
    将经过一次转换的音频数据转换为编译码器能够处理的音频数据;
    将经过两次转换的音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
  3. 如权利要求1或2所述的为请求终端播放音频数据的方法,其中,与请求终端连接后,还包括:
    判断所述请求终端上是否包括有用于驱动通信的程序数据,如果是,则接收请求终端发送的需要播放的音频数据,如果否,则将所述程序数据发送给所述请求终端,由其进行安装。
  4. 一种请求播放终端播放音频数据的方法,包括:
    与播放终端连接,将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上;
    将需要播放的音频数据通过数据发送路径发送给播放终端。
  5. 如权利要求4所述的请求播放终端播放音频数据的方法,其中,与播放终端连接后,还包括:
    当首次与所述播放终端连接时,从所述播放终端中下载用于驱动通信的程序数据,并进行安装。
  6. 如权利要求5所述的请求播放终端播放音频数据的方法,其中,所述程序数据包括:
    与所述播放终端进行数据通信的通信协议数据;
    发送给播放终端的控制命令数据;其中,所述控制命令数据用于控制所述播放终端开通音频数据的播放路径;
    路径切换命令数据;其中,所述路径切换命令数据用于将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上。
  7. 一种为请求终端播放音频数据的装置,包括:
    数据接口模块,设置为与请求终端连接,接收请求终端发送的需要播放的音频数据;
    数据处理模块,设置为将所述音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
  8. 如权利要求6所述的为请求终端播放音频数据的装置,其中,所述数据接口模块还设置为:
    将接收的音频数据转换为中央处理器CPU能够处理的音频数据;
    所述数据处理模块包括:
    CPU处理单元,设置为将所述数据接口模块发送来的音频数据转换为编译码器能够处理的音频数据;
    音频处理编译码器CODEC单元,设置为将所述CPU处理单元发送来的音频数据转换为扬声器能够识别的驱动、播发数据,由扬声器进行播放。
  9. 如权利要求7或8所述的为请求终端播放音频数据的装置,其中,所述数据接口模块还设置为:
    判断所述请求终端上是否包括有用于驱动通信的程序数据,如果是,则接收请求终端发送的需要播放的音频数据,如果否,则将所述程序数据发送给所述请求终端,由其进行安装。
  10. 一种播放终端,所述播放终端利用权利要求7~9任一项所述的为请求终端播放音频数据的装置为请求终端播放音频数据。
  11. 一种请求播放终端播放音频数据的装置,包括:
    数据处理模块,设置为将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上;
    数据接口模块,设置为与播放终端连接,将需要播放的音频数据通过数据发送路径发送给播放终端。
  12. 如权利要求11所述的请求播放终端播放音频数据的装置,其中,所述数据接口模块还设置为:
    当首次与所述播放终端连接时,从所述播放终端中下载用于驱动通信的程序数据,并进行安装。
  13. 如权利要求12所述的请求播放终端播放音频数据的装置,其中,所述程序数据包括:
    与所述播放终端进行数据通信的通信协议数据;
    发送给播放终端的控制命令数据;其中,所述控制命令数据用于控制所述播放终端 开通音频数据的播放路径;
    路径切换命令数据;其中,所述路径切换命令数据用于将音频数据的传输路径切换到与播放终端传输数据的数据发送路径上。
  14. 一种请求终端,所述请求终端利用权利要求11~13任一项所述的请求播放终端播放音频数据的装置与播放终端连接,请求播放终端播放音频数据。
PCT/CN2015/093429 2015-09-21 2015-10-30 音频数据的请求播放及播放的方法、装置及终端 WO2016145870A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510602600.X 2015-09-21
CN201510602600.XA CN106550098A (zh) 2015-09-21 2015-09-21 音频数据的请求播放及播放的方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2016145870A1 true WO2016145870A1 (zh) 2016-09-22

Family

ID=56919513

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/093429 WO2016145870A1 (zh) 2015-09-21 2015-10-30 音频数据的请求播放及播放的方法、装置及终端

Country Status (2)

Country Link
CN (1) CN106550098A (zh)
WO (1) WO2016145870A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448535A (zh) * 2021-06-25 2021-09-28 亿企赢网络科技有限公司 一种终端屏幕内容的阅读方法、装置、电子设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1732328A1 (en) * 2005-06-06 2006-12-13 Deutsche Thomson-Brandt Gmbh Method for automatically removing metadata information from audio data files
CN102724590A (zh) * 2011-03-29 2012-10-10 深圳市同洲软件有限公司 一种音频处理方法及数字电视终端和系统
CN103491404A (zh) * 2012-06-08 2014-01-01 Lg电子株式会社 移动终端和操作移动终端的方法
CN103619073A (zh) * 2013-11-08 2014-03-05 上海斐讯数据通信技术有限公司 一种基于wlan的音频共享方法及移动终端
CN103873798A (zh) * 2014-02-27 2014-06-18 小米科技有限责任公司 智能电视的声音播放方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1732328A1 (en) * 2005-06-06 2006-12-13 Deutsche Thomson-Brandt Gmbh Method for automatically removing metadata information from audio data files
CN102724590A (zh) * 2011-03-29 2012-10-10 深圳市同洲软件有限公司 一种音频处理方法及数字电视终端和系统
CN103491404A (zh) * 2012-06-08 2014-01-01 Lg电子株式会社 移动终端和操作移动终端的方法
CN103619073A (zh) * 2013-11-08 2014-03-05 上海斐讯数据通信技术有限公司 一种基于wlan的音频共享方法及移动终端
CN103873798A (zh) * 2014-02-27 2014-06-18 小米科技有限责任公司 智能电视的声音播放方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448535A (zh) * 2021-06-25 2021-09-28 亿企赢网络科技有限公司 一种终端屏幕内容的阅读方法、装置、电子设备及介质
CN113448535B (zh) * 2021-06-25 2024-01-30 亿企赢网络科技有限公司 一种终端屏幕内容的阅读方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN106550098A (zh) 2017-03-29

Similar Documents

Publication Publication Date Title
JP7137635B2 (ja) ヘッドホーン無線通信方法、メインヘッドホーン、スレーブヘッドホーンおよびヘッドホーンシステム
KR102336612B1 (ko) 외부 전자 장치의 통신 설정 정보를 이용하여 오디오 신호를 수신하기 위한 전자 장치 및 그의 동작 방법
WO2018032455A1 (zh) 一种蓝牙通信的方法及终端
JP6426079B2 (ja) Bluetoothネットワークでデータ通信を中継するための方法および装置
US10382930B2 (en) Bluetooth microphone
US9973607B2 (en) Headset adapter and a headset system
CN111447600A (zh) 无线耳机的音频共享方法、终端设备及存储介质
WO2023087793A1 (zh) 音频业务处理方法、装置、电子设备及存储介质
WO2013166967A1 (zh) 一种通过移动终端播放高保真音乐的方法及其移动终端
WO2017117293A1 (en) Simultaneous binaural presentation of multiple audio streams
WO2012068814A1 (zh) 音频处理方法及双模数字移动通信终端
WO2010069048A1 (en) Handheld electronic device and docking station wireless system
WO2016145870A1 (zh) 音频数据的请求播放及播放的方法、装置及终端
JP2020500476A (ja) スピーカ装置、スピーカ装置と連結される電子装置およびスピーカ装置の制御方法
JP2015002394A (ja) 情報処理装置及びコンピュータプログラム
WO2017185602A1 (zh) 一种耳机模式切换方法和电子设备
US10735881B2 (en) Method and apparatus for audio transfer when putting on/removing headphones plus communication between devices
KR101945174B1 (ko) Ptt 통신 서비스를 실행하기 위한 기록매체에 저장된 프로그램
US10003941B2 (en) Electronic device and its wireless network connection method
TW201419686A (zh) 先進型連接傳輸裝置
US20230362291A1 (en) Usb-c interface for a smart device
WO2022158049A1 (ja) オーディオ装置、オーディオシステム、プログラム、およびオーディオ再生環境の設定方法
KR101971607B1 (ko) 무선 음향 변환 장치
WO2019148424A1 (zh) 一种无线麦克风
JP5812975B2 (ja) 情報処理装置及び情報処理システム

Legal Events

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

Ref document number: 15885239

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15885239

Country of ref document: EP

Kind code of ref document: A1