CN111381796B - Processing method and device for realizing KTV function on client and user equipment - Google Patents

Processing method and device for realizing KTV function on client and user equipment Download PDF

Info

Publication number
CN111381796B
CN111381796B CN201811628522.0A CN201811628522A CN111381796B CN 111381796 B CN111381796 B CN 111381796B CN 201811628522 A CN201811628522 A CN 201811628522A CN 111381796 B CN111381796 B CN 111381796B
Authority
CN
China
Prior art keywords
user equipment
processing mode
version number
processing
audio data
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.)
Active
Application number
CN201811628522.0A
Other languages
Chinese (zh)
Other versions
CN111381796A (en
Inventor
熊吉普
曹俊跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811628522.0A priority Critical patent/CN111381796B/en
Publication of CN111381796A publication Critical patent/CN111381796A/en
Application granted granted Critical
Publication of CN111381796B publication Critical patent/CN111381796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Abstract

The embodiment of the disclosure discloses a processing method and device for realizing a KTV function on a client and user equipment. The method comprises the following steps: receiving a trigger operation of a user for a KTV function, and acquiring attribute information of user equipment, wherein the attribute information of the user equipment comprises a system version number of the user equipment; selecting an ear return processing mode corresponding to the system version number according to the system version number of the user equipment; and processing the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number. The embodiment of the disclosure can select a proper ear return processing mode to realize audio data processing in a KTV function process aiming at different user equipment, and improves the adaptability of the ear return processing mode and the user equipment, thereby ensuring the ear return effect and improving the use experience of users.

Description

Processing method and device for realizing KTV function on client and user equipment
Technical Field
The embodiment of the disclosure relates to the technical field of terminals, in particular to a processing method and device for realizing a KTV function on a client and user equipment.
Background
With the continuous development of terminal technology, various Applications (APP) have come up, for example, an APP with a KTV function provides a convenient service for a user who likes music.
Applications with KTV functionality typically require an ear return function to be invoked when used by a user. When the conventional user equipment calls the earreturn function, a fixed earreturn processing mode is usually set for an application program. However, the fixed earreturn processing mode is different from the adaptability of different user devices, so that the problem of poor earreturn effect exists, and the use experience of the user is influenced.
Disclosure of Invention
The embodiment of the disclosure provides a processing method and device for realizing a KTV function on a client and user equipment, and can select a proper ear return processing mode to realize audio data processing in a KTV function process aiming at different user equipment, so that the adaptation of the ear return processing mode and the user equipment is improved, the ear return effect is ensured, and the use experience of a user is improved.
In a first aspect, an embodiment of the present disclosure provides a processing method for implementing a KTV function on a client, including:
receiving a trigger operation of a user for a KTV function, and acquiring attribute information of user equipment, wherein the attribute information of the user equipment comprises a system version number of the user equipment;
selecting an ear return processing mode corresponding to the system version number according to the system version number of the user equipment;
and processing the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number.
Optionally, the obtaining of the attribute information of the user equipment includes:
and reading the attribute information of the user equipment through a general system interface of the operating system layer of the user equipment.
Optionally, the attribute information of the user equipment further includes an equipment model of the user equipment, and the method further includes:
if the equipment model of the user equipment is in a preset first model list, calling a KTV function configured by the user equipment; alternatively, the first and second electrodes may be,
and if the equipment model of the user equipment is located in a preset second model list, sending prompt information to a display page of the user equipment so as to display the prompt information that the user equipment does not support the KTV function on the display page.
Optionally, selecting an earring return processing mode corresponding to the system version number according to the system version number of the user equipment includes:
if the system version number of the user equipment is a first version number, selecting an ear return processing mode as a first processing mode, and processing the audio data in the process of realizing the KTV function according to the first processing mode;
and if the system version number of the user equipment is a second version number, selecting the ear return processing mode as a second processing mode, and processing the audio data in the process of realizing the KTV function according to the second processing mode.
Optionally, the attribute information of the user equipment further includes an equipment model of the user equipment, and selecting an earreturn processing mode corresponding to the system version number according to the system version number of the user equipment includes:
and selecting an ear return processing mode corresponding to both the system version number and the equipment model according to the system version number of the user equipment and the equipment model of the user equipment.
Optionally, selecting an ear return processing mode corresponding to both the system version number and the device model according to the system version number of the user device and the device model of the user device includes:
if the system version number of the user equipment is a first version number and the equipment model of the user equipment is not in a preset third model list, selecting an ear return processing mode as a first processing mode, and processing audio data in the process of realizing the KTV function according to the first processing mode;
and if the system version number of the user equipment is a second version number or the equipment model of the user equipment is in a preset third model list, selecting the ear return processing mode as a second processing mode, and processing the audio data in the process of realizing the KTV function according to the second processing mode.
Optionally, processing the audio data in the KTV function implementing process according to the first processing mode includes:
acquiring audio data from an audio uploading interface of an operating system layer of user equipment;
sending the audio data to a processor corresponding to the first processing mode so as to render the audio data by the processor corresponding to the first processing mode;
sending the rendered audio data to audio playing equipment through an audio issuing interface of an operating system layer of the user equipment;
processing the audio data in the process of realizing the KTV function according to the second processing mode comprises the following steps:
acquiring audio data from an audio uploading interface of an operating system layer of user equipment;
sending the audio data to a processor corresponding to the second processing mode, storing the audio data in a buffer queue, and reading the audio data from the buffer queue and performing rendering processing by the processor corresponding to the second processing mode;
and sending the rendered audio data to the audio playing equipment through an audio issuing interface of the user equipment operating system layer.
Optionally, the method further comprises:
and generating an audio file according to the audio data acquired by the operating system layer of the user equipment, and sending the audio file to the server.
Optionally, the first version number is a system version number above 8.0 of android, and the second version number is a system version number of 8.0 of android and below; the first processing mode is an AAudio processing mode, and the second processing mode is an OpenSL ES processing mode.
In a second aspect, an embodiment of the present disclosure provides a processing apparatus for implementing a KTV function on a client, including: the device comprises a receiving module, an obtaining module, a selecting module and a processing module;
the receiving module is used for receiving the triggering operation of a user for the KTV function;
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring attribute information of user equipment, and the attribute information of the user equipment comprises a system version number of the user equipment;
the selection module is used for selecting an ear return processing mode corresponding to the system version number according to the system version number of the user equipment;
and the processing module is used for processing the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number.
Optionally, the obtaining module is specifically configured to read attribute information of the user equipment through a general system interface of an operating system layer of the user equipment.
Optionally, the attribute information of the user equipment further includes an equipment model of the user equipment;
further comprising: the system comprises a calling module, a sending module and a display module;
the calling module is used for calling a KTV function configured by the user equipment if the equipment model of the user equipment is in a preset first model list;
the sending module is used for sending prompt information to a display page of the user equipment if the equipment model of the user equipment is located in a preset second model list;
and the display module is used for displaying prompt information that the user equipment does not support the KTV function on the display page.
Optionally, the selecting module is specifically configured to select the earreturn processing mode as the first processing mode if the system version number of the user equipment is the first version number; the processing module is specifically used for processing the audio data in the process of realizing the KTV function according to the first processing mode; alternatively, the first and second electrodes may be,
the selection module is specifically used for selecting the ear return processing mode as the second processing mode if the system version number of the user equipment is the second version number; and the processing module is specifically used for processing the audio data in the process of realizing the KTV function according to the second processing mode.
Optionally, the attribute information of the user equipment further includes an equipment model of the user equipment;
and the selection module is specifically used for selecting an ear return processing mode corresponding to both the system version number and the equipment model according to the system version number of the user equipment and the equipment model of the user equipment.
Optionally, the selection module is specifically configured to select the ear return processing mode as the first processing mode if the system version number of the user equipment is the first version number and the equipment model of the user equipment is not in the preset third model list; the processing module is specifically used for processing the audio data in the process of realizing the KTV function according to the first processing mode; alternatively, the first and second electrodes may be,
the selection module is specifically used for selecting the ear return processing mode as the second processing mode if the system version number of the user equipment is the second version number or the equipment model of the user equipment is in a preset third model list; and the processing module is specifically used for processing the audio data in the process of realizing the KTV function according to the second processing mode.
Optionally, the processing module is specifically configured to obtain audio data from an audio upload interface of an operating system layer of the user equipment; sending the audio data to a processor corresponding to the first processing mode so as to render the audio data by the processor corresponding to the first processing mode; sending the rendered audio data to audio playing equipment through an audio issuing interface of an operating system layer of the user equipment; alternatively, the first and second electrodes may be,
the processing module is specifically used for acquiring audio data from an audio uploading interface of an operating system layer of the user equipment; sending the audio data to a processor corresponding to the second processing mode, storing the audio data in a buffer queue, and reading the audio data from the buffer queue and performing rendering processing by the processor corresponding to the second processing mode; and sending the rendered audio data to the audio playing equipment through an audio issuing interface of the user equipment operating system layer.
Optionally, the processing module is further configured to generate an audio file according to the audio data obtained by the user equipment operating system layer;
and the sending module is also used for sending the audio file to the server.
Optionally, the first version number is a system version number above 8.0 of android, and the second version number is a system version number of 8.0 of android and below; the first processing mode is an AAudio processing mode, and the second processing mode is an OpenSL ES processing mode.
In a third aspect, an embodiment of the present disclosure provides a user equipment, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the processing method for implementing the KTV function on the client according to any one of the first aspect of the embodiments of the present disclosure.
In a fourth aspect, this disclosed embodiment further provides a computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the processing method for implementing the KTV function on the client according to any one of the first aspect of this disclosed embodiment.
According to the embodiment of the audio data processing method and device, the attribute information of the user equipment is obtained, and the appropriate ear return processing mode is selected for different user equipment according to the attribute information of the user equipment, so that the audio data processing in the KTV function process is realized.
Drawings
Fig. 1 is a schematic flowchart of a processing method for implementing a KTV function on a client according to an embodiment of the present disclosure;
fig. 2 is a system architecture diagram of a user equipment provided by an embodiment of the present disclosure;
fig. 3 is a system architecture diagram of another user equipment provided by an embodiment of the present disclosure;
fig. 4 is a system architecture diagram of another user equipment provided by an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another processing method for implementing a KTV function on a client according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a processing apparatus for implementing a KTV function on a client according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another processing apparatus for implementing a KTV function on a client according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a user equipment according to an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
It should be noted that the terms "system" and "network" are often used interchangeably in this disclosure. Reference to "and/or" in embodiments of the present disclosure is intended to "include any and all combinations of one or more of the associated listed items. The terms "first," "second," "third," and the like in the description and claims of the present disclosure and in the drawings are used for distinguishing between different objects and not for limiting a particular order.
It should also be noted that the following embodiments of the present disclosure may be implemented individually, or may be implemented in combination with each other, and the embodiments of the present disclosure are not limited specifically.
The embodiment of the disclosure provides a processing method and device for realizing a KTV function on a client and user equipment, and can select a proper ear return processing mode to realize audio data processing in a KTV function process aiming at different user equipment, so that the adaptation of the ear return processing mode and the user equipment is improved, the ear return effect is ensured, and the use experience of a user is improved.
Next, a processing method and apparatus for implementing the KTV function on the client, and technical effects thereof are described in detail.
Fig. 1 is a schematic flowchart of a processing method for implementing a KTV function on a client according to an embodiment of the present disclosure, where the method disclosed in the embodiment of the present disclosure is mainly applicable to a user equipment, and specifically, may be implemented by an application program with a KTV function installed on the user equipment, as shown in fig. 1, the method specifically includes the following steps:
s101, the client receives trigger operation of a user for the KTV function.
It can be understood that the client in this step may be a smart phone, or an application program with a KTV function installed on any user equipment such as a notebook computer or a tablet computer.
The user may make the trigger operation through an external Input Device (Input Device) or by touching a display screen of the user Device. Specifically, the user can open an application program with a KTV function installed on the user equipment, and perform a trigger operation for the KTV function on a display interface of the application program.
S102, the client acquires attribute information of the user equipment.
Specifically, the client may read the attribute information of the user equipment through a general system interface of the user equipment operating system layer.
Fig. 2 is a system architecture diagram of a user equipment according to an embodiment of the present disclosure. As can be seen from fig. 2, the user equipment at least includes a hardware layer, an operating system layer and an application layer, wherein the hardware layer is connected with the operating system layer, the operating system layer is connected with the application layer, and different layers are called each other through an interface. The operating system layer comprises a general system interface, and after the client receives the trigger operation of the user for the KTV function, the client can read the attribute information of the user equipment by calling the general system interface of the operating system layer of the user equipment.
The attribute information of the user equipment at least comprises a system version number of the user equipment. Optionally, the attribute information of the user equipment may further include a device model of the user equipment. The system version number may refer to the number of different versions of the system by the developer of the operating system used by the user equipment; the device model number may refer to the number of the user device by the manufacturer of the user device.
When the attribute information of the user equipment includes the equipment model of the user equipment, after performing step S102, the method may include any one of the following 2 steps:
step 1, if the equipment model of the user equipment is located in a preset first model list, the client calls a KTV function configured by the user equipment.
The step 1 is applicable to the user equipment with configured KTV function, that is, the preset first model list includes all the scenes of the equipment models of the user equipment with configured KTV function.
The user equipment corresponding to the preset first model list has the configured KTV function, and the priority of the KTV function configured by the user equipment is high. That is, when the client determines that the device model of the user device is in the preset first model list, the client may directly invoke the KTV function configured by the user device, so as to save the time for selecting the earreturn processing mode, and do not need to execute the following steps S103 to S105.
And step 2, if the equipment model of the user equipment is in a preset second model list, the client sends prompt information to a display page of the user equipment so as to display the prompt information that the user equipment does not support the KTV function on the display page.
This step 2 is applicable to a user equipment not configured with the KTV function, and optionally, step 2 is also applicable to a user equipment in a blacklist, where an equipment model of the user equipment, which is configured with the KTV function but has a very poor earreturn effect, is recorded in the blacklist. Namely, the preset second model list includes all scenarios of the device models of the user devices which are not configured with the KTV function and are added into the blacklist.
When the client confirms that the device model of the user device is in the preset second model list and the user device cannot provide the KTV function, the client sends prompt information to a display page of the user device so as to display the prompt information that the user device does not support the KTV function on the display page without executing the following steps S103-S105.
The prompt message may be pop-up window type text message, for example, a prompt bar is displayed above a layer of a current display page of the user equipment, and the prompt bar displays a prompt message "the user equipment does not support the KTV function". The prompt information may also be other types of prompt information, for example, a warning symbol appears at a preset position of the user equipment display page, or a prompt sound effect is issued through shaking of the user equipment display page, which is not limited in this disclosure.
Of course, if the attribute information of the user equipment does not include the equipment model of the user equipment, or the equipment model of the user equipment is not located in the preset first model list or the preset second model list, the client needs to select a proper earreturn processing mode to implement the audio data processing in the KTV function process. The specific methods for selecting the earreturn processing mode and processing the audio data in the process of implementing the KTV function are as the following steps S103 and S104.
S103, the client selects an ear return processing mode corresponding to the system version number according to the system version number of the user equipment.
And S104, the client processes the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number.
The system version number of the user equipment can be divided into a first version number and a second version number, wherein the first version number is a system version number above 8.0 of android, and the second version number is a system version number above 8.0 of android and below the android. The earring processing mode corresponding to the system version number may also be divided into a first processing mode and a second processing mode, where the first processing mode is an AAudio processing mode, and the second processing mode is an OpenSL ES processing mode. In combination with steps S103 and S104, it can be seen that the method for the client to select the earreturn processing mode and to implement the audio data processing in the KTV function process may include any one of the following 4 scenarios:
in a first scenario, when the attribute information of the user equipment includes a system version number of the user equipment, if the system version number of the user equipment is an edition above android 8.0, the client selects an ear return processing mode as an AAudio processing mode, and processes audio data in a process of realizing a KTV function according to the AAudio processing mode.
And when the attribute information of the user equipment comprises a system version number of the user equipment, if the system version number of the user equipment is android 8.0 or a version below the android 8.0, the client selects an ear return processing mode as an OpenSL ES processing mode, and processes the audio data in the process of realizing the KTV function according to the OpenSL ES processing mode.
The attribute information of the first scenario and the second scenario, which is applicable to the user equipment, only includes the system version number of the user equipment. OpenSL ES is called opensound Library for Embedded Systems, that is, Embedded audio acceleration standard. The OpenSL ES is a hardware audio accelerating Application Programming Interface (API) which is not authorized, cross-platform, and carefully optimized for an embedded system, and provides a standardized, high-performance, low-response-time audio function implementation method for local Application developers on embedded mobile multimedia devices, and also implements direct cross-platform deployment of software/hardware audio performance, thereby not only reducing the execution difficulty, but also promoting the development of the advanced audio market. AAudio is an alternative to OpenSL ES, which can significantly reduce the delay time compared to OpenSL ES.
And in a third scenario, when the attribute information of the user equipment comprises a system version number of the user equipment and an equipment model of the user equipment, if the system version number of the user equipment is a version more than 8.0 android and the equipment model of the user equipment is not in a preset third model list, the client selects an ear return processing mode as an AAudio processing mode, and processes audio data in a KTV function realization process according to the AAudio processing mode.
And fourthly, when the attribute information of the user equipment comprises a system version number of the user equipment and an equipment model of the user equipment, if the system version number of the user equipment is an android 8.0 version or a version below the android 8.0 version, or the equipment model of the user equipment is located in a preset third model list, the client selects an ear return processing mode to be an OpenSL ES processing mode, and processes the audio data in the process of realizing the KTV function according to the OpenSL ES processing mode.
The attribute information of the third scene and the fourth scene, which is suitable for the user equipment, includes a system version number of the user equipment and an equipment model of the user equipment. And when the ear return processing mode is the AAudio processing mode, the preset third model list is correspondingly configured with the equipment model of the user equipment with very poor ear return effect. Optionally, the preset third model list may also correspond to a device model of the user equipment of which the system version number is more than 8.0 of android, but the ear return effect is very poor when the ear return processing mode is configured as the AAudio processing mode.
When the system version number of the user equipment is more than 8.0 of android and the equipment model of the user equipment is not in a preset third model list, the client is indicated to be suitable for selecting an ear return processing mode to be an AAudio processing mode; when the system version number of the user equipment is 8.0 android and below, or the equipment model of the user equipment is in a preset third model list, the fact that the client is not suitable for selecting the earreturn processing mode to be the AAudio processing mode is shown, and therefore the client selects the earreturn processing mode to be the OpenSL ES processing mode.
In addition, because the earreturn processing mode selected in the first and third scenes is an AAudio processing mode, the method for processing the audio data in the KTV function implementing process according to the AAudio processing mode may include the following three steps:
step a, the client side obtains audio data uploaded by the audio acquisition equipment from an audio uploading interface of an operating system layer of the user equipment.
And step b, the client sends the audio data to an audio recording interface of the AAudio audio processor so that the AAudio audio processor renders the audio data.
And c, the client sends the rendered audio data to the audio playing device through an audio issuing interface of the user equipment operating system layer.
With reference to fig. 2, fig. 3 is a system architecture diagram of another user equipment provided in the embodiment of the present disclosure. As can be seen from fig. 3, the user equipment comprises at least a hardware layer, an operating system layer and an application layer, and different layers are mutually invoked through interfaces. The hardware layer comprises audio acquisition equipment and audio playing equipment, wherein the audio acquisition equipment is used for acquiring audio data, and the audio playing equipment is used for playing the audio data subjected to rendering processing; the operating system layer includes an audio uploading interface and an audio issuing interface, in addition to a general system interface (not shown in fig. 3); the application layer includes an AAudio audio processor.
After audio data are collected by audio collection equipment of the hardware layer, the audio data are uploaded to an audio uploading interface of the operating system layer; the client sends the audio data acquired from the audio uploading interface to an audio recording interface of the AAudio audio processor so that the AAudio audio processor renders the audio data; after the rendering processing is completed, the client sends the rendered audio data to the audio playing device through the audio issuing interface of the operating system layer, so that the audio playing device plays the rendered audio data.
Similarly, since the ear return processing mode selected in the second scenario and the fourth scenario is an OpenSL ES processing mode, the method for processing the audio data in the KTV function implementing process according to the OpenSL ES processing mode may include the following three steps:
and step A, the client acquires audio data uploaded by the audio acquisition equipment from an audio uploading interface of the user equipment operating system layer.
And step B, the client sends the audio data to an audio recording interface of the OpenSL ES audio processor and stores the audio data in a cache queue, so that the OpenSL ES audio processor reads the audio data from the cache queue and carries out rendering processing.
And step C, the client sends the rendered audio data to the audio playing device through an audio issuing interface of the user equipment operating system layer.
Fig. 4, in conjunction with fig. 2, is a system architecture diagram of still another user equipment according to an embodiment of the present disclosure. As can be seen from fig. 4, the user equipment comprises at least a hardware layer, an operating system layer and an application layer, and different layers are mutually invoked through interfaces. The hardware layer comprises audio acquisition equipment and audio playing equipment, wherein the audio acquisition equipment is used for acquiring audio data, and the audio playing equipment is used for playing the audio data subjected to rendering processing; the operating system layer includes an audio uploading interface and an audio sending interface in addition to a general system interface (not shown in fig. 4); the application layer includes an OpenSL ES audio processor.
After audio data are collected by audio collection equipment of the hardware layer, the audio data are uploaded to an audio uploading interface of the operating system layer; the client sends the audio data acquired from the audio uploading interface to an audio recording interface of the OpenSL audio processor, so that the OpenSL ES audio processor performs rendering processing on the audio data; after the rendering processing is completed, the client sends the rendered audio data to the audio playing device through the audio issuing interface of the operating system layer, so that the audio playing device plays the rendered audio data.
It should be noted that the system architecture diagrams of the user equipment described in fig. 3 and fig. 4 above are only one implementation manner of the embodiment of the present disclosure, and optionally, the application layer may further include an AAudio audio processor and an OpenSL ES audio processor at the same time, which is not limited in the embodiment of the present disclosure.
On the basis of the foregoing embodiment of the present disclosure, fig. 5 is a schematic flowchart of a processing method for implementing a KTV function on another client according to the embodiment of the present disclosure, and in addition to the foregoing steps S101 to S104, the method further includes:
and S105, the client generates an audio file according to the audio data acquired by the operating system layer of the user equipment, and sends the audio file to the server.
And sending the audio file to a server so as to store and release the audio file through the server and realize diversified audio-visual experience.
The embodiment of the disclosure provides a processing method for realizing a KTV function on a client, which includes: receiving a trigger operation of a user for a KTV function, and acquiring attribute information of user equipment, wherein the attribute information of the user equipment comprises a system version number of the user equipment; selecting an ear return processing mode corresponding to the system version number according to the system version number of the user equipment; and processing the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number. Compared with the existing ear return processing mode which is fixed aiming at one application program, the ear return processing mode and the adaptability of the user equipment can be improved by the embodiment of the disclosure, so that the ear return effect is ensured, and the use experience of a user is improved.
Fig. 6 is a schematic structural diagram of a processing apparatus for implementing a KTV function on a client according to an embodiment of the present disclosure, and specifically, the apparatus may be configured in a user equipment, and includes: the device comprises a receiving module 10, an obtaining module 11, a selecting module 12 and a processing module 13.
The receiving module 10 is configured to receive a trigger operation of a user for a KTV function;
an obtaining module 11, configured to obtain attribute information of a user equipment, where the attribute information of the user equipment includes a system version number of the user equipment;
the selection module 12 is configured to select an ear return processing mode corresponding to the system version number according to the system version number of the user equipment;
and the processing module 13 is configured to process the audio data in the KTV function implementing process according to the selected ear return processing mode corresponding to the system version number.
Optionally, the obtaining module 11 is specifically configured to read attribute information of the user equipment through a general system interface of an operating system layer of the user equipment.
Optionally, the attribute information of the user equipment further includes an equipment model of the user equipment;
with reference to fig. 6, fig. 7 is a schematic structural diagram of another processing apparatus for implementing a KTV function on a client according to an embodiment of the present disclosure, and further includes: a calling module 14, a sending module 15 and a display module 16.
The calling module 14 is configured to call a KTV function configured by the user equipment if the equipment model of the user equipment is in the preset first model list;
the sending module 15 is configured to send a prompt message to a display page of the user equipment if the equipment model of the user equipment is in a preset second model list;
and the display module 16 is used for displaying prompt information that the user equipment does not support the KTV function on a display page.
Optionally, the selecting module 12 is specifically configured to select the earreturn processing mode as the first processing mode if the system version number of the user equipment is the first version number; the processing module 13 is specifically configured to process the audio data in the KTV function implementing process according to the first processing mode; alternatively, the first and second electrodes may be,
the selecting module 12 is specifically configured to select the earreturn processing mode as the second processing mode if the system version number of the user equipment is the second version number; the processing module 13 is specifically configured to process the audio data in the process of implementing the KTV function according to the second processing mode.
Optionally, the attribute information of the user equipment further includes an equipment model of the user equipment;
the selecting module 12 is specifically configured to select an ear return processing mode corresponding to both the system version number and the device model according to the system version number of the user device and the device model of the user device.
Optionally, the selecting module 12 is specifically configured to select the ear return processing mode as the first processing mode if the system version number of the user equipment is the first version number and the equipment model of the user equipment is not in the preset third model list; the processing module 13 is specifically configured to process the audio data in the KTV function implementing process according to the first processing mode; alternatively, the first and second electrodes may be,
the selection module 12 is specifically configured to select the ear return processing mode as the second processing mode if the system version number of the user equipment is the second version number or the equipment model of the user equipment is in a preset third model list; the processing module 13 is specifically configured to process the audio data in the process of implementing the KTV function according to the second processing mode.
Optionally, the processing module 13 is configured to obtain audio data from an audio upload interface of the user equipment operating system layer; sending the audio data to a processor corresponding to the first processing mode so as to render the audio data by the processor corresponding to the first processing mode; sending the rendered audio data to audio playing equipment through an audio issuing interface of an operating system layer of the user equipment; alternatively, the first and second electrodes may be,
the processing module 13 is specifically configured to obtain audio data from an audio upload interface of the user equipment operating system layer; sending the audio data to a processor corresponding to the second processing mode, storing the audio data in a buffer queue, and reading the audio data from the buffer queue and performing rendering processing by the processor corresponding to the second processing mode; and sending the rendered audio data to the audio playing equipment through an audio issuing interface of the user equipment operating system layer.
Optionally, the processing module 13 is further configured to generate an audio file according to the audio data obtained by the user equipment operating system layer;
and the sending module 15 is further configured to send the audio file to the server.
Optionally, the first version number is a system version number above 8.0 of android, and the second version number is a system version number of 8.0 of android and below; the first processing mode is an AAudio processing mode, and the second processing mode is an OpenSL ES processing mode.
The processing apparatus for implementing the KTV function on the client provided in the embodiment of the present disclosure may execute the steps executed by the user equipment in the processing method for implementing the KTV function on the client provided in the embodiment of the present disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 8 is a schematic structural diagram of a user equipment according to an embodiment of the present disclosure, and as shown in fig. 8, a schematic structural diagram of a user equipment suitable for implementing an embodiment of the present disclosure is shown. Taking a user device as an example, the user device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The user equipment shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, user device 800 may include a processor (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with programs stored in a Read Only Memory (ROM)802 or loaded from a storage device 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the user equipment 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the user equipment 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates a user equipment 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processor 801, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a trigger operation of a user for a KTV function, and acquiring attribute information of user equipment, wherein the attribute information of the user equipment comprises a system version number of the user equipment; selecting an ear return processing mode corresponding to the system version number according to the system version number of the user equipment; and processing the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Here, the name of the module does not constitute a limitation to the module itself in some cases, and for example, the receiving module 10 may also be described as a "module that receives a user's trigger operation for a KTV function".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (9)

1. A processing method for implementing KTV function on a client, comprising:
receiving a trigger operation of a user for a KTV function, and acquiring attribute information of user equipment, wherein the attribute information of the user equipment comprises a system version number of the user equipment and an equipment model of the user equipment;
selecting an ear return processing mode corresponding to the system version number according to the system version number and the equipment model of the user equipment;
processing the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number and the equipment model;
the processing of the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number and the equipment model comprises the following steps:
if the system version number of the user equipment is a first version number and the equipment model of the user equipment is not in a preset third model list, selecting an ear return processing mode as a first processing mode, and processing audio data in the process of realizing a KTV function according to the first processing mode;
if the system version number of the user equipment is a second version number, or the equipment model of the user equipment is located in the preset third model list, selecting an ear return processing mode as a second processing mode, and processing audio data in the process of realizing the KTV function according to the second processing mode;
wherein, the preset third model list is: the system version number of the user equipment is a first version number, and the ear return processing mode is a set of equipment models of the user equipment with a very poor ear return effect when the ear return processing mode is the first processing mode, wherein the first processing mode is an AAudio processing mode, and the second processing mode is an OpenSL ES processing mode.
2. The processing method of claim 1, wherein said obtaining attribute information of the user equipment comprises:
and reading the attribute information of the user equipment through a general system interface of the user equipment operating system layer.
3. The processing method of claim 1, wherein said method further comprises:
if the equipment model of the user equipment is in a preset first model list, calling a KTV function configured by the user equipment; alternatively, the first and second electrodes may be,
if the equipment model of the user equipment is located in a preset second model list, sending prompt information to a display page of the user equipment so as to display the prompt information that the user equipment does not support the KTV function on the display page.
4. The processing method of claim 1, wherein said KTV function is implemented on said client,
the processing the audio data in the process of realizing the KTV function according to the first processing mode comprises the following steps:
acquiring the audio data from an audio uploading interface of a user equipment operating system layer;
sending the audio data to a processor corresponding to the first processing mode so as to render the audio data by the processor corresponding to the first processing mode;
sending the rendered audio data to an audio playing device through an audio issuing interface of the user equipment operating system layer;
the processing the audio data in the process of realizing the KTV function according to the second processing mode comprises the following steps:
acquiring the audio data from the audio uploading interface of the user equipment operating system layer;
sending the audio data to a processor corresponding to the second processing mode, storing the audio data in a buffer queue, and reading the audio data from the buffer queue by the processor corresponding to the second processing mode and performing rendering processing;
and sending the rendered audio data to the audio playing device through an audio issuing interface of the user equipment operating system layer.
5. The processing method of claim 4, wherein said method further comprises:
and generating an audio file according to the audio data acquired by the user equipment operating system layer, and sending the audio file to a server.
6. The processing method of claim 1, wherein the first version number is a system version number above android 8.0, and the second version number is a system version number of android 8.0 and below.
7. A processing apparatus for implementing a KTV function on a client, comprising: the device comprises a receiving module, an obtaining module, a selecting module and a processing module;
the receiving module is used for receiving the triggering operation of the user for the KTV function;
the acquisition module is used for acquiring attribute information of the user equipment, wherein the attribute information of the user equipment comprises a system version number and an equipment model of the user equipment;
the selection module is used for selecting an ear return processing mode corresponding to the system version number according to the system version number and the equipment model of the user equipment;
the processing module is used for processing the audio data in the process of realizing the KTV function according to the selected ear return processing mode corresponding to the system version number and the equipment model;
the processing module is specifically configured to: if the system version number of the user equipment is a first version number and the equipment model of the user equipment is not in a preset third model list, selecting an ear return processing mode as a first processing mode, and processing audio data in the process of realizing a KTV function according to the first processing mode; if the system version number of the user equipment is a second version number, or the equipment model of the user equipment is located in a preset third model list, selecting an ear return processing mode as a second processing mode, and processing audio data in a process of realizing a KTV function according to the second processing mode, wherein the preset third model list is as follows: the system version number of the user equipment is a first version number, and the ear return processing mode is a set of equipment models of the user equipment with a very poor ear return effect when the ear return processing mode is the first processing mode, wherein the first processing mode is an AAudio processing mode, and the second processing mode is an OpenSL ES processing mode.
8. A user device, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs when executed by the one or more processors cause the one or more processors to implement the processing method of implementing KTV functionality on a client as recited in any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the processing method of implementing a KTV function on a client according to any one of claims 1 to 6.
CN201811628522.0A 2018-12-28 2018-12-28 Processing method and device for realizing KTV function on client and user equipment Active CN111381796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811628522.0A CN111381796B (en) 2018-12-28 2018-12-28 Processing method and device for realizing KTV function on client and user equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811628522.0A CN111381796B (en) 2018-12-28 2018-12-28 Processing method and device for realizing KTV function on client and user equipment

Publications (2)

Publication Number Publication Date
CN111381796A CN111381796A (en) 2020-07-07
CN111381796B true CN111381796B (en) 2021-09-17

Family

ID=71216439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811628522.0A Active CN111381796B (en) 2018-12-28 2018-12-28 Processing method and device for realizing KTV function on client and user equipment

Country Status (1)

Country Link
CN (1) CN111381796B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102013994A (en) * 2010-11-02 2011-04-13 中兴通讯股份有限公司 Method, terminal and system for implementing network element version compatibility in network management
CN103377052A (en) * 2012-04-12 2013-10-30 金蝶软件(中国)有限公司 Method and system for automatically downloading adaptive application programs on basis of file synchronization service
CN103855749A (en) * 2012-12-07 2014-06-11 中兴通讯股份有限公司 Method and system for powering embedded device with multiple batteries
CN105657154A (en) * 2015-10-30 2016-06-08 东莞酷派软件技术有限公司 Method and device for selecting audio channel and terminal
CN105895111A (en) * 2015-12-15 2016-08-24 乐视致新电子科技(天津)有限公司 Android based audio content processing method and device
CN105898431A (en) * 2016-04-26 2016-08-24 乐视控股(北京)有限公司 Selectively playing method and system for audio and video formats
CN105992056A (en) * 2015-01-30 2016-10-05 腾讯科技(深圳)有限公司 Video decoding method and device
CN107357580A (en) * 2017-07-05 2017-11-17 竞技世界(北京)网络技术有限公司 A kind of method that guiding terminal user opens the miscellaneous function authority of application
CN107992282A (en) * 2017-11-29 2018-05-04 珠海市魅族科技有限公司 Audio data processing method and device, computer installation and readable storage devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710857A (en) * 2012-05-24 2012-10-03 武汉诚迈科技有限公司 Karaoke method suitable for android smart phone
CN106817476A (en) * 2015-11-27 2017-06-09 深圳富泰宏精密工业有限公司 Electronic equipment and the method that audio matching is carried out using the electronic equipment
CN105827829B (en) * 2016-03-14 2019-07-26 联想(北京)有限公司 Reception method and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102013994A (en) * 2010-11-02 2011-04-13 中兴通讯股份有限公司 Method, terminal and system for implementing network element version compatibility in network management
CN103377052A (en) * 2012-04-12 2013-10-30 金蝶软件(中国)有限公司 Method and system for automatically downloading adaptive application programs on basis of file synchronization service
CN103855749A (en) * 2012-12-07 2014-06-11 中兴通讯股份有限公司 Method and system for powering embedded device with multiple batteries
CN105992056A (en) * 2015-01-30 2016-10-05 腾讯科技(深圳)有限公司 Video decoding method and device
CN105657154A (en) * 2015-10-30 2016-06-08 东莞酷派软件技术有限公司 Method and device for selecting audio channel and terminal
CN105895111A (en) * 2015-12-15 2016-08-24 乐视致新电子科技(天津)有限公司 Android based audio content processing method and device
CN105898431A (en) * 2016-04-26 2016-08-24 乐视控股(北京)有限公司 Selectively playing method and system for audio and video formats
CN107357580A (en) * 2017-07-05 2017-11-17 竞技世界(北京)网络技术有限公司 A kind of method that guiding terminal user opens the miscellaneous function authority of application
CN107992282A (en) * 2017-11-29 2018-05-04 珠海市魅族科技有限公司 Audio data processing method and device, computer installation and readable storage devices

Also Published As

Publication number Publication date
CN111381796A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
CN109753332B (en) Method and device for displaying information
CN109582274B (en) Volume adjusting method and device, electronic equipment and computer readable storage medium
CN107613369B (en) Video playing method and device based on GStreamer frame and electronic equipment
CN111526411A (en) Video processing method, device, equipment and medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN111790148B (en) Information interaction method and device in game scene and computer readable medium
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
EP4346218A1 (en) Audio processing method and apparatus, and electronic device and storage medium
CN111435600B (en) Method and apparatus for processing audio
CN112015505A (en) Mode switching method and device and electronic equipment
CN110022493B (en) Playing progress display method and device, electronic equipment and storage medium
JP2023525091A (en) Image special effect setting method, image identification method, device and electronic equipment
CN111857518A (en) Method and device for canceling image editing operation, electronic equipment and medium
CN111381796B (en) Processing method and device for realizing KTV function on client and user equipment
CN111382039A (en) Method, device, electronic equipment and storage medium for reporting user behavior event
CN111381797B (en) Processing method and device for realizing KTV function on client and user equipment
JP2023527174A (en) Video special effect arrangement method, video special effect arrangement device, device and storage medium
CN114489891A (en) Control method, system, device, readable medium and equipment of cloud application program
CN109375892B (en) Method and apparatus for playing audio
CN111385638B (en) Video processing method and device
CN111367592B (en) Information processing method and device
CN109445873B (en) Method and device for displaying setting interface
CN113495712A (en) Automatic volume adjustment method, apparatus, medium, and device
CN111294657A (en) Information processing method and device

Legal Events

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