CN116962606A - Audio playing method and device, computer readable storage medium and computer equipment - Google Patents

Audio playing method and device, computer readable storage medium and computer equipment Download PDF

Info

Publication number
CN116962606A
CN116962606A CN202210403465.6A CN202210403465A CN116962606A CN 116962606 A CN116962606 A CN 116962606A CN 202210403465 A CN202210403465 A CN 202210403465A CN 116962606 A CN116962606 A CN 116962606A
Authority
CN
China
Prior art keywords
audio
equipment
external
terminal
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210403465.6A
Other languages
Chinese (zh)
Inventor
黄镇峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202210403465.6A priority Critical patent/CN116962606A/en
Publication of CN116962606A publication Critical patent/CN116962606A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/233Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/439Processing of audio elementary streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the application discloses an audio playing method, an audio playing device, a storage medium and computer equipment, wherein the method plays audio data by adopting an enhanced audio return channel based on a built-in audio player in a terminal; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel. The method can enrich the use scene of the enhanced audio return channel and improve the experience of users.

Description

Audio playing method and device, computer readable storage medium and computer equipment
Technical Field
The present application relates to the field of audio processing technologies, and in particular, to an audio playing method, an audio playing device, a computer readable storage medium, and a computer device.
Background
Currently, high-definition multimedia interfaces (High-Definition Multimedia Interface, HDMI) have been widely used for data transmission between various electronic devices, and HDMI2.1 has also been released for many years, wherein the defined enhanced audio backhaul channel (Enhanced Audio Return Channel, earcon) has been popular and widely used due to its higher transmission rate and higher sound format support.
At present, televisions used in our homes are basically dual-channel, and naturally cannot use the advanced transmission of eARC. However, when we need an external power amplifier, we need to use eerc to transmit audio data, which is also a standard of HDMI2.1 protocol television. However, if we want to make the tv horn a multi-channel output, it would of course be desirable to be able to transmit data using the eerc protocol.
However, only one path exists in the television core at present, only one playing mode can be adopted for playing, and the audio playing mode is single.
Disclosure of Invention
The embodiment of the application provides an audio playing method, an audio playing device, a storage medium and computer equipment.
The first aspect of the present application provides an audio playing method, including:
based on a built-in audio player in the terminal, the audio data is played by adopting an enhanced audio return channel;
when the terminal is detected to be connected to external equipment, detecting the type of the external equipment;
when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting an enhanced audio return channel.
A second aspect of the present application provides an audio playing device, the device comprising:
the first playing unit is used for playing the audio data by adopting an enhanced audio return channel based on a built-in audio player in the terminal;
the detection unit is used for detecting the type of the external equipment when detecting that the terminal is connected to the external equipment;
and the second playing unit is used for switching to use the external equipment to play the audio data by adopting an enhanced audio return channel when the equipment type of the external equipment is audio equipment.
The third aspect of the present application also provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor for performing the steps of the audio playing method provided by the first aspect of the present application.
A fourth aspect of the application provides a computer device comprising a memory, a processor and a computer program stored in the memory and operable on the processor, the processor implementing the steps of the audio playing method provided in the first aspect of the application when the computer program is executed.
A fifth aspect of the application provides a computer program product or computer program comprising computer instructions stored in a storage medium. The computer instructions are read from the storage medium by a processor of a computer device, which executes the computer instructions, causing the computer device to perform the steps of the audio playing method provided in the first aspect.
According to the audio playing method provided by the embodiment of the application, the audio data is played by adopting the enhanced audio return channel based on the built-in audio player in the terminal; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel. Therefore, the audio playing method provided by the application can manage the enhanced audio return channel resources, can detect whether the terminal is connected with the external audio equipment in real time when the audio player arranged in the terminal is adopted for playing the enhanced audio return channel, can be connected with the external audio equipment and can be switched to the external equipment for playing the enhanced audio return channel when the terminal is detected to be connected with the external audio equipment, thereby enriching the use scene of the enhanced audio return channel and improving the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a scene of audio playback according to the present application;
fig. 2 is a schematic flow chart of an audio playing method provided by the present application;
fig. 3 is another flow chart of the audio playing method provided by the present application;
fig. 4 is a schematic structural diagram of an audio playing device according to the present application;
fig. 5 is a schematic structural view of a terminal provided by the present application;
fig. 6 is a schematic structural diagram of a server provided by the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides an audio playing method, an audio playing device, a computer readable storage medium and computer equipment. The audio playing method can be used in an audio playing device. The audio playback apparatus may be integrated in a computer device, which may be a terminal or a server. The terminal can be a mobile phone, a tablet computer, a notebook computer, an intelligent television, a wearable intelligent device, a personal computer (PC, personal Computer) and other devices. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), basic cloud computing services such as big data and artificial intelligent platforms, and the like. Wherein the server may be a node in a blockchain.
Referring to fig. 1, a schematic view of a scene of audio playback provided by the present application is shown; as shown in the figure, the television terminal a plays audio data by adopting an enhanced audio return channel based on a built-in audio player in the terminal; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel.
It should be noted that, the schematic view of the audio playing scene shown in fig. 1 is only an example, and the audio playing scene described in the embodiment of the present application is for more clearly describing the technical solution of the present application, and does not constitute a limitation to the technical solution provided by the present application. As one of ordinary skill in the art can know, with the evolution of audio playing and the appearance of new service scenes, the technical scheme provided by the application is also applicable to similar technical problems.
The following describes the above-described embodiments in detail.
Embodiments of the present application will be described in terms of an audio playback apparatus that may be integrated into a computer device. The computer device may be a terminal or a server, and the terminal may be a device such as a mobile phone, a tablet computer, a notebook computer, an intelligent television, a wearable intelligent device, a personal computer (PC, personal Computer), and the like. As shown in fig. 2, a flow chart of an audio playing method provided by the present application is shown, and the method includes:
step 101, playing audio data by adopting an enhanced audio return channel based on a built-in audio player in the terminal.
The audio feedback channels (Audio Return Channel, ARC) enable the television to transmit audio to the external power amplifier such as the sound bar through a single HDMI cable, so that the settings of the television and the home theater are greatly simplified. Like ARC, eARC also allows televisions to use a single HDMI cable to send audio generated by built-in streaming applications, cables, satellites, and other source devices to a speaker-strip and other external power amplifier, and eARC supports much greater bandwidth and speed than ARC, thus allowing the transmission of high quality, uncompressed audio.
Typically, home televisions are essentially binaural and have built-in audio, i.e., no eARC is used. However, along with the continuous promotion of people's image quality and audio experience requirement to audio and video, people can no longer satisfy the audio that is provided with stereo set that the television was taken, alright external power amplifier improves audio playback's audio at this moment to can promote and watch experience. When we need external power amplifier, we need eARC to transmit audio data, and if we need TV stereo to make multi-channel output, we can also use eARC protocol to transmit data. However, only one path of channel exists in the television core at present, and when the built-in audio of the television uses the eARC to perform data transmission, the eARC device cannot be externally connected to perform data transmission. In this regard, the present application provides an audio playing method to solve the problem, and the method provided by the present application is described in detail below.
In the embodiment of the present application, the terminal may be any device such as a television, a personal computer, etc., and here, a television will be taken as an example for explanation. An embedded audio player based on eARC transmission can be used in the television for audio playing, wherein the embedded audio player can be a multi-channel sound (or loudspeaker). The built-in audio player based on eARC transmission is adopted for audio playing, so that better sound effect experience can be obtained.
In some embodiments, the audio data is played by an enhanced audio backhaul channel based on a built-in audio player in the terminal, including:
1. the method comprises the steps that pins of an audio player built in a control terminal are subjected to enhanced audio return channel handshake;
2. and playing the audio data based on the built-in audio player after the handshake is successful.
In the embodiment of the application, the audio data playing is performed based on the built-in audio player of the terminal, which may be that the eARC handshake is performed on the built-in audio player first, and then the audio data playing is performed after the handshake is successful. Specifically, the pin of the built-in audio player in the terminal may be controlled to perform the eerc handshake, where the pin of the built-in audio player may specifically be an HDP pin.
Step 102, when detecting that the terminal accesses the external device, detecting the device type of the external device.
When the television adopts the built-in audio player based on eARC transmission to play audio, the external equipment accessed to the television can be detected in real time. If no external device is connected, the television continues to adopt the built-in audio player based on eARC transmission to play the audio. If the external equipment is detected to be connected to the television, the equipment type of the equipment can be further detected. Among the types of devices that access television include, but are not limited to: audio devices (e.g., external speakers), storage devices (e.g., flash disk), and other devices.
Step 103, when the device type of the external device is audio device, switching to use the external device to play the audio data by adopting the enhanced audio return channel.
When the device type of the external device connected to the television is detected to be the audio device, one path of eARC channel in the television core can be switched from the built-in audio player to the external device for playing. It is understood that the external device is an external device supporting the eARC transmission. Therefore, the audio playing method provided by the application solves the problem that only one path of eARC channel exists in the television core to cause that only one player can adopt eARC transmission to play audio by managing eARC transmission resources.
According to the above description, according to the audio playing method provided by the embodiment of the application, the audio data is played by adopting the enhanced audio return channel based on the built-in audio player in the terminal; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel. Therefore, the audio playing method provided by the application can manage the enhanced audio return channel resources, can detect whether the terminal is connected with the external audio equipment in real time when the audio player arranged in the terminal is adopted for playing the enhanced audio return channel, can be connected with the external audio equipment and can be switched to the external equipment for playing the enhanced audio return channel when the terminal is detected to be connected with the external audio equipment, thereby enriching the use scene of the enhanced audio return channel and improving the user experience.
Accordingly, the embodiment of the application further describes the audio playing method provided by the application in detail. As shown in fig. 3, another flow chart of the audio playing method provided by the present application includes:
step 201, when receiving an audio playing instruction, the television detects whether an external power amplifier is connected.
Wherein, before receiving the audio playing instruction, the user can set the audio playing mode to the automatic mode. The automatic mode is that when receiving an audio playing instruction, if no external power amplifier is connected, the built-in audio player is preferred to play audio, however, when detecting that the external power amplifier is connected, the external power amplifier is preferred to play audio.
The process of setting the audio playing mode in the television may include:
1. displaying an audio output mode selection interface on a display interface of the terminal;
2. when receiving a selection operation aiming at a preset audio output mode, triggering a built-in audio playing channel of the terminal to carry out enhanced audio return channel handshake;
3. when receiving an audio playing task, the built-in audio player in the terminal plays the audio data in the audio playing task by adopting the enhanced audio feedback channel.
In the embodiment of the application, the mode setting interface of the audio output mode can be displayed on the display interface of the television, and particularly, the interface can be selected due to the fact that the audio output mode is displayed. The interface may include a default mode, a built-in player priority mode, and the like, where the default mode may be to preferentially play audio from the external power amplifier when detecting that the television is connected to the external power amplifier, or to play audio from the built-in audio player. Because the connection of the eerc needs to go through a special handshake protocol, and it needs to be ensured that no disconnection occurs during the use, otherwise, sound interruption is caused. Thus, after determining the audio output mode, for example, selecting the built-in player priority mode, the built-in audio player of the television is triggered to perform the eARC handshake, specifically, the eARC handshake may be performed for the HDP pin triggering the built-in channel. After the handshake is successful, the built-in eARC channel can be used, that is, the built-in audio player is adopted to play audio data based on eARC.
In the automatic mode, when the television terminal receives an audio playing instruction, the television terminal can detect whether the television is connected to the external power amplifier or not at present.
The method for detecting whether the television is connected with the external power amplifier or not at present comprises the following steps:
A. when the terminal is detected to be connected with the external equipment, a consumer electronic control command is sent to the external equipment;
B. and determining the equipment type of the external equipment according to the response condition of the external equipment to the electronic control command.
In the embodiment of the application, whether the television is connected with the external equipment or not can be detected first, and when the television is not connected with the external equipment, the television normally works in the built-in eARC channel to play audio data by adopting the built-in audio player. When the television is detected to be connected to the external device, whether the external device is an audio device or not needs to be further verified. If the external device is not the audio device, the external device normally works in the built-in eARC channel and plays audio data by adopting a built-in audio player; when the external device is an audio device, switching to the external eARC channel adopts the external device to play audio data based on the eARC channel.
In the embodiment of the present application, whether the external device is an audio device is detected, specifically, whether the device supports a consumer electronics control command (Consumer Electronic Control, CEC) may be detected first, when the external device supports CEC, whether the device is an audio device may be determined through a CEC command, and if the device does not support CEC, whether the device is an audio device may be determined directly through an eARC handshake.
Step 202, when the external power amplifier is not detected to be connected, the television adopts the built-in audio player to play the audio data based on the eARC channel.
Wherein, at this time, the television normally works in the built-in eARC channel, and the built-in audio player is adopted to play audio data based on the eARC channel, and the detection of the television access equipment is kept in real time. If the television is not detected to be connected with the external power amplifier, the television is kept to adopt the built-in audio player to play the audio data based on the eARC channel.
And 203, triggering the television and the external power amplifier to carry out eARC handshake when the access to the external power amplifier is detected.
When the television is detected to be connected with the external power amplifier in real-time detection, the eARC channel is switched to the external channel, and an HDP pin of the external channel is triggered to perform eARC handshake. It is understood that the external power amplifier is an external power amplifier supporting the eerc.
In step 204, when the eARC handshake is successful, the television switches to play the audio data based on the eARC channel using the external power amplifier.
When performing the eARC handshake, there may be a handshake failure, if the eARC handshake is successfully implemented, the television will work to further external eARC channels, and an external device is used to play audio data based on the eARC channels.
In step 205, when the eARC handshake fails, the television initializes the ARC channel.
When the eARC handshake fails, the television may then further perform ARC channel initialization processing.
In step 206, when the ARC channel is initialized successfully, the television uses the external power amplifier to play the audio data based on the eARC channel.
When the ARC channel is successfully initialized, the television performs eARC handshake again, and when the handshake is successful, the television works on the external eARC channel, and external equipment is adopted to play audio data based on the eARC channel. If the ARC channel initialization is not successful, the built-in eARC channel still works, and the built-in audio player is adopted to play the audio based on the eARC channel.
By the audio playing method provided by the application, a plurality of audio devices can transmit audio data through eARC, the problem of eARC resources in a television can be solved, and the eARC function of an external power amplifier is compatible. In addition, in the application, the television can adopt the multi-channel loudspeaker transmitted by eARC, thereby greatly improving the hearing effect experience of the user.
According to the audio playing method provided by the embodiment of the application, the audio data is played by adopting the enhanced audio return channel based on the built-in audio player in the terminal; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel. Therefore, the audio playing method provided by the application can manage the enhanced audio return channel resources, can detect whether the terminal is connected with the external audio equipment in real time when the audio player arranged in the terminal is adopted for playing the enhanced audio return channel, can be connected with the external audio equipment and can be switched to the external equipment for playing the enhanced audio return channel when the terminal is detected to be connected with the external audio equipment, thereby enriching the use scene of the enhanced audio return channel and improving the user experience.
In order to better implement the above method, the embodiment of the present application further provides an audio playing device, which may be integrated in a terminal or a server.
For example, as shown in fig. 4, a schematic structural diagram of an audio playing device according to an embodiment of the present application may include a first playing unit 301, a detecting unit 302, and a second playing unit 303, as follows:
a first playing unit 301, configured to play audio data by using an enhanced audio backhaul channel based on a built-in audio player in the terminal;
the detecting unit 302 is configured to detect a device type of an external device when detecting that the terminal is connected to the external device;
and the second playing unit 303 is configured to switch to use the external device to play the audio data by using an enhanced audio backhaul channel when the device type of the external device is audio device.
In some embodiments, the first playback unit includes:
the control subunit is used for controlling pins of the built-in audio player in the terminal to carry out enhanced audio return channel handshake;
and the first playing subunit is used for playing the audio data based on the built-in audio player after the handshake is successful.
In some embodiments, the detection unit comprises:
a sending subunit, configured to send a consumer electronic control command to an external device when it is detected that the terminal is connected to the external device;
and the determining subunit is used for determining the equipment type of the external equipment according to the response condition of the external equipment to the consumer electronic control command.
In some embodiments, the second playback unit includes:
the triggering subunit is used for triggering the external audio playing channel of the terminal to carry out enhanced audio return channel handshake when the equipment type of the external equipment is audio equipment;
and the second playing subunit is used for playing the audio data by adopting the enhanced audio return channel through the external equipment when the handshake of the enhanced audio return channel is successful by the external audio playing channel.
In some embodiments, the audio playing device provided by the present application further includes:
the initialization unit is used for performing audio return channel initialization processing when the external audio play channel fails to handshake the enhanced audio return channel;
and the handshake unit is used for carrying out handshake of the enhanced audio return channel again by the external audio play channel when the initialization of the audio return channel is completed.
In some embodiments, the audio playing device provided by the present application further includes:
and the third playing unit is used for playing the audio data by adopting the enhanced audio return channel based on a built-in audio player in the terminal when the initialization of the audio return channel fails.
In some embodiments, the audio playing device provided by the present application further includes:
and the fourth playing unit is used for playing the audio data by adopting an enhanced audio return channel based on a built-in audio player in the terminal when the equipment type of the external equipment is not the audio equipment.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
As can be seen from the above description, in the audio playing method provided by the embodiment of the present application, the first playing unit 301 plays the audio data by using the enhanced audio backhaul channel based on the built-in audio player in the terminal; the detection unit 302 detects the type of the external device when detecting that the terminal is connected to the external device; when the device type of the external device is the audio device, the second playing unit 303 switches to use the external device to play the audio data by adopting the enhanced audio feedback channel. Therefore, the audio playing method provided by the application can manage the enhanced audio return channel resources, can detect whether the terminal is connected with the external audio equipment in real time when the audio player arranged in the terminal is adopted for playing the enhanced audio return channel, can be connected with the external audio equipment and can be switched to the external equipment for playing the enhanced audio return channel when the terminal is detected to be connected with the external audio equipment, thereby enriching the use scene of the enhanced audio return channel and improving the user experience.
Embodiments of the present application also provide a computer device, which may be a terminal, as shown in fig. 5, where the terminal may include a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a wireless fidelity (WiFi, wireless Fidelity) module 407, a processor 408 including one or more processing cores, and a power supply 409. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 5 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 408; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 401 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
Memory 402 may be used to store software programs and modules that are stored in memory 402 for execution by processor 408 to perform various functional applications and information interactions. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide access to the memory 402 by the processor 408 and the input unit 403.
The input unit 403 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 403 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 408, and can receive commands from the processor 408 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 403 may also comprise other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 404 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 404 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is communicated to the processor 408 to determine a type of touch event, and the processor 408 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 5 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the terminal are not described in detail herein.
Audio circuitry 406, speakers, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 406 and converted into audio data, which are processed by the audio data output processor 408 for transmission to, for example, another terminal via the RF circuit 401, or which are output to the memory 402 for further processing. Audio circuitry 406 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The WiFi belongs to a short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 407, so that wireless broadband internet access is provided for the user. Although fig. 5 shows a WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within a range that does not change the essence of the application.
The processor 408 is a control center of the terminal, and connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the handset. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power supply 409 (e.g., a battery) for powering the various components, which may be logically connected to the processor 408 through a power management system that performs functions such as managing charge, discharge, and power consumption. The power supply 409 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the processor 408 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 408 executes the application programs stored in the memory 402, so as to implement various functions:
based on a built-in audio player in the terminal, the audio data is played by adopting an enhanced audio return channel; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel.
It should be noted that, the computer device provided in the embodiment of the present application and the method in the foregoing embodiment belong to the same concept, and the specific implementation of each operation above may refer to the foregoing embodiment, which is not described herein.
The embodiment of the application also provides a computer device which can be a server, as shown in fig. 6, and is a schematic structural diagram of the computer device provided by the application. Specifically, the present application relates to a method for manufacturing a semiconductor device.
The computer device may include one or more processing cores 'processing units 501, one or more storage media's storage units 502, a power module 503, and an input module 504, among other components. Those skilled in the art will appreciate that the computer device structure shown in FIG. 6 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
the processing unit 501 is a control center of the computer device, connects respective parts of the entire computer device using various interfaces and lines, and performs various functions and processes of the computer device by running or executing software programs and/or modules stored in the storage unit 502 and calling data stored in the storage unit 502, thereby performing overall monitoring of the computer device. Optionally, the processing unit 501 may include one or more processing cores; preferably, the processing unit 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processing unit 501.
The storage unit 502 may be used to store software programs and modules, and the processing unit 501 executes various functional applications and audio playback by running the software programs and modules stored in the storage unit 502. The storage unit 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, a web page access, etc.), and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, the storage unit 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory unit 502 may also include a memory controller to provide access to the memory unit 502 by the processing unit 501.
The computer device further comprises a power module 503 for supplying power to the various components, and preferably, the power module 503 may be logically connected to the processing unit 501 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. The power module 503 may also include one or more of any components, such as a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc.
The computer device may also include an input module 504, which input module 504 may be used to receive entered numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processing unit 501 in the computer device loads executable files corresponding to the processes of one or more application programs into the storage unit 502 according to the following instructions, and the processing unit 501 executes the application programs stored in the storage unit 502, so as to implement various functions as follows:
based on a built-in audio player in the terminal, the audio data is played by adopting an enhanced audio return channel; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel.
It should be noted that, the computer device provided in the embodiment of the present application and the method in the foregoing embodiment belong to the same concept, and the specific implementation of each operation above may refer to the foregoing embodiment, which is not described herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
based on a built-in audio player in the terminal, the audio data is played by adopting an enhanced audio return channel; when the terminal is detected to be connected with the external equipment, detecting the equipment type of the external equipment; when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting the enhanced audio return channel.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the instructions stored in the computer readable storage medium may perform the steps in any of the methods provided in the embodiments of the present application, the beneficial effects that any of the methods provided in the embodiments of the present application can be achieved are detailed in the previous embodiments, and are not described herein.
Wherein according to an aspect of the application, a computer program product or a computer program is provided, the computer program product or computer program comprising computer instructions stored in a storage medium. The computer instructions are read from the storage medium by a processor of a computer device, which executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations of fig. 2 or 3 described above.
The foregoing describes in detail a method, apparatus, computer-readable storage medium and computer device for playing audio provided by the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.

Claims (10)

1. An audio playing method, characterized in that the method comprises:
based on a built-in audio player in the terminal, the audio data is played by adopting an enhanced audio return channel;
when the terminal is detected to be connected to external equipment, detecting the type of the external equipment;
when the equipment type of the external equipment is audio equipment, the external equipment is switched to play the audio data by adopting an enhanced audio return channel.
2. The method of claim 1, wherein the terminal-based built-in audio player plays the audio data using an enhanced audio backhaul channel, comprising:
the method comprises the steps that pins of an audio player built in a control terminal are subjected to enhanced audio return channel handshake;
and playing the audio data based on the built-in audio player after the handshake is successful.
3. The method of claim 1, wherein the detecting the device type of the external device when the terminal is detected to be connected to the external device comprises:
when the terminal is detected to be connected to an external device, a consumer electronic control command is sent to the external device;
and determining the equipment type of the external equipment according to the response condition of the external equipment to the consumer electronic control command.
4. A method according to any one of claims 1 to 3, wherein when the device type of the external device is an audio device, switching to use the external device to play the audio data using an enhanced audio backhaul channel comprises:
when the equipment type of the external equipment is audio equipment, triggering an external audio playing channel of the terminal to carry out enhanced audio return channel handshake;
and when the external audio playing channel carries out the handshake of the enhanced audio return channel, the external equipment plays the audio data by adopting the enhanced audio return channel.
5. The method according to claim 4, wherein the method further comprises:
when the handshake of the enhanced audio return channel of the external audio play channel fails, initializing the audio return channel;
when the initialization of the audio return channel is completed, the external audio playing channel carries out the handshake of the enhanced audio return channel again.
6. The method of claim 5, wherein the method further comprises:
when the initialization of the audio return channel fails, the audio data is played by adopting the enhanced audio return channel based on a built-in audio player in the terminal.
7. The method according to claim 4, wherein the method further comprises:
when the equipment type of the external equipment is not audio equipment, the built-in audio player in the terminal is used for playing the audio data by adopting an enhanced audio return channel.
8. An audio playback device, the device comprising:
the first playing unit is used for playing the audio data by adopting an enhanced audio return channel based on a built-in audio player in the terminal;
the detection unit is used for detecting the type of the external equipment when detecting that the terminal is connected to the external equipment;
and the second playing unit is used for switching to use the external equipment to play the audio data by adopting an enhanced audio return channel when the equipment type of the external equipment is audio equipment.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the audio playing method of any one of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the audio playing method according to any one of claims 1 to 7 when the computer program is executed.
CN202210403465.6A 2022-04-18 2022-04-18 Audio playing method and device, computer readable storage medium and computer equipment Pending CN116962606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210403465.6A CN116962606A (en) 2022-04-18 2022-04-18 Audio playing method and device, computer readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210403465.6A CN116962606A (en) 2022-04-18 2022-04-18 Audio playing method and device, computer readable storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN116962606A true CN116962606A (en) 2023-10-27

Family

ID=88458975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210403465.6A Pending CN116962606A (en) 2022-04-18 2022-04-18 Audio playing method and device, computer readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN116962606A (en)

Similar Documents

Publication Publication Date Title
CN106686396B (en) Method and system for switching live broadcast room
CN107360458B (en) Play control method, device, storage medium and terminal
WO2017202348A1 (en) Video playing method and device, and computer storage medium
WO2017008627A1 (en) Multimedia live broadcast method, apparatus and system
CN106792120B (en) Video picture display method and device and terminal
CN103391473B (en) Method and device for providing and acquiring audio and video
CN106708538B (en) Interface display method and device
CN106254910B (en) Method and device for recording image
CN111866433B (en) Video source switching method, video source playing method, video source switching device, video source playing device, video source equipment and storage medium
CN107333162B (en) Method and device for playing live video
US20220283828A1 (en) Application sharing method, electronic device and computer readable storage medium
CN106406924B (en) Control method and device for starting and quitting picture of application program and mobile terminal
CN106658064B (en) Virtual gift display method and device
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
EP3432557A1 (en) Control method of scene sound effect and related products
WO2019076250A1 (en) Push message management method and related products
CN111078186A (en) Playing method and electronic equipment
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN111314517B (en) Display panel and mobile terminal
CN112040324A (en) Playing progress adjusting method and device, storage medium and terminal
CN109660445B (en) Message processing method, device and storage medium
CN107622234B (en) Method and device for displaying budding face gift
CN112367425B (en) Volume adjusting method and device and terminal
CN111372127B (en) Data transmission method and related device
CN116962606A (en) Audio playing method and device, computer readable storage medium and computer equipment

Legal Events

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