WO2017107430A1 - 终端设备的控制方法、装置、设备及非易失性计算机存储介质 - Google Patents
终端设备的控制方法、装置、设备及非易失性计算机存储介质 Download PDFInfo
- Publication number
- WO2017107430A1 WO2017107430A1 PCT/CN2016/088154 CN2016088154W WO2017107430A1 WO 2017107430 A1 WO2017107430 A1 WO 2017107430A1 CN 2016088154 W CN2016088154 W CN 2016088154W WO 2017107430 A1 WO2017107430 A1 WO 2017107430A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- audio data
- terminal device
- application
- control information
- original audio
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 46
- 238000009432 framing Methods 0.000 claims description 12
- 230000001960 triggered effect Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 description 20
- 230000006870 function Effects 0.000 description 14
- 238000005070 sampling Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 230000006399 behavior Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B31/00—Arrangements for the associated working of recording or reproducing apparatus with related apparatus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
- H04N21/4398—Processing of audio elementary streams involving reformatting operations of audio signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
Definitions
- the present invention relates to communication technologies, and in particular, to a terminal device control method, apparatus, device, and non-volatile computer storage medium.
- terminal devices integrate more and more functions, so that more and more corresponding applications (Applications, APPs) are included in the system function list of the terminal devices.
- An application installed on some terminal devices which is referred to as an interconnection application in the present invention, needs to be installed by using a corresponding cooperation application on another terminal device connected thereto, otherwise there is no use value, especially for some vehicle interconnections. application.
- the application may send the audio data and the play control information of the audio data to the interconnected application, and the interconnected application according to the obtained playback control information.
- the playback control processing of the audio data is, for example, starting playback, pausing, resume playback, and the like.
- the synchronization error may exist, which may cause a certain delay in the playback control process performed by the interconnected application, thereby causing the audio data.
- Real-time processing reduce.
- aspects of the present invention provide a method, apparatus, and a non-volatile computer storage medium for controlling a terminal device to improve real-time performance of audio data processing.
- An aspect of the present invention provides a method for controlling a terminal device, including:
- the original audio data of the second terminal device includes:
- Audio data of the application other than the matching application on the second terminal device
- any possible implementation manner further provide an implementation manner of adding play control information of the original audio data to the original audio data to obtain audio data to be played, and further include:
- the adding the play control information of the original audio data to the original audio data to obtain audio data to be played including:
- the play control information may include:
- the first terminal device is an in-vehicle terminal device
- the second terminal device is a user terminal device.
- Another aspect of the present invention provides a method for controlling another terminal device, including:
- the parsing processing the audio data to be played to obtain original audio data and play control information of the original audio data including :
- the play control information may include:
- the first terminal device is an in-vehicle terminal device
- the second terminal device is a user terminal device.
- Another aspect of the present invention provides a control device for a terminal device, including:
- An acquiring unit configured to obtain original audio data of the second terminal device connected to the first terminal device where the interconnection application is located;
- a framing unit configured to add play control information of the original audio data to the original audio data to obtain audio data to be played
- a sending unit configured to send the to-be-played audio data to the connected application.
- the original audio data of the second terminal device includes:
- Audio data of the application other than the matching application on the second terminal device
- the play control information may include:
- the first terminal device is an in-vehicle terminal device
- the second terminal device is a user terminal device.
- Another aspect of the present invention provides a control device for another terminal device, including:
- a receiving unit configured to receive a second terminal corresponding to the interconnected application on the first terminal device The audio data to be played by the second terminal device sent by the cooperation application on the device;
- a parsing unit configured to parse the audio data to be played to obtain original audio data and play control information of the original audio data
- a playing unit configured to perform playback control processing on the original audio data according to the playing control information.
- parsing unit is specifically configured to
- the play control information may include:
- the first terminal device is an in-vehicle terminal device
- the second terminal device is a user terminal device.
- an apparatus comprising:
- One or more processors are One or more processors;
- One or more programs the one or more programs being stored in the memory, when executed by the one or more processors:
- an apparatus comprising:
- One or more processors are One or more processors;
- One or more programs the one or more programs being stored in the memory, when executed by the one or more processors:
- a nonvolatile computer storage medium stores one or more programs that, when executed by a device, cause the device to:
- a nonvolatile computer storage medium storing one or more programs when the one or more programs are executed by a device causes The device:
- the embodiment of the present invention obtains the original audio data of the second terminal device connected to the first terminal device where the interconnection application is located, and then adds the playback control information of the original audio data to the In the original audio data, the audio data to be played is obtained, so that the audio data to be played can be sent to the interconnection application, since the audio data and the playback control information of the audio data are no longer needed to be sent to the interconnection application separately. Instead, the playback control information of the audio data is added to the audio data and sent to the interconnection. Application, therefore, there is no synchronization error, which can effectively reduce the delay of the playback control process performed by the interconnected application, thereby improving the real-time performance of the audio data processing.
- the embodiment of the present invention receives the audio data to be played by the second terminal device that is sent by the cooperation application on the second terminal device corresponding to the interconnection application on the first terminal device. And performing parsing processing on the to-be-played audio data to obtain original audio data and play control information of the original audio data, so that the original audio data can be played back according to the play control information, and Then, the audio data and the playback control information of the audio data are separately acquired, and the audio data added with the playback control information is acquired together, which can effectively reduce the delay of the playback control process performed by the interconnected application, thereby improving the real-time processing of the audio data. Sex.
- the technical solution provided by the present invention can greatly improve the user experience.
- FIG. 1 is a schematic flowchart of a method for controlling a terminal device according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of another method for controlling a terminal device according to another embodiment of the present invention.
- FIG. 3 is a schematic structural diagram of a device for controlling a terminal device according to another embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of another apparatus for controlling a terminal device according to another embodiment of the present invention.
- the user terminal device involved in the embodiments of the present invention may include, but is not limited to, a mobile phone, a personal digital assistant (PDA), a wireless handheld device, a tablet computer, and a personal computer (Personal Computer). , PC), MP3 player, MP4 player, wearable device (for example, smart glasses, smart watches, smart bracelets, etc.).
- the vehicle-mounted terminal device involved in the embodiment of the present invention may also be referred to as a vehicle, and refers to an abbreviation of an in-vehicle infotainment product installed in a car.
- the car machine must be capable of realizing people and vehicles, vehicles and the outside world ( Information communication between car and car).
- FIG. 1 is a schematic flowchart of a method for controlling a terminal device according to an embodiment of the present invention. Figure, as shown in Figure 1.
- the first terminal device and the second terminal device pass at least, but are not limited to, a Bluetooth connection, a Universal Serial Bus (USB) connection, and at least a Wireless Fidelity (WI-FI) connection.
- a Bluetooth connection a Universal Serial Bus (USB) connection
- a Wireless Fidelity (WI-FI) connection a Wireless Fidelity connection.
- One of the connections is not specifically limited in this embodiment.
- the execution body of the application of the second terminal device that is, the application corresponding to the interconnection application, or the application of the second terminal device (ie, the cooperation corresponding to the interconnection application)
- the functional unit such as a plug-in or a software development kit (SDK) in the application is not particularly limited in this embodiment.
- the application may be a local application installed on the second terminal device (nativeApp), or may also be a web application (webApp) of the browser on the second terminal device. Special restrictions are made.
- the playback control information of the original audio data is added to the original audio data to obtain audio data to be played. Enabling the audio data to be played to be sent to the interconnection application, since the audio data and the playback control information of the audio data are no longer needed to be sent to the interconnection application separately, but the playback control information of the audio data is added. It is added to the audio data and sent to the interconnect application. Therefore, there is no synchronization error, which can effectively reduce the delay of the playback control process performed by the interconnected application, thereby improving the real-time performance of the audio data processing.
- the first terminal device is preferably an in-vehicle terminal device; and the second terminal device is preferably a user terminal device.
- the first terminal device may also be a user terminal device; the second terminal device may also be an in-vehicle terminal device.
- the applications installed on the user terminal device can be executed separately, without relying on another terminal device connected thereto for normal use, or relying on a corresponding cooperation application on another terminal device connected thereto. Normal use.
- the device connection between the first terminal device and the second terminal device is established, based on the established device connection, it is further required to further establish cooperation between the interconnected application on the first terminal device and the second terminal device. Communication connection between applications. In this way, the user can work with the application or cooperate with the second terminal device where the application is located through the interconnection application.
- the communication connection may include, but is not limited to, at least one of a Bluetooth connection, a USB connection, and a WI-FI connection, which is not specifically limited in this embodiment.
- the obtained original audio data of the second terminal device may be the second terminal device corresponding to the interconnected application.
- the applied audio data for example, the song audio data acquired by the application, the TTS audio data (TTS) outputted by the navigation function of the application, or the second terminal device
- TTS TTS audio data
- the audio data of the application other than the application, for example, the song audio data acquired by the QQ music, etc., is not particularly limited in this embodiment.
- the so-called audio data refers to a digital signal converted from an audio signal, for example, pulse code modulation (PCM) data obtained by sampling, quantizing and encoding the audio signal.
- PCM pulse code modulation
- an audio file in an encoded format is formed.
- the audio file may include audio files of various encoding formats in the prior art, for example, Moving Picture Experts Group (MPEG) Layer 3 (MPEG Layer, MP3) format audio file, WMA (Windows)
- MPEG Moving Picture Experts Group
- MPEG Layer MP3
- WMA Wideband Adaptive Binary Arithmetic Coding
- AAC Advanced Audio Coding
- APE APE format audio file
- the audio file to be processed for example, the MP3 format audio file of the song to be played, etc.
- the audio file to be processed may be obtained from the storage device of the second terminal device or the Internet, and then, The data block of the audio file to be processed is subjected to decoding processing to obtain the original audio data.
- decoding processing For a detailed description of the decoding process, refer to related content in the prior art, and details are not described herein again.
- the TTS audio data (Text To Speech, TTS) can be directly obtained.
- the storage device of the second terminal device may be a slow storage device, which may be a hard disk of the computer system, or may be a non-operating memory of the mobile phone, that is, a physical memory, for example, a read only memory ( The Read-Only Memory (ROM), the memory card, and the like are not particularly limited in this embodiment.
- a slow storage device which may be a hard disk of the computer system, or may be a non-operating memory of the mobile phone, that is, a physical memory, for example, a read only memory (The Read-Only Memory (ROM), the memory card, and the like are not particularly limited in this embodiment.
- ROM Read-Only Memory
- the storage device of the second terminal device may also be a fast storage device, which may be a memory of the computer system, or may be a running memory of the mobile phone, that is, a system memory, for example, a random access memory ( Random Access Memory, RAM) and the like are not particularly limited in this embodiment.
- a fast storage device which may be a memory of the computer system, or may be a running memory of the mobile phone, that is, a system memory, for example, a random access memory ( Random Access Memory, RAM) and the like are not particularly limited in this embodiment.
- the so-called playback control information refers to some instructions for performing playback control on the acquired original audio data, and may include, but is not limited to, the following instructions:
- the start play command which may also be referred to as an initialization command, is used to instruct an audio track initialization operation to start playing audio data using the initialized audio track.
- the start play command may include a format parameter, so that the receiving end may perform an initialization operation on the audio track according to the format parameter.
- the format parameter may include, but is not limited to, at least one of a compression format, a sampling rate, a sampling depth, and a code rate.
- sampling rate also known as the sampling speed or sampling frequency
- sampling speed defines the number of samples extracted from the continuous signal and composed of discrete signals per second, expressed in Hertz (Hz).
- the sampling depth refers to a value of a sampling point represented by a number of bits, which determines the number of bits of the value of each sampling point, for example, 8 bits, 16 bits or 24 bits.
- the code rate refers to the number of bits processed per unit time, and the unit is bits per second (bps).
- the pause command is used to instruct to pause playing audio data.
- the resume play command is used to instruct to resume playing audio data.
- the stop instruction is used to instruct to stop playing audio data.
- the jump instruction is used to indicate that the audio data is skipped, for example, the previous one, the next one, the fast forward or the fast reverse.
- an operation of acquiring the play control information of the original audio data may be further performed.
- the user may obtain audio related operation event data of the second terminal device, and then obtain playback control information of the original audio data according to the audio related operation event data, for example, The start playback command of the audio data of the song is output in conjunction with the music function in the application.
- the so-called audio related operation event data is used to operate the operation event data of the audio data.
- the audio related operation event data of the second terminal device is obtained by the user through the interconnection application on the first terminal device, based on the communication connection between the cooperation application and the interconnection application.
- the so-called audio-related operation event data of the second terminal device connected to the first terminal device by the user on the first terminal device refers to the user in the interconnection application on the first terminal device.
- the audio-related operational behavior performed, for example, a click, a double-click, a drag, etc., mapping data related to an audio-related operational event on a display device of the second terminal device may include, but is not limited to, an audio-related operational event and The coordinate data of the audio related operation event.
- the interconnection application on the first terminal device may project the interface output by the display device of the second terminal device on the display device of the first terminal device by using the cooperation application corresponding to the interconnection application on the second terminal device. Users can operate on the interface projected in the connected application, such as touch operation or physical button operation, etc.
- the audio data of all the applications on the second terminal device connected to the first terminal device that is, the audio data of the cooperation application corresponding to the interconnection application and the application other than the cooperation application corresponding to the interconnection application Audio data.
- the interconnected application on the first terminal device may also be used as an operation terminal, such as a mouse or a remote controller, by using the corresponding application corresponding to the connected application on the second terminal device, and the user may pass the interconnection application.
- Operation for example, a touch operation or a physical key operation, etc., so that audio data of all applications on the second terminal device connected to the first terminal device connected thereto can be realized, that is, the cooperative application corresponding to the interconnection application Audio data and audio data of other applications than the matching application corresponding to the interconnected application.
- the operation behavior of the user in the interconnected application on the first terminal device may be specifically
- the coordinate data is mapped to coordinate data of an operation event on the display device of the second terminal device.
- the current terminal devices are all touch-type terminal devices, and the display device has a touch input function in addition to the display function. Any operational behavior on the display device of the terminal device needs to be decomposed into a set of several operational events, and the operating system can process the relevant data of these operational events accordingly.
- the operation event includes at least one of the following events:
- the so-called Down event is only triggered once in an operation behavior, it is in the finger just Triggered when touching the display device of the terminal device.
- the so-called Up event is triggered only once in one operation, and is triggered when the finger leaves the display device of the terminal device.
- the so-called Move event will trigger 0, 1 or more Move events during an operation. If the finger has been moving on the display device of the terminal device, the Move event will be triggered all the time, and both are in the Down event. After the event with the Up.
- the cooperation application on the second terminal device corresponding to the interconnection application or other applications on the second terminal device except the cooperation application may be acquired.
- the playback control information of the original audio data for example, the start playback instruction triggered when the TTS audio data is output in conjunction with the navigation function of the application.
- the play control information may be specifically added to a blank frame to generate an audio control frame, and then, the audio control frame may be Inserted into the original audio data to obtain the audio data to be played.
- the audio control frame where the play control information is located may be inserted into different positions of the original audio data according to the play control information. Then, the original audio data may be subjected to frame processing according to the insertion position of the audio control frame to obtain a plurality of audio data frames, for example, according to a preset data size such as 30 kilobytes (k) bytes or preset.
- the time size is, for example, 20 milliseconds (ms), etc., and the original audio data before and/or after the audio control frame is segmented to obtain a plurality of pieces of audio data, and each piece of audio data is added to the data portion of the blank frame to obtain Several audio data frames.
- the audio data frame and the audio control frame obtained are composed of the audio data to be played.
- the play control information is a start play instruction
- the play can be The audio control frame in which the control information is placed is inserted in front of the original audio data.
- the audio control frame in which the play control information is located may be inserted into a position in the original audio data that needs to be paused. It can be understood that if there is audio data behind the audio control frame, the audio data behind the audio control frame can be discarded, and the audio data need not be sent to the interconnected application.
- the audio control frame in which the play control information is located may be inserted in front of the original audio data.
- the audio control frame in which the play control information is located may be inserted into a position in the original audio data that needs to be stopped, for example, behind the original audio data.
- the audio data behind the audio control frame can be discarded, and the audio data need not be sent to the interconnected application.
- the audio control frame in which the play control information is located may be inserted in front of the original audio data.
- the play control information may be specifically added to a frame header of the audio control frame, or the play control information may be added to a data portion of the audio control frame.
- the embodiment is not particularly limited thereto.
- the original audio data of the second terminal device connected to the first terminal device where the interconnection application is connected is obtained, and then the playback control information of the original audio data is added to the original audio data to obtain a to-be-played.
- Audio data enabling the audio data to be played to be sent to the interconnected application, since the audio data and the play control information of the audio data are no longer needed to be sent to the interconnected application separately, but the playback control of the audio data is controlled
- Information is added to the audio data and sent to the interconnect application. Therefore, there is no synchronization error, which can effectively reduce the delay of the playback control process performed by the interconnected application, thereby improving the real-time performance of the audio data processing.
- FIG. 2 is a schematic flowchart of another method for controlling a terminal device according to another embodiment of the present invention, as shown in FIG. 2 .
- execution body of 201 to 203 may be an application located at the first terminal device, that is, an interconnection application, or may be a plug-in or a software development kit disposed in an application (ie, an interconnection application) located in the first terminal device.
- Functional units such as (Software Development Kit, SDK) are not particularly limited in this embodiment.
- the interconnection application may be a local application installed on the first terminal device (nativeApp), or may also be a web application (webApp) of the browser on the first terminal device, which is used in this embodiment. No particular limitation is imposed.
- the audio data to be played by the second terminal device sent by the cooperation application on the second terminal device corresponding to the interconnection application on the first terminal device is received, and then the audio data to be played is parsed and processed.
- Obtaining original audio data and play control information of the original audio data so that the original audio data can be subjected to play control processing according to the play control information, and the audio data and the audio data are no longer required to be separately acquired.
- the control information is played, and the audio data to which the playback control information is added is acquired together, which can effectively reduce the delay of the playback control process performed by the connected application, thereby improving the real-time performance of the audio data processing.
- the received audio data to be played is generated and transmitted by using the technical solution provided by the embodiment corresponding to FIG. 1.
- the technical solution provided by the embodiment corresponding to FIG. 1 For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again.
- the audio data to be played may be parsed to obtain the playback control in the original audio data and the audio control frame. information.
- the frame header of the audio control frame in the audio data to be played may be parsed to obtain the play control information in the audio control frame, and the audio to be played.
- the data portion of the audio data frame in the data is parsed to obtain the original audio data in the audio data frame.
- the data portion of the audio control frame in the audio data to be played may be parsed to obtain the play control information in the audio control frame, and the to-be-played The data portion of the audio data frame in the audio data is parsed to obtain the original audio data in the audio data frame.
- the play control information is a start play instruction
- the format parameter, the audio track is initialized, and the original audio data is started to be played by using the initialized audio track.
- the original audio data may be temporarily stopped according to the pause instruction.
- the original audio data may continue to be played according to the resume play instruction.
- the original audio data may be stopped according to the stop instruction.
- the original audio data may be jumped to play according to the jump instruction.
- the audio data to be played by the second terminal device sent by the cooperation application on the second terminal device corresponding to the interconnection application on the first terminal device is received, and then the audio data to be played is further performed.
- Parsing processing to obtain original audio data and playback control information of the original audio data so that playback control processing can be performed on the original audio data according to the playback control information, and it is no longer necessary to separately acquire audio data and the audio data.
- the playback control information, together with the audio data added with the playback control information, can effectively reduce the delay of the playback control process performed by the interconnected application, thereby improving the real-time performance of the audio data processing.
- FIG. 3 is a schematic structural diagram of a device for controlling a terminal device according to another embodiment of the present invention, as shown in FIG. 3.
- the control device of the terminal device of this embodiment may include an obtaining unit 31, a framing unit 32, and a transmitting unit 33.
- the acquiring unit 31 is configured to acquire original audio data of the second terminal device connected to the first terminal device where the interconnection application is located, and the framing unit 32 is configured to add the playback control information of the original audio data to the original In the audio data, the audio data to be played is obtained; the sending unit 33 is configured to send the audio data to be played to the connected application.
- the first terminal device and the second terminal device pass at least, but are not limited to, a Bluetooth connection, a Universal Serial Bus (USB) connection, and at least a Wireless Fidelity (WI-FI) connection.
- a Bluetooth connection a Universal Serial Bus (USB) connection
- a Wireless Fidelity (WI-FI) connection a Wireless Fidelity connection.
- One of the connections is not specifically limited in this embodiment.
- control device of the terminal device in this embodiment may be an application corresponding to the second terminal device, that is, an application corresponding to the interconnection application, or may be an application located at the second terminal device (ie, an interconnection application office).
- the functional unit such as a plug-in or a software development kit (SDK) in the corresponding application is not particularly limited in this embodiment.
- the application may be a local application installed on the second terminal device (nativeApp), or may also be a web application (webApp) of the browser on the second terminal device. Special restrictions are made.
- the first terminal device is preferably an in-vehicle terminal device; and the second terminal device is preferably a user terminal device.
- the first terminal device may also be a user terminal device; the second terminal device may also be an in-vehicle terminal device.
- the applications installed on the user terminal device can be executed separately, without relying on another terminal device connected thereto for normal use, or relying on a corresponding cooperation application on another terminal device connected thereto. Normal use.
- the original audio data of the second terminal device acquired by the acquiring unit 31 may be the second terminal device corresponding to the interconnected application.
- the audio data of the matching application for example, the song audio data acquired by the application, the TTS audio data (TTS) outputted by the navigation function of the application, or the like, or may also be on the second terminal device.
- the audio data of the application other than the cooperation application for example, the song audio data acquired by the QQ music, etc., is not particularly limited in this embodiment.
- the so-called playback control information refers to some instructions for performing playback control on the acquired original audio data, and may include, but is not limited to, the following instructions:
- the framing unit 22 may be further configured to acquire audio related operation event data of a user operating the second terminal device, and according to the audio correlation.
- the event data is manipulated to obtain playback control information of the original audio data.
- the framing unit 22 may be further configured to obtain a matching application or the first part of the second terminal device corresponding to the interconnection application. Playback control information of the original audio data triggered by the application other than the matching application on the second terminal device.
- the framing unit 22 may be specifically configured to add the play control information to a blank frame to generate an audio control frame; and A control frame is inserted into the original audio data to obtain the audio data to be played.
- the original audio data of the second terminal device connected to the first terminal device where the interconnection application is connected is obtained by the acquiring unit, and then the playback control information of the original audio data is added to the original audio data by the framing unit.
- the sending unit can send the to-be-played audio data to the interconnected application, since it is no longer necessary to separately send the audio data and the play control information of the audio data to the interconnected application.
- the playback control information of the audio data is added to the audio data and sent to the interconnection application, so there is no synchronization error, which can effectively reduce the playback control performed by the connected application.
- Reasonable delay which improves the real-time performance of audio data processing.
- FIG. 4 is a schematic structural diagram of another apparatus for controlling a terminal device according to another embodiment of the present invention, as shown in FIG. 4 .
- the control device of the terminal device of this embodiment may include a receiving unit 41, a parsing unit 42, and a playing unit 43.
- the receiving unit 41 is configured to receive audio data to be played by the second terminal device sent by the cooperation application on the second terminal device corresponding to the interconnection application on the first terminal device
- the parsing unit 42 is configured to The audio data to be played is subjected to parsing processing to obtain original audio data and play control information of the original audio data.
- the playing unit 43 is configured to perform play control processing on the original audio data according to the play control information.
- control device of the terminal device in this embodiment may be an application located in the first terminal device, that is, an interconnection application, or may be a plug-in or software disposed in an application (ie, an interconnection application) located in the first terminal device.
- a functional unit such as a Software Development Kit (SDK) is not particularly limited in this embodiment.
- the interconnection application may be a local application installed on the first terminal device (nativeApp), or may also be a web application (webApp) of the browser on the first terminal device, which is used in this embodiment. No particular limitation is imposed.
- the audio data to be played received by the receiving unit 41 is generated and transmitted by using the technical solution provided by the embodiment corresponding to FIG. 3.
- the audio data to be played received by the receiving unit 41 is generated and transmitted by using the technical solution provided by the embodiment corresponding to FIG. 3.
- the parsing unit 42 may be configured to parse the audio data to be played to obtain the original audio data and the audio control frame.
- the playback control information may be configured to parse the audio data to be played to obtain the original audio data and the audio control frame.
- the audio data to be played by the second terminal device sent by the cooperation application on the second terminal device corresponding to the interconnection application on the first terminal device is received by the receiving unit, and then the parsing unit
- the audio data to be played is parsed to obtain original audio data and play control information of the original audio data, so that the playing unit can perform playback control processing on the original audio data according to the play control information, and no longer need to separately Acquiring the audio data and the play control information of the audio data, together with the audio data added with the play control information, can effectively reduce the delay of the play control process performed by the interconnected application, thereby improving the real-time performance of the audio data processing.
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some connections.
- the indirect coupling or communication connection of the port, device or unit may be in electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
- the integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
- the software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an audio processing engine, or a network device, etc.) or a processor to perform various embodiments of the present invention. Part of the steps of the method.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
本发明提供终端设备的控制方法、装置、设备及非易失性计算机存储介质。一种终端设备的控制方法,通过获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据,进而将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据,使得能够将所述待播放音频数据,发送给所述互联应用,由于不再需要将音频数据与该音频数据的播放控制信息分别发送给互联应用,而是将音频数据的播放控制信息添加到音频数据中一起发送给互联应用,因此,不会存在同步误差,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
Description
本申请要求了申请日为2015年12月25日,申请号为201510994007.4发明名称为“终端设备的控制方法及装置”的中国专利申请的优先权。
本发明涉及通信技术,尤其涉及终端设备的控制方法、装置、设备及非易失性计算机存储介质。
随着通信技术的发展,终端设备集成了越来越多的功能,从而使得终端设备的系统功能列表中包含了越来越多相应的应用(Application,APP)。有些终端设备上所安装的应用,本发明中称为互联应用,需要通过与其连接的另一个终端设备上安装一个相应的配合应用才能正常使用,否则没有任何使用价值,特别是对于一些车机互联应用。通常情况下,为了使得互联应用能够获取并控制配合应用所在终端设备的音频数据,配合应用可以向互联应用发送音频数据和该音频数据的播放控制信息,由互联应用根据所获得的播放控制信息,对音频数据进行播放控制处理例如,开始播放、暂停、恢复播放等。
然而,由于配合应用将音频数据与该音频数据的播放控制信息分别发送给互联应用,使得可能会存在同步误差,可能会导致互联应用所进行的播放控制处理有一定的延迟,从而导致了音频数据处理的实时性的
降低。
发明内容
本发明的多个方面提供终端设备的控制方法、装置、设备及非易失性计算机存储介质,用以提高音频数据处理的实时性。
本发明的一方面,提供一种终端设备的控制方法,包括:
获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;
将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;
将所述待播放音频数据,发送给所述互联应用。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述第二终端设备的原始音频数据,包括:
所述互联应用所对应的所述第二终端设备上的配合应用的音频数据;或者
所述第二终端设备上除了所述配合应用之外的其他应用的音频数据。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据之前,还包括:
获取用户操作所述第二终端设备的音频相关操作事件数据;以及根
据所述音频相关操作事件数据,获得所述原始音频数据的播放控制信息;或者
获取所述互联应用所对应的所述第二终端设备上的配合应用或所述第二终端设备上除了所述配合应用之外的其他应用所触发的所述原始音频数据的播放控制信息。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据,包括:
将所述播放控制信息添加到空白帧中,以生成音频控制帧;
将所述音频控制帧插入到所述原始音频数据中,以获得所述待播放音频数据。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述播放控制信息可以包括:
开始播放指令;或者
暂停指令;或者
恢复播放指令;或者
停止指令;或者
跳转指令。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述第一终端设备为车载终端设备;
所述第二终端设备为用户终端设备。
本发明的另一方面,提供另一种终端设备的控制方法,包括:
接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;
对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;
根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息,包括:
对所述待播放音频数据进行解析处理,以获得所述原始音频数据和音频控制帧中的所述播放控制信息。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述播放控制信息可以包括:
开始播放指令;或者
暂停指令;或者
恢复播放指令;或者
停止指令;或者
跳转指令。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述第一终端设备为车载终端设备;
所述第二终端设备为用户终端设备。
本发明的另一方面,提供一种终端设备的控制装置,包括:
获取单元,用于获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;
分帧单元,用于将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;
发送单元,用于将所述待播放音频数据,发送给所述互联应用。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述第二终端设备的原始音频数据,包括:
所述互联应用所对应的所述第二终端设备上的配合应用的音频数据;或者
所述第二终端设备上除了所述配合应用之外的其他应用的音频数据。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述分帧单元,还用于
获取用户操作所述第二终端设备的音频相关操作事件数据;以及根据所述音频相关操作事件数据,获得所述原始音频数据的播放控制信息;或者
获取所述互联应用所对应的所述第二终端设备上的配合应用或所述
第二终端设备上除了所述配合应用之外的其他应用所触发的所述原始音频数据的播放控制信息。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述分帧单元,具体用于
将所述播放控制信息添加到空白帧中,以生成音频控制帧;以及
将所述音频控制帧插入到所述原始音频数据中,以获得所述待播放音频数据。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述播放控制信息可以包括:
开始播放指令;或者
暂停指令;或者
恢复播放指令;或者
停止指令;或者
跳转指令。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述第一终端设备为车载终端设备;
所述第二终端设备为用户终端设备。
本发明的另一方面,提供另一种终端设备的控制装置,包括:
接收单元,用于接收第一终端设备上的互联应用所对应的第二终端
设备上的配合应用所发送的所述第二终端设备的待播放音频数据;
解析单元,用于对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;
播放单元,用于根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述解析单元,具体用于
对所述待播放音频数据进行解析处理,以获得所述原始音频数据和音频控制帧中的所述播放控制信息。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述播放控制信息可以包括:
开始播放指令;或者
暂停指令;或者
恢复播放指令;或者
停止指令;或者
跳转指令。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述第一终端设备为车载终端设备;
所述第二终端设备为用户终端设备。
本发明的另一方面,提供一种设备,包括:
一个或者多个处理器;
存储器;
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:
获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;
将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;
将所述待播放音频数据,发送给所述互联应用。
本发明的另一方面,提供一种设备,包括:
一个或者多个处理器;
存储器;
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:
接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;
对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;
根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
本发明的另一方面,提供一种非易失性计算机存储介质,所述非易
失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:
获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;
将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;
将所述待播放音频数据,发送给所述互联应用。
本发明的另一方面,提供一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:
接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;
对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;
根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
由所述技术方案可知,一方面,本发明实施例通过获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据,进而将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据,使得能够将所述待播放音频数据,发送给所述互联应用,由于不再需要将音频数据与该音频数据的播放控制信息分别发送给互联应用,而是将音频数据的播放控制信息添加到音频数据中一起发送给互联
应用,因此,不会存在同步误差,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
由所述技术方案可知,另一方面,本发明实施例通过接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据,进而对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息,使得能够根据所述播放控制信息,对所述原始音频数据进行播放控制处理,不再需要分别获取音频数据与该音频数据的播放控制信息,而是一起获取添加了播放控制信息的音频数据,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
另外,采用本发明所提供的技术方案,能够极大提升用户体验。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一实施例提供的一种终端设备的控制方法的流程示意图;
图2为本发明另一实施例提供的另一种终端设备的控制方法的流程示意图;
图3为本发明另一实施例提供的一种终端设备的控制装置的结构示意图;
图4为本发明另一实施例提供的另一种终端设备的控制装置的结构示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的全部其他实施例,都属于本发明保护的范围。
需要说明的是,本发明实施例中所涉及的用户终端设备可以包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、个人电脑(Personal Computer,PC)、MP3播放器、MP4播放器、可穿戴设备(例如,智能眼镜、智能手表、智能手环等)等。本发明实施例中所涉及的车载终端设备,还可以称为车机,指的是安装在汽车里面的车载信息娱乐产品的简称,车机在功能上要能够实现人与车,车与外界(车与车)的信息通信。
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
图1为本发明一实施例提供的一种终端设备的控制方法的流程示意
图,如图1所示。
101、获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据。
本发明中,第一终端设备与第二终端设备通过但不限于蓝牙连接、通用串行总线(Universal Serial Bus,USB)连接和无线相容性认证(Wireless Fidelity,WI-FI)连接中的至少一项进行连接,本实施例对此不进行特别限定。
102、将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据。
103、将所述待播放音频数据,发送给所述互联应用。
需要说明的是,101~103的执行主体可以为位于第二终端设备的应用即互联应用所对应的配合应用,或者还可以为设置在位于第二终端设备的应用(即互联应用所对应的配合应用)中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,本实施例对此不进行特别限定。
可以理解的是,所述应用可以是安装在第二终端设备上的本地程序(nativeApp),或者还可以是第二终端设备上的浏览器的一个网页程序(webApp),本实施例对此不进行特别限定。
这样,通过获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据,进而将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据,使得能够将所述待播放音频数据,发送给所述互联应用,由于不再需要将音频数据与该音频数据的播放控制信息分别发送给互联应用,而是将音频数据的播放控制信息添
加到音频数据中一起发送给互联应用,因此,不会存在同步误差,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
可选地,在本实施例的一个可能的实现方式中,所述第一终端设备优选为车载终端设备;所述第二终端设备优选为用户终端设备。
反过来,所述第一终端设备也可以为用户终端设备;所述第二终端设备也可以为车载终端设备。但是,在实际应用中,用户终端设备上所安装的应用都可以单独执行,无需依赖与其连接的另一个终端设备才能正常使用,或者依赖与其连接的另一个终端设备上安装一个相应的配合应用才能正常使用。
本发明中,在完成第一终端设备与第二终端设备之间的设备连接建立之后,基于所建立的设备连接,还需要进一步建立第一终端设备上的互联应用与第二终端设备上的配合应用之间的通信连接。这样,用户才可以通过互联应用,操作配合应用或者配合应用所在第二终端设备。
可以理解的是,所述通信连接可以包括但不限于蓝牙连接、USB连接和WI-FI连接中的至少一项,本实施例对此不进行特别限定。
可选地,在本实施例的一个可能的实现方式中,在101中,所获取的所述第二终端设备的原始音频数据,可以为所述互联应用所对应的所述第二终端设备上的配合应用的音频数据,例如,配合应用所获取的歌曲音频数据、配合应用的导航功能所输出的TTS音频数据(Text To Speech,TTS)等,或者还可以为所述第二终端设备上除了所述配合应用之外的其他应用的音频数据,例如,QQ音乐所获取的歌曲音频数据等,本实施例对此不进行特别限定。
所谓的音频数据,是指由对音频信号转换而来的数字信号,例如,对所述音频信号进行抽样、量化和编码处理,所获得的脉冲编码调制(Pulse Code Modulation,PCM)数据。编码处理的详细描述可以参见现有技术中的相关内容,此处不再赘述。最后,对音频数据进行格式编码之后,就形成了编码格式的音频文件。
其中,所述音频文件可以包括现有技术中各种编码格式的音频文件,例如,动态图像专家组(Moving Picture Experts Group,MPEG)层3(MPEGLayer-3,MP3)格式音频文件、WMA(Windows Media Audio,WMA)格式音频文件、高级音频编码(Advanced Audio Coding,AAC)格式音频文件或APE格式音频文件等,本实施例对此不进行特别限定。
具体地,若用户在使用配合应用的音乐功能,具体可以从第二终端设备的存储设备或者互联网上,获取待处理音频文件,例如,待播放歌曲的MP3格式音频文件等,进而,则可以对所述待处理音频文件的数据块进行解码处理,以获得所述原始音频数据。解码处理的详细描述可以参见现有技术中的相关内容,此处不再赘述。若用户在使用配合应用的导航功能,具体可以直接获取TTS音频数据(Text To Speech,TTS)。
在一个具体的实现过程中,所述第二终端设备的存储设备可以慢速存储设备,具体可以为计算机系统的硬盘,或者还可以为手机的非运行内存即物理内存,例如,只读存储器(Read-Only Memory,ROM)和内存卡等,本实施例对此不进行特别限定。
在另一个具体的实现过程中,所述第二终端设备的存储设备还可以为快速存储设备,具体可以为计算机系统的内存,或者还可以为手机的运行内存即系统内存,例如,随机存储器(Random Access Memory,
RAM)等,本实施例对此不进行特别限定。
本发明中,所谓的播放控制信息,是指用于对所获取的原始音频数据进行播放控制的一些指令,可以包括但不限于如下指令:
开始播放指令;或者
暂停指令;或者
恢复播放指令;或者
停止指令;或者
跳转指令。
所述开始播放指令,又可以称为初始化指令,用以指示对音轨进行初始化操作,利用经过初始化的音轨,开始播放音频数据。所谓的音轨,用于将音频数据记录在特定的时间位置,并进行播放处理。具体来说,开始播放指令中可以包括格式参数,这样,接收端则可以根据该格式参数,对音轨进行初始化操作。
其中,所述格式参数可以包括但不限于压缩格式、采样率、采样深度和码率中的至少一项。
所述采样率,也称为采样速度或者采样频率,定义了每秒从连续信号中提取并组成离散信号的采样个数,它用赫兹(Hz)来表示。
所述采样深度,指一个采样点的值由几比特数来表示,它决定了每个采样点的值的位数,例如,8比特(bit)、16位或24位等。
所述码率,是指单位时间内处理的比特的数量,单位是每秒比特(bps)。
所述暂停指令,用以指示暂停播放音频数据。
所述恢复播放指令,用以指示恢复播放音频数据。
所述停止指令,用以指示停止播放音频数据。
所述跳转指令,用以指示跳转播放音频数据,例如,上一首、下一首、快进或快退等指令。
可选地,在本实施例的一个可能的实现方式中,在102之前,还可以进一步执行获取所述原始音频数据的播放控制信息的操作。
在一个具体的实现过程中,具体可以获取用户操作所述第二终端设备的音频相关操作事件数据,进而则可以根据所述音频相关操作事件数据,获得所述原始音频数据的播放控制信息,例如,配合应用中音乐功能输出歌曲的音频数据的开始播放指令。
所谓的音频相关操作事件数据,用于操作音频数据的操作事件数据。具体地,具体可以基于配合应用与所述互联应用之间的通信连接,获取所述用户通过所述第一终端设备上的互联应用操作所述第二终端设备的音频相关操作事件数据。
本发明中,所谓的用户通过第一终端设备上的互联应用操作与所述第一终端设备连接的第二终端设备的音频相关操作事件数据,是指用户在第一终端设备上的互联应用中所进行的音频相关操作行为,例如,单击、双击、拖动等操作,映射到第二终端设备的显示装置上的音频相关操作事件的相关数据,可以包括但不限于音频相关操作事件和所述音频相关操作事件的坐标数据。
例如,第一终端设备上的互联应用,可以通过第二终端设备上的该互联应用所对应的配合应用,在第一终端设备的显示装置上投射第二终端设备的显示装置所输出的界面,用户可以通过在互联应用中所投射的界面上进行操作,例如,触控操作或物理按键操作等,这样,就可以实
现操作与其所在第一终端设备连接的第二终端设备上的全部应用的音频数据,即该互联应用所对应的配合应用的音频数据和除了该互联应用所对应的配合应用之外的其他应用的音频数据。
或者,再例如,第一终端设备上的互联应用,还可以通过第二终端设备上的该互联应用所对应的配合应用,作为一个操作端例如,鼠标或遥控器等,用户可以通过在互联应用中进行操作,例如,触控操作或物理按键操作等,这样,就可以实现操作与其所在第一终端设备连接的第二终端设备上的全部应用的音频数据,即该互联应用所对应的配合应用的音频数据和除了该互联应用所对应的配合应用之外的其他应用的音频数据。
可以理解的是,具体可以根据第一终端设备的显示装置的显示尺寸与第二终端设备的显示装置的显示尺寸的比值,将用户在第一终端设备上的互联应用中所进行的操作行为的坐标数据,映射到第二终端设备的显示装置上的操作事件的坐标数据。
通常,目前的终端设备都是触控类型的终端设备,其显示装置除了具有显示功能之外,还具有触控输入功能。在终端设备的显示装置上的任何一个操作行为,都需要被分解为若干个操作事件的集合,操作系统才能够对这些操作事件的相关数据进行相应处理。具体地,所述操作事件包括下列事件中的至少一项:
Down事件;
Up事件;以及
Move事件。
所谓的Down事件,在一次操作行为中仅会触发一次,是在手指刚
接触终端设备的显示装置时触发。
所谓的Up事件,在一次操作行为中仅会触发一次,是在手指离开终端设备的显示装置时触发。
所谓的Move事件,在一次操作行为的过程中会触发0个、1个或者多个Move事件,如果手指一直在终端设备的显示装置上移动,就会一直触发Move事件,而且都是在Down事件之后与Up事件之前。
在另一个具体的实现过程中,具体可以获取所述互联应用所对应的所述第二终端设备上的配合应用或所述第二终端设备上除了所述配合应用之外的其他应用所触发的所述原始音频数据的播放控制信息,例如,配合应用的导航功能输出TTS音频数据时所触发的开始播放指令。
可选地,在本实施例的一个可能的实现方式中,在102中,具体可以将所述播放控制信息添加到空白帧中,以生成音频控制帧,进而,则可以将所述音频控制帧插入到所述原始音频数据中,以获得所述待播放音频数据。
具体地,具体可以根据所述播放控制信息,将该播放控制信息所在音频控制帧插入到所述原始音频数据的不同位置。然后,则可以根据音频控制帧的插入位置,对所述原始音频数据进行分帧处理,以获得若干个音频数据帧,例如,可以按照预设数据大小如30千(k)字节或者预设时间大小如20毫秒(ms)等,对音频控制帧之前和/或之后的原始音频数据进行分段处理,以获得若干段音频数据,将每段音频数据添加到空白帧的数据部分,以获得若干个音频数据帧。这样,由所获得的音频数据帧和音频控制帧,就组成了待播放音频数据。
例如,若所述播放控制信息为开始播放指令,那么,则可以将该播
放控制信息所在音频控制帧插入到所述原始音频数据的前面。
或者,再例如,若所述播放控制信息为暂停指令,那么,则可以将该播放控制信息所在音频控制帧插入到所述原始音频数据中需要暂停的位置。可以理解的是,如果音频控制帧后面还有音频数据,那么,则可以将音频控制帧后面的音频数据,进行丢弃处理,无需将这部分音频数据发送给互联应用。
或者,再例如,若所述播放控制信息为恢复播放指令,那么,则可以将该播放控制信息所在音频控制帧插入到所述原始音频数据的前面。
或者,再例如,若所述播放控制信息为停止指令,那么,则可以将该播放控制信息所在音频控制帧插入到所述原始音频数据中需要停止的位置,例如,所述原始音频数据的后面。可以理解的是,如果音频控制帧后面还有音频数据,那么,则可以将音频控制帧后面的音频数据,进行丢弃处理,无需将这部分音频数据发送给互联应用。
或者,再例如,若所述播放控制信息为跳转指令,那么,则可以将该播放控制信息所在音频控制帧插入到所述原始音频数据的前面。
在一个具体的实现过程中,具体可以将所述播放控制信息添加到所述音频控制帧的帧头中,或者还可以将所述播放控制信息添加到所述音频控制帧的数据部分中,本实施例对此不进行特别限定。
本实施例中,通过获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据,进而将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据,使得能够将所述待播放音频数据,发送给所述互联应用,由于不再需要将音频数据与该音频数据的播放控制信息分别发送给互联应用,而是将音频数据的播放控制
信息添加到音频数据中一起发送给互联应用,因此,不会存在同步误差,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
图2为本发明另一实施例提供的另一种终端设备的控制方法的流程示意图,如图2所示。
201、接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据。
202、对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息。
203、根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
需要说明的是,201~203的执行主体可以为位于第一终端设备的应用即互联应用,或者还可以为设置在位于第一终端设备的应用(即互联应用)中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,本实施例对此不进行特别限定。
可以理解的是,所述互联应用可以是安装在第一终端设备上的本地程序(nativeApp),或者还可以是第一终端设备上的浏览器的一个网页程序(webApp),本实施例对此不进行特别限定。
这样,通过接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据,进而对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息,使得能够根据所述播放控制信息,对所述原始音频数据进行播放控制处理,不再需要分别获取音频数据与该音频数据的
播放控制信息,而是一起获取添加了播放控制信息的音频数据,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
需要说明的是,第一终端设备、互联应用、第二终端设备以及配合应用,的功能与描述,与图1对应的实施例中的第一终端设备、互联应用、第二终端设备以及配合应用,的功能与描述是一致的,详细描述可以参见图1对应的实施例中的相关内容,此处不再赘述。
本发明中,所接收的待播放音频数据,是采用图1对应的实施例所提供的技术方案,产生并发送的。详细描述可以参见图1对应的实施例中的相关内容,此处不再赘述。
可选地,在本实施例的一个可能的实现方式中,在202中,具体可以对所述待播放音频数据进行解析处理,以获得所述原始音频数据和音频控制帧中的所述播放控制信息。
在一个具体的实现过程中,具体可以对所述待播放音频数据中的音频控制帧的帧头进行解析处理,以获得该音频控制帧中的所述播放控制信息,以及对所述待播放音频数据中的音频数据帧的数据部分进行解析处理,以获得该音频数据帧中的所述原始音频数据。
在另一个具体的实现过程中,具体可以对所述待播放音频数据中的音频控制帧的数据部分进行解析处理,以获得该音频控制帧中的所述播放控制信息,以及对所述待播放音频数据中的音频数据帧的数据部分进行解析处理,以获得该音频数据帧中的所述原始音频数据。
可选地,在本实施例的一个可能的实现方式中,在203中,若所述播放控制信息为开始播放指令,则可以根据该开始播放指令中所包括的
格式参数,对音轨进行初始化操作,利用经过初始化的音轨,开始播放所述原始音频数据。
可选地,在本实施例的一个可能的实现方式中,在203中,若所述播放控制信息为暂停指令,则可以根据该暂停指令,暂时停止播放所述原始音频数据。
可选地,在本实施例的一个可能的实现方式中,在203中,若所述播放控制信息为恢复播放指令,则可以根据该恢复播放指令,继续播放所述原始音频数据。
可选地,在本实施例的一个可能的实现方式中,在203中,若所述播放控制信息为停止指令,则可以根据该停止指令,停止播放所述原始音频数据。
可选地,在本实施例的一个可能的实现方式中,在203中,若所述播放控制信息为所述跳转指令,则可以根据该跳转指令,跳转播放所述原始音频数据。
本实施例中,通过接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据,进而对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息,使得能够根据所述播放控制信息,对所述原始音频数据进行播放控制处理,不再需要分别获取音频数据与该音频数据的播放控制信息,而是一起获取添加了播放控制信息的音频数据,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其
都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在所述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
图3为本发明另一实施例提供的一种终端设备的控制装置的结构示意图,如图3所示。本实施例的终端设备的控制装置可以包括获取单元31、分帧单元32和发送单元33。其中,获取单元31,用于获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;分帧单元32,用于将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;发送单元33,用于将所述待播放音频数据,发送给所述互联应用。
本发明中,第一终端设备与第二终端设备通过但不限于蓝牙连接、通用串行总线(Universal Serial Bus,USB)连接和无线相容性认证(Wireless Fidelity,WI-FI)连接中的至少一项进行连接,本实施例对此不进行特别限定。
需要说明的是,本实施例的终端设备的控制装置可以为位于第二终端设备的应用即互联应用所对应的配合应用,或者还可以为设置在位于第二终端设备的应用(即互联应用所对应的配合应用)中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,本实施例对此不进行特别限定。
可以理解的是,所述应用可以是安装在第二终端设备上的本地程序(nativeApp),或者还可以是第二终端设备上的浏览器的一个网页程序(webApp),本实施例对此不进行特别限定。
可选地,在本实施例的一个可能的实现方式中,所述第一终端设备优选为车载终端设备;所述第二终端设备优选为用户终端设备。
反过来,所述第一终端设备也可以为用户终端设备;所述第二终端设备也可以为车载终端设备。但是,在实际应用中,用户终端设备上所安装的应用都可以单独执行,无需依赖与其连接的另一个终端设备才能正常使用,或者依赖与其连接的另一个终端设备上安装一个相应的配合应用才能正常使用。
可选地,在本实施例的一个可能的实现方式中,所述获取单元31所获取的所述第二终端设备的原始音频数据,可以为所述互联应用所对应的所述第二终端设备上的配合应用的音频数据,例如,配合应用所获取的歌曲音频数据、配合应用的导航功能所输出的TTS音频数据(Text To Speech,TTS)等,或者还可以为所述第二终端设备上除了所述配合应用之外的其他应用的音频数据,例如,QQ音乐所获取的歌曲音频数据等,本实施例对此不进行特别限定。
本发明中,所谓的播放控制信息,是指用于对所获取的原始音频数据进行播放控制的一些指令,可以包括但不限于如下指令:
开始播放指令;或者
暂停指令;或者
恢复播放指令;或者
停止指令;或者
跳转指令。
可选地,在本实施例的一个可能的实现方式中,所述分帧单元22,还可以进一步用于获取用户操作所述第二终端设备的音频相关操作事件数据;以及根据所述音频相关操作事件数据,获得所述原始音频数据的播放控制信息。
可选地,在本实施例的一个可能的实现方式中,所述分帧单元22,还可以进一步用于获取所述互联应用所对应的所述第二终端设备上的配合应用或所述第二终端设备上除了所述配合应用之外的其他应用所触发的所述原始音频数据的播放控制信息。
可选地,在本实施例的一个可能的实现方式中,所述分帧单元22,具体可以用于将所述播放控制信息添加到空白帧中,以生成音频控制帧;以及将所述音频控制帧插入到所述原始音频数据中,以获得所述待播放音频数据。
需要说明的是,图1对应的实施例中方法,可以由本实施例提供的终端设备的控制装置实现。详细描述可以参见图1对应的实施例中的相关内容,此处不再赘述。
本实施例中,通过获取单元获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据,进而由分帧单元将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据,使得发送单元能够将所述待播放音频数据,发送给所述互联应用,由于不再需要将音频数据与该音频数据的播放控制信息分别发送给互联应用,而是将音频数据的播放控制信息添加到音频数据中一起发送给互联应用,因此,不会存在同步误差,能够有效降低互联应用所进行的播放控制处
理的延迟,从而提高了音频数据处理的实时性。
图4为本发明另一实施例提供的另一种终端设备的控制装置的结构示意图,如图4所示。本实施例的终端设备的控制装置可以包括接收单元41、解析单元42和播放单元43。其中,接收单元41,用于接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;解析单元42,用于对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;播放单元43,用于根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
需要说明的是,本实施例的终端设备的控制装置可以为位于第一终端设备的应用即互联应用,或者还可以为设置在位于第一终端设备的应用(即互联应用)中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,本实施例对此不进行特别限定。
可以理解的是,所述互联应用可以是安装在第一终端设备上的本地程序(nativeApp),或者还可以是第一终端设备上的浏览器的一个网页程序(webApp),本实施例对此不进行特别限定。
需要说明的是,第一终端设备、互联应用、第二终端设备以及配合应用,的功能与描述,与图3对应的实施例中的第一终端设备、互联应用、第二终端设备以及配合应用,的功能与描述是一致的,详细描述可以参见图3对应的实施例中的相关内容,此处不再赘述。
本发明中,接收单元41所接收的待播放音频数据,是采用图3对应的实施例所提供的技术方案,产生并发送的。详细描述可以参见图3对应的实施例中的相关内容,此处不再赘述。
可选地,在本实施例的一个可能的实现方式中,所述解析单元42,具体可以用于对所述待播放音频数据进行解析处理,以获得所述原始音频数据和音频控制帧中的所述播放控制信息。
需要说明的是,图2对应的实施例中方法,可以由本实施例提供的终端设备的控制装置实现。详细描述可以参见图2对应的实施例中的相关内容,此处不再赘述。
本实施例中,通过接收单元接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据,进而由解析单元对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息,使得播放单元能够根据所述播放控制信息,对所述原始音频数据进行播放控制处理,不再需要分别获取音频数据与该音频数据的播放控制信息,而是一起获取添加了播放控制信息的音频数据,能够有效降低互联应用所进行的播放控制处理的延迟,从而提高了音频数据处理的实时性。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,所述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接
口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
所述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。所述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,音频处理引擎,或者网络装置等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (24)
- 一种终端设备的控制方法,其特征在于,包括:获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;将所述待播放音频数据,发送给所述互联应用。
- 根据权利要求1所述的方法,其特征在于,所述第二终端设备的原始音频数据,包括:所述互联应用所对应的所述第二终端设备上的配合应用的音频数据;或者所述第二终端设备上除了所述配合应用之外的其他应用的音频数据。
- 根据权利要求1或2所述的方法,其特征在于,所述将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据之前,还包括:获取用户操作所述第二终端设备的音频相关操作事件数据;以及根据所述音频相关操作事件数据,获得所述原始音频数据的播放控制信息;或者获取所述互联应用所对应的所述第二终端设备上的配合应用或所述第二终端设备上除了所述配合应用之外的其他应用所触发的所述原始音频数据的播放控制信息。
- 根据权利要求1~3任一权利要求所述的方法,其特征在于,所述将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以 获得待播放音频数据,包括:将所述播放控制信息添加到空白帧中,以生成音频控制帧;将所述音频控制帧插入到所述原始音频数据中,以获得所述待播放音频数据。
- 根据权利要求1~4任一权利要求所述的方法,其特征在于,所述播放控制信息可以包括:开始播放指令;或者暂停指令;或者恢复播放指令;或者停止指令;或者跳转指令。
- 根据权利要求1~5任一权利要求所述的方法,其特征在于,所述第一终端设备为车载终端设备;所述第二终端设备为用户终端设备。
- 一种终端设备的控制方法,其特征在于,包括:接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
- 根据权利要求7所述的方法,其特征在于,所述对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息,包括:对所述待播放音频数据进行解析处理,以获得所述原始音频数据和音频控制帧中的所述播放控制信息。
- 根据权利要求7或8所述的方法,其特征在于,所述播放控制信息可以包括:开始播放指令;或者暂停指令;或者恢复播放指令;或者停止指令;或者跳转指令。
- 根据权利要求7~9任一权利要求所述的方法,其特征在于,所述第一终端设备为车载终端设备;所述第二终端设备为用户终端设备。
- 一种终端设备的控制装置,其特征在于,包括:获取单元,用于获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;分帧单元,用于将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;发送单元,用于将所述待播放音频数据,发送给所述互联应用。
- 根据权利要求11所述的装置,其特征在于,所述第二终端设备的原始音频数据,包括:所述互联应用所对应的所述第二终端设备上的配合应用的音频数据;或者所述第二终端设备上除了所述配合应用之外的其他应用的音频数据。
- 根据权利要求11或12所述的装置,其特征在于,所述分帧单元,还用于获取用户操作所述第二终端设备的音频相关操作事件数据;以及根据所述音频相关操作事件数据,获得所述原始音频数据的播放控制信息;或者获取所述互联应用所对应的所述第二终端设备上的配合应用或所述第二终端设备上除了所述配合应用之外的其他应用所触发的所述原始音频数据的播放控制信息。
- 根据权利要求11~13任一权利要求所述的装置,其特征在于,所述分帧单元,具体用于将所述播放控制信息添加到空白帧中,以生成音频控制帧;以及将所述音频控制帧插入到所述原始音频数据中,以获得所述待播放音频数据。
- 根据权利要求11~14任一权利要求所述的装置,其特征在于,所述播放控制信息可以包括:开始播放指令;或者暂停指令;或者恢复播放指令;或者停止指令;或者跳转指令。
- 根据权利要求11~15任一权利要求所述的装置,其特征在于,所述第一终端设备为车载终端设备;所述第二终端设备为用户终端设备。
- 一种终端设备的控制装置,其特征在于,包括:接收单元,用于接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;解析单元,用于对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;播放单元,用于根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
- 根据权利要求17所述的装置,其特征在于,所述解析单元,具体用于对所述待播放音频数据进行解析处理,以获得所述原始音频数据和音频控制帧中的所述播放控制信息。
- 根据权利要求17或18所述的装置,其特征在于,所述播放控制信息可以包括:开始播放指令;或者暂停指令;或者恢复播放指令;或者停止指令;或者跳转指令。
- 根据权利要求17~19任一权利要求所述的装置,其特征在于,所述第一终端设备为车载终端设备;所述第二终端设备为用户终端设备。
- 一种设备,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;将所述待播放音频数据,发送给所述互联应用。
- 一种设备,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
- 一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:获取互联应用所在第一终端设备所连接的第二终端设备的原始音频数据;将所述原始音频数据的播放控制信息添加到所述原始音频数据中,以获得待播放音频数据;将所述待播放音频数据,发送给所述互联应用。
- 一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:接收第一终端设备上的互联应用所对应的第二终端设备上的配合应用所发送的所述第二终端设备的待播放音频数据;对所述待播放音频数据进行解析处理,以获得原始音频数据和所述原始音频数据的播放控制信息;根据所述播放控制信息,对所述原始音频数据进行播放控制处理。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510994007.4A CN105611356A (zh) | 2015-12-25 | 2015-12-25 | 终端设备的控制方法及装置 |
CN201510994007.4 | 2015-12-25 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017107430A1 true WO2017107430A1 (zh) | 2017-06-29 |
Family
ID=55990847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/088154 WO2017107430A1 (zh) | 2015-12-25 | 2016-07-01 | 终端设备的控制方法、装置、设备及非易失性计算机存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105611356A (zh) |
WO (1) | WO2017107430A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113050911A (zh) * | 2019-12-27 | 2021-06-29 | 阿里巴巴集团控股有限公司 | 音频播放方法和音频播放装置 |
CN113515255A (zh) * | 2021-05-17 | 2021-10-19 | 英华达(上海)科技有限公司 | 音频播放控制方法、系统、电子设备及存储介质 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554294A (zh) * | 2015-12-25 | 2016-05-04 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
CN105611356A (zh) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
CN115268821B (zh) * | 2022-06-22 | 2023-07-11 | 阿波罗智联(北京)科技有限公司 | 音频播放方法及装置、设备和介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080219639A1 (en) * | 2007-03-07 | 2008-09-11 | Kabushiki Kaisha Toshiba | Video player, video playback method, and control target apparatus |
CN102624405A (zh) * | 2011-01-26 | 2012-08-01 | 北京昆天科微电子技术有限公司 | 一种无线发射设备及无线发射方法 |
CN103559902A (zh) * | 2013-11-13 | 2014-02-05 | 大陆汽车投资(上海)有限公司 | 移动终端设备与车载影音系统之间的交互控制的方法 |
CN104837054A (zh) * | 2015-05-04 | 2015-08-12 | 腾讯科技(北京)有限公司 | 一种信息处理方法和电子设备 |
CN105554294A (zh) * | 2015-12-25 | 2016-05-04 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
CN105609122A (zh) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
CN105611356A (zh) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009005269A (ja) * | 2007-06-25 | 2009-01-08 | Kenwood Corp | 無線機 |
JP2012209880A (ja) * | 2011-03-30 | 2012-10-25 | Sony Corp | 通信装置及び通信システム |
US9961409B2 (en) * | 2012-04-19 | 2018-05-01 | Sony Corporation | Reception device, reception method, broadcasting device, broadcasting method, and link application control system |
CN102970425A (zh) * | 2012-11-15 | 2013-03-13 | 广东好帮手电子科技股份有限公司 | 一种通过智能手机远程控制车载主机的系统及方法 |
CN203225896U (zh) * | 2013-01-08 | 2013-10-02 | 深圳市众鸿科技股份有限公司 | 基于手机与车载终端互连控制系统 |
CN103617803A (zh) * | 2013-11-08 | 2014-03-05 | 中标软件有限公司 | 一种车载系统上多音源自动切换方法及系统 |
CN103985387A (zh) * | 2014-04-17 | 2014-08-13 | 苏州乐聚一堂电子科技有限公司 | 音频指令及智能控制方法 |
-
2015
- 2015-12-25 CN CN201510994007.4A patent/CN105611356A/zh active Pending
-
2016
- 2016-07-01 WO PCT/CN2016/088154 patent/WO2017107430A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080219639A1 (en) * | 2007-03-07 | 2008-09-11 | Kabushiki Kaisha Toshiba | Video player, video playback method, and control target apparatus |
CN102624405A (zh) * | 2011-01-26 | 2012-08-01 | 北京昆天科微电子技术有限公司 | 一种无线发射设备及无线发射方法 |
CN103559902A (zh) * | 2013-11-13 | 2014-02-05 | 大陆汽车投资(上海)有限公司 | 移动终端设备与车载影音系统之间的交互控制的方法 |
CN104837054A (zh) * | 2015-05-04 | 2015-08-12 | 腾讯科技(北京)有限公司 | 一种信息处理方法和电子设备 |
CN105554294A (zh) * | 2015-12-25 | 2016-05-04 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
CN105609122A (zh) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
CN105611356A (zh) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | 终端设备的控制方法及装置 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113050911A (zh) * | 2019-12-27 | 2021-06-29 | 阿里巴巴集团控股有限公司 | 音频播放方法和音频播放装置 |
CN113050911B (zh) * | 2019-12-27 | 2024-06-07 | 阿里巴巴集团控股有限公司 | 音频播放方法和音频播放装置 |
CN113515255A (zh) * | 2021-05-17 | 2021-10-19 | 英华达(上海)科技有限公司 | 音频播放控制方法、系统、电子设备及存储介质 |
CN113515255B (zh) * | 2021-05-17 | 2023-02-07 | 英华达(上海)科技有限公司 | 音频播放控制方法、系统、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN105611356A (zh) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017107427A1 (zh) | 终端设备的控制方法、装置、设备及非易失性计算机存储介质 | |
WO2017107428A1 (zh) | 终端设备的控制方法、装置、设备及非易失性计算机存储介质 | |
WO2017107430A1 (zh) | 终端设备的控制方法、装置、设备及非易失性计算机存储介质 | |
US10249301B2 (en) | Method and system for speech recognition processing | |
WO2019223351A1 (zh) | 基于视图的语音交互方法、装置、服务器、终端和介质 | |
CN108133707B (zh) | 一种内容分享方法及系统 | |
CN107005800B (zh) | 音频文件的传输、接收方法及装置、设备及其系统 | |
US10270736B2 (en) | Account adding method, terminal, server, and computer storage medium | |
JP2020529032A (ja) | 音声認識翻訳方法及び翻訳装置 | |
US10603586B2 (en) | Voice communication method and system in game applications | |
CN108184135A (zh) | 字幕生成方法及装置、存储介质及电子终端 | |
US11164571B2 (en) | Content recognizing method and apparatus, device, and computer storage medium | |
US8223851B2 (en) | Method and an apparatus for embedding data in a media stream | |
CN107943834B (zh) | 人机对话的实现方法、装置、设备及存储介质 | |
WO2020177734A1 (zh) | 小程序触发方法、计算机设备及存储介质 | |
WO2017045190A1 (zh) | 指导终端设备操作的方法、装置和设备 | |
JP2019015951A (ja) | 電子機器のウェイクアップ方法、装置、デバイス及びコンピュータ可読記憶媒体 | |
CN103797761A (zh) | 通信方法、客户端和终端 | |
CN111177453A (zh) | 控制音频播放的方法、装置、设备及计算机可读存储介质 | |
CN109582274B (zh) | 音量调节方法、装置、电子设备及计算机可读存储介质 | |
WO2017101260A1 (zh) | 音频切换方法、装置以及存储介质 | |
CN112995730A (zh) | 音画同步调整方法、装置、电子设备及介质 | |
JP2022091933A (ja) | 音声応答速度確定方法、装置、コンピュータ読み取り可能な記憶媒体及びコンピュータプログラム | |
CN104702758B (zh) | 一种终端及其管理多媒体记事本的方法 | |
CN107710754A (zh) | 音视频数据同步方法和装置 |
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: 16877243 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: 16877243 Country of ref document: EP Kind code of ref document: A1 |