CN112882622A - Data processing method and device, terminal and storage medium - Google Patents

Data processing method and device, terminal and storage medium Download PDF

Info

Publication number
CN112882622A
CN112882622A CN202110178977.2A CN202110178977A CN112882622A CN 112882622 A CN112882622 A CN 112882622A CN 202110178977 A CN202110178977 A CN 202110178977A CN 112882622 A CN112882622 A CN 112882622A
Authority
CN
China
Prior art keywords
audio
terminal
audio channel
application
control
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
CN202110178977.2A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110178977.2A priority Critical patent/CN112882622A/en
Publication of CN112882622A publication Critical patent/CN112882622A/en
Pending legal-status Critical Current

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a data processing method and device, a terminal and a storage medium, which are applied to the terminal, wherein the method comprises the following steps: detecting a currently running application in the terminal in response to the terminal being connected to a wireless headset; if the currently running application is any application with an audio function in the terminal, outputting prompt information; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset; receiving a selection instruction for selecting one of the first audio channel and the second audio channel; the audio channel selected using the selection instruction supports an audio function of the application. By the method, the intelligence of the terminal is improved, and the use experience of a user is improved.

Description

Data processing method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data processing method and apparatus, a terminal, and a storage medium.
Background
Bluetooth has now taken advantage of its own advantages, and Bluetooth technology is ubiquitous in both work, study and life. Bluetooth is one of the most widely used wireless communication protocols at present, mainly aims at short-distance communication, has the advantages of low power consumption and high transmission speed, is a function almost equipped by each mobile phone standard at present, and is mainly used for connecting equipment such as earphones, wearable peripherals and the like with mobile phones.
The Bluetooth earphone applies the Bluetooth technology to a hands-free earphone, so that a user is free from the limitation of wires. The user can use the Bluetooth headset to talk or play the multimedia file.
Disclosure of Invention
The disclosure provides a data processing method and device, equipment and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a data processing method applied in a terminal, including:
detecting a currently running application in the terminal in response to the terminal being connected to a wireless headset;
if the currently running application is any application with an audio function in the terminal, outputting prompt information; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset;
receiving a selection instruction for selecting one of the first audio channel and the second audio channel;
the audio channel selected using the selection instruction supports an audio function of the application.
Optionally, the audio function includes: an audio output function and an audio collection function.
Optionally, the method further includes:
if the currently running application comprises both a music application and a call application, setting the audio channel selected by the selection instruction as a communication mode supporting multi-audio output; the communication mode supporting multi-audio output supports audio synchronous output of the music application and the conversation application.
Optionally, the outputting the prompt information includes:
displaying a notification control on a display screen of the terminal; the notification control is used for notifying an audio channel currently used by the terminal;
and responding to the operation of clicking the notification control received from the user, and outputting the prompt information.
Optionally, the prompt information at least includes a prompt control of one of the following:
a first control to indicate the first audio channel;
a second control to indicate the second audio channel.
Optionally, the second control includes a prompt sub-control of one of the following:
a first sub-control to indicate use of the second audio channel in a music application;
and the second sub-control is used for indicating that the second audio channel is used in the call application.
Optionally, the selecting instruction includes:
and triggering the selection operation of any prompt control to enter the selected state.
Optionally, the method further includes:
detecting wearing condition information of the wireless headset;
if the wireless earphone is determined to be in a wearing state according to the wearing condition information, before the selection instruction is received, the second audio channel is used for supporting the audio function of the currently running application;
and if the wireless earphone is determined not to be in the wearing state according to the wearing condition information, using the first audio channel to support the audio function of the application.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus, which is applied in a terminal, the apparatus including:
a first detection module configured to detect a currently running application in the terminal in response to the terminal being connected to a wireless headset;
the output module is configured to output prompt information if the currently running application is any application with an audio function in the terminal; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset;
a receiving module configured to receive a selection instruction for selecting one of the first audio channel and the second audio channel;
a support module configured to support an audio function of the application using the audio channel selected by the selection instruction.
Optionally, the audio function includes: an audio output function and an audio collection function.
Optionally, the apparatus further comprises:
the setting module is configured to set the audio channel selected by the selection instruction to a communication mode supporting multi-audio output if the currently running application is detected to comprise a music application and a call application; the communication mode supporting multi-audio output supports audio synchronous output of the music application and the conversation application.
Optionally, the output module is specifically configured to display a notification control on a display screen of the terminal; the notification control is used for notifying an audio channel currently used by the terminal; and responding to the operation of clicking the notification control received from the user, and outputting the prompt information.
Optionally, the prompt information at least includes a prompt control of one of the following:
a first control to indicate the first audio channel;
a second control to indicate the second audio channel.
Optionally, the second control includes a prompt sub-control of one of the following:
a first sub-control to indicate use of the second audio channel in a music application;
and the second sub-control is used for indicating that the second audio channel is used in the call application.
Optionally, the selecting instruction includes:
and triggering the selection operation of any prompt control to enter the selected state.
Optionally, the apparatus further comprises:
a second detection module configured to detect wearing condition information of the wireless headset;
a first determining module configured to, if it is determined that the wireless headset is in a wearing state according to the wearing condition information, use the second audio channel to support an audio function of the currently running application before receiving the selection instruction;
and the second determining module is used for supporting the audio function of the application by using the first audio channel if the wireless earphone is determined not to be in the wearing state according to the wearing condition information.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the data processing method according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in said storage medium, when executed by a processor of a terminal, enable the terminal to perform the data processing method as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, when the terminal is connected with the wireless headset, the prompt information can be output for any application with an audio function in the terminal, so that the user can select the audio channel to support the audio function of the application based on the prompt information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of a data processing method according to an embodiment of the present disclosure.
Fig. 3 is a flowchart three illustrating a data processing method according to an embodiment of the present disclosure.
Fig. 4 is an exemplary diagram of a display page of a notification bar in an embodiment of the disclosure.
Fig. 5 is a diagram illustrating an example of a page including a prompt message according to an embodiment of the disclosure.
Fig. 6 is a second exemplary diagram of a page including a prompt message according to an embodiment of the disclosure.
Fig. 7 is a diagram of an apparatus of a terminal in an embodiment of the disclosure.
Fig. 8 is a block diagram of a terminal shown in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart of a data processing method shown in an embodiment of the present disclosure, which is applied to a terminal, and as shown in fig. 1, the data processing method applied to the terminal includes the following steps:
s11, responding to the connection of the terminal to a wireless headset, and detecting the application currently running in the terminal;
s12, if the application running at present is any application with an audio function in the terminal, outputting prompt information; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset;
s13, receiving a selection instruction, wherein the selection instruction is used for selecting one of the first audio channel and the second audio channel;
s14, the audio channel selected by the selection instruction supports the audio function of the application.
In the embodiment of the present disclosure, the terminal may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or the like.
If the terminal is connected to the wireless headset in step S11, the terminal detects the currently running application, and outputs a prompt message prompting selection of an audio channel when the application is any one of the applications having an audio function in step S12.
In the embodiment of the present disclosure, the wireless headset may be a bluetooth headset, or may be a wireless headset based on other communication methods. The embodiments of the present disclosure take a bluetooth headset as an example for explanation.
In one implementation, the audio functions include: an audio output function and an audio collection function.
It should be noted that the application with the audio function is, for example, a telephone application carried by the terminal itself, or an instant messaging application installed in the terminal (for example, the instant messaging application includes, but is not limited to, a third party WeChat application), a music application, a game application, an audio/video recording application, and/or a live application, and the like.
In an embodiment of the present disclosure, the terminal may compare the application identifier of the currently running application with the application identifier of the application with the audio function stored in the terminal, thereby determining whether the currently running application is the application with the audio function. In addition, the terminal may also query the function specification of the currently running application to determine whether the application has an audio function.
If the application is an application with an audio function, outputting prompt information, for example, displaying the prompt information on a display screen of the terminal or broadcasting the prompt information in voice. The prompt information is used for prompting the user to select a first audio channel directly processed by the terminal or prompting the user to select a second audio channel processed by the Bluetooth headset. For example, the prompt prompts the user to select a speaker (first audio channel) of the terminal to output music or a bluetooth headset (second audio channel) to output music.
When the terminal receives a selection instruction, such as a click instruction based on prompt information displayed on a display screen of the terminal or a voice selection instruction, for selecting one of the first audio channel and the second audio channel in step S13, the audio channel selected using the selection instruction supports an audio function of the application in step S14.
For example, when a user connects a bluetooth headset to listen to music, the user needs to switch to a mobile phone for playing temporarily, and can manually select to switch to the mobile phone quickly, and then can switch back to the bluetooth headset quickly.
For example, when a user performs a voice call, the user needs to temporarily switch the call tone to the mobile phone, and may manually select to quickly switch to the mobile phone, and then may quickly switch back to the bluetooth headset.
For another example, most of the current game applications generally use a bluetooth headset for input and output when the terminal is connected to the bluetooth headset for voice call. In some scenes, such as outdoor games, the sound input by the bluetooth headset may be small, and the user experience is not good. Thus, the present disclosure allows a user to manually select whether to record using a bluetooth microphone or a terminal's microphone.
In the prior art, when a terminal establishes a bluetooth connection with a bluetooth headset and executes an Audio function based on a bluetooth Audio transmission protocol (ADP), only a telephone application of the terminal supports selection of an Audio channel, but other applications do not support selection of the Audio channel, and all other applications forcibly use the bluetooth headset to output Audio, or forcibly use a microphone of the terminal to acquire Audio.
In the embodiment of the disclosure, when the terminal is connected with the wireless headset, the prompt information can be output for any application with an audio function in the terminal, so that the user can select the audio channel to support the audio function of the application based on the prompt information.
Fig. 2 is a flowchart of a data processing method shown in the embodiment of the present disclosure, which is applied in a terminal, and as shown in fig. 2, before step S14, the method further includes:
S14A, if the currently running application comprises both a music application and a call application, setting the audio channel selected by the selection instruction as a communication mode supporting multi-audio output; the communication mode supporting multi-audio output supports audio synchronous output of the music application and the conversation application.
In the embodiment of the disclosure, if the terminal detects that the currently running applications include a music application and a call application, the audio channel selected by the selection instruction is set to the communication mode supporting multi-audio output. For example, the terminal may set an audio mode to COMMUNICATION by audiomanager. Based on the audio channel of the communication mode supporting the multi-audio output, the audio output function of the music application and the call application can be synchronously supported.
In the prior art, after the bluetooth headset and the terminal establish a Synchronous Connection Oriented (SCO), the audio channel is set to a mode supporting a single channel, for example, the terminal usually sets the audio mode to audiomanager.
In the embodiment of the disclosure, after detecting that the running applications include a music application and a call application, the terminal sets the audio channel to be in a communication mode supporting multi-audio output, so that music sound and call sound can be output synchronously, and the call requirement is met without interrupting music playing, so that a user can listen to music continuously, and user experience is improved.
Fig. 3 is a flowchart of a data processing method, shown in an embodiment of the present disclosure, applied in a terminal, and as shown in fig. 3, step S12 in fig. 1 includes the following steps:
S12A, displaying a notification control on a display screen of the terminal; the notification control is used for notifying an audio channel currently used by the terminal;
and S12B, responding to the operation of clicking the notification control received from the user, and outputting the prompt information.
In the embodiment of the present disclosure, if the terminal is connected to the wireless headset, in step S12A, the terminal displays a notification control on the display screen to notify the terminal of the currently supported audio channel. Based on the displayed notification control, the terminal may receive an operation of clicking the notification control in step S12B, and output prompt information in response to the operation. It should be noted that, when the notification control is displayed on the display screen, whether the currently used audio channel is the first audio channel or the second audio channel may also be synchronously displayed.
For example, when a bluetooth headset is connected to a mobile phone, a resident notification is popped up in a notification bar in the form of a notification control through notifyamanager. And if the mobile phone receives the click operation of the user based on the notification control, popping up a radio box comprising prompt information at the bottom of the screen.
Fig. 4 is an exemplary diagram of a display page of a notification bar in an embodiment of the present disclosure, and as shown in fig. 4, a control identified by L is a notification control, and a current audio output device of a mobile phone is displayed on the notification control L as a local device. An L1 child control is included within notification control L. The current audio output device of the mobile phone is the local device, and the mobile phone is still connected to the Bluetooth headset. When the user desires to disconnect the bluetooth headset, the L1 sub-control can be clicked, i.e., the connection with the wireless headset is disconnected. When the mobile phone detects a click operation on any position of the notification control L except the L1 area, a radio box including prompt information pops up at the bottom of the screen.
In one embodiment, the prompt message includes at least one of the following prompt controls:
a first control to indicate the first audio channel;
a second control to indicate the second audio channel.
In this embodiment, the prompt message is presented in the form of a control, and a first control for indicating the first audio channel and a second control for indicating the second audio channel are output on a display screen of the terminal. Based on the displayed first control and the second control, the terminal can support the audio function of the application based on the audio channel selected by the selection instruction.
It should be noted that, in the embodiment of the present disclosure, if the terminal is connected to the wireless headset, before the terminal receives the selection instruction, the default audio channel may be the second audio channel, and the second control corresponding to the second audio channel may be displayed in the selected state. The selected state may be identified by a special symbol marker, such as "√" or "-"; it may also be identified by a different color, for example, the background gray value of the control is smaller, or the control is marked red, etc. As shown in fig. 5, the second control (control a) corresponding to the default second audio channel identifies the selected state by "√".
In one embodiment, the second control comprises a prompt sub-control of one of:
a first sub-control to indicate use of the second audio channel in a music application;
and the second sub-control is used for indicating that the second audio channel is used in the call application.
In embodiments of the present disclosure, the second control may include a first sub-control to indicate use of the second audio channel in a music application, and a second sub-control to indicate use of the second audio channel in a talk application. Based on the first sub-control and the second sub-control, the terminal can rapidly switch audio channels based on the operation of a user, and can further execute tone quality optimization corresponding to application to meet the requirements of the user.
For example, the application running in the terminal is an audio recording application, and before the terminal starts to execute a recording task, if a selection instruction of the user for the second sub-control is received, the bluetooth headset establishes startscousingvirtual voicecall (), so that audio is collected from the bluetooth headset.
Fig. 5 is a first exemplary page containing prompt information according to an embodiment of the present disclosure, and as shown in fig. 5, a page in which an "audio output mode is selected" is a page containing prompt information. The page comprises a control A marked as 'default', namely after the terminal is connected with the Bluetooth headset, a second audio channel using Bluetooth is defaulted to support an audio function, and the control A is a second control of the embodiment of the disclosure; the page also includes a control B identified as "[ native ]", which is the first control of the embodiment of the present disclosure. When the mobile phone receives a click operation on the first control (control A), a first sub-control A1 marked as 'Bluetooth (media music) ] and a second sub-control A2 marked as' Bluetooth (voice call) ] are displayed. Generally, when a terminal performs short video and live video shooting tasks, a microphone of the terminal collects relatively small sound when a user is far away from the terminal. In contrast, the wireless headset of the present disclosure is typically worn on the user's ear, thus allowing the user to pick up clear sounds from the bluetooth microphone even when away from the terminal.
It should be noted that, in the embodiment of the present disclosure, if an application currently running on the terminal is a music application and the terminal detects a selection instruction for the first control, the terminal may switch a music sound to a first audio channel of the terminal through an audiomanager. If the terminal detects a selection instruction for the second control or the first sub-control, the terminal may switch the music back to the second audio channel of the bluetooth headset through the audiomanager.
If the application currently running by the terminal is a call application and the terminal detects a selection instruction for the first control, the terminal can switch the voice call to a first audio channel of the terminal through stopScoUsingVirtualVoiceCall (); and if the terminal detects a selection instruction for the second control or the second sub-control, the terminal can switch the voice call back to the second audio channel of the bluetooth headset through startscosingvirtualvoicecall ().
It should be noted that, in the embodiment of the present disclosure, the control for indicating that the second audio channel is used in the music application, and the control for indicating that the second audio channel is used in the call application may also be displayed together with the first control and the second control on the page in a list manner, without triggering the display based on the received click operation on the second control.
Fig. 6 is a second exemplary diagram of a page including prompt information according to an embodiment of the present disclosure, and as shown in fig. 6, a page in which an "audio output mode is selected" is a page including prompt information. The page comprises a control A marked as 'default', and the control A is used for indicating that after the terminal is connected with the Bluetooth headset, a second audio channel using Bluetooth is used as default to support an audio function; also included on the page is a control B, identified as "[ native ]", for indicating a first audio channel. In addition, a "[ bluetooth (media music) ]" control C for indicating that the second audio channel is used in the music application and a "bluetooth (voice call) ]" control D for indicating that the second audio channel is used in the call application are also included on the page.
In one embodiment, the selection instruction comprises:
and triggering the selection operation of any prompt control to enter the selected state.
In this embodiment, the selection instruction is a selection operation for a prompt control, and the selected prompt control enters a selected state. As mentioned above, the selected state may be identified by a special symbol mark, or may be identified by different colors, which is not described herein again.
As shown in fig. 6, the selected state of the selected control a (second control) is identified by "√".
In one embodiment, the method further comprises:
detecting wearing condition information of the wireless headset;
if the wireless earphone is determined to be in a wearing state according to the wearing condition information, before the selection instruction is received, the second audio channel is used for supporting the audio function of the currently running application;
and if the wireless earphone is determined not to be in the wearing state according to the wearing condition information, using the first audio channel to support the audio function of the application.
In the embodiment of the disclosure, the terminal may further detect the wearing condition information of the wireless headset, for example, the terminal may detect an AT instruction sent by the bluetooth headset for characterizing the wearing condition information of the bluetooth headset. When the command is a command of a first identifier, for example, "[ AT + XM ═ INEAR,1 ]", the terminal determines that the bluetooth headset is in a wearing state; when the command is a command of the second identifier, for example, "[ AT + XM ═ INEAR,0 ]", the terminal determines that the bluetooth headset is not in a wearing state.
It should be noted that, in the embodiments of the present disclosure, the terminal may obtain the wearing condition information based on the in-ear detection of the wireless headset. The in-ear detection of the wireless headset may be that the wireless headset automatically senses whether the headset is in a wearing state based on a built-in sensor.
In this embodiment, if the terminal determines that the wireless headset is in the wearing state according to the wearing condition information, before receiving the selection instruction, an audio function that supports the currently running application using the second audio channel may be initially set; and if the terminal determines that the wireless earphone is not in the wearing state according to the wearing state information, the first audio channel is used for supporting the audio function of the application.
It is understood that, in this embodiment, the audio channels are automatically switched according to the wearing condition information of the wireless headset, and intelligence is provided.
Fig. 7 is a diagram of an apparatus of a terminal in an embodiment of the disclosure. Referring to fig. 7, the present invention is applied to a terminal, including:
a first detection module 101 configured to detect a currently running application in the terminal in response to the terminal being connected to a wireless headset;
the output module 102 is configured to output prompt information if the currently running application is any application with an audio function in the terminal; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset;
a receiving module 103 configured to receive a selection instruction, where the selection instruction is used to select one of the first audio channel and the second audio channel;
a support module 104 configured to support an audio function of the application using the audio channel selected by the selection instruction.
Optionally, the audio function includes: an audio output function and an audio collection function.
Optionally, the apparatus further comprises:
a setting module 105 configured to set the audio channel selected by the selection instruction to a communication mode supporting multi-audio output if it is detected that the currently running applications include a music application and a call application; the communication mode supporting multi-audio output supports audio synchronous output of the music application and the conversation application.
Optionally, the output module 102 is specifically configured to display a notification control on a display screen of the terminal; the notification control is used for notifying an audio channel currently used by the terminal; and responding to the operation of clicking the notification control received from the user, and outputting the prompt information.
Optionally, the prompt information at least includes a prompt control of one of the following:
a first control to indicate the first audio channel;
a second control to indicate the second audio channel.
Optionally, the second control includes a prompt sub-control of one of the following:
a first sub-control to indicate use of the second audio channel in a music application;
and the second sub-control is used for indicating that the second audio channel is used in the call application.
Optionally, the selecting instruction includes:
and triggering the selection operation of any prompt control to enter the selected state.
Optionally, the apparatus further comprises:
a second detection module 106 configured to detect wearing condition information of the wireless headset;
a first determining module 107, configured to, if it is determined that the wireless headset is in a wearing state according to the wearing condition information, before receiving the selection instruction, support an audio function of the currently running application using the second audio channel;
a second determining module 108, configured to support the audio function of the application by using the first audio channel if it is determined that the wireless headset is not in the wearing state according to the wearing condition information.
The specific manner in which the respective modules perform operations has been described in detail in relation to the embodiment of the method with respect to the apparatus in the embodiment shown in fig. 7, and will not be elaborated upon here.
Fig. 8 is a block diagram illustrating a terminal apparatus 800 according to an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a terminal, enable the terminal to perform a data processing method, the method comprising:
detecting a currently running application in the terminal in response to the terminal being connected to a wireless headset;
if the currently running application is any application with an audio function in the terminal, outputting prompt information; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset;
receiving a selection instruction for selecting one of the first audio channel and the second audio channel;
the audio channel selected using the selection instruction supports an audio function of the application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A data processing method is applied to a terminal, and the method comprises the following steps:
detecting a currently running application in the terminal in response to the terminal being connected to a wireless headset;
if the currently running application is any application with an audio function in the terminal, outputting prompt information; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset;
receiving a selection instruction for selecting one of the first audio channel and the second audio channel;
the audio channel selected using the selection instruction supports an audio function of the application.
2. The method of claim 1, wherein the audio function comprises: an audio output function and an audio collection function.
3. The method of claim 1, further comprising:
if the currently running application comprises both a music application and a call application, setting the audio channel selected by the selection instruction as a communication mode supporting multi-audio output; the communication mode supporting multi-audio output supports audio synchronous output of the music application and the conversation application.
4. The method of claim 1, wherein outputting the prompt message comprises:
displaying a notification control on a display screen of the terminal; the notification control is used for notifying an audio channel currently used by the terminal;
and responding to the operation of clicking the notification control received from the user, and outputting the prompt information.
5. The method of any of claims 1-4, wherein the prompt information includes at least one of:
a first control to indicate the first audio channel;
a second control to indicate the second audio channel.
6. The method of claim 5, wherein the second control comprises a prompt sub-control of one of:
a first sub-control to indicate use of the second audio channel in a music application;
and the second sub-control is used for indicating that the second audio channel is used in the call application.
7. The method of claim 5, wherein the selecting instruction comprises:
and triggering the selection operation of any prompt control to enter the selected state.
8. The method of claim 1, further comprising:
detecting wearing condition information of the wireless headset;
if the wireless earphone is determined to be in a wearing state according to the wearing condition information, before the selection instruction is received, the second audio channel is used for supporting the audio function of the currently running application;
and if the wireless earphone is determined not to be in the wearing state according to the wearing condition information, using the first audio channel to support the audio function of the application.
9. A data processing apparatus, for use in a terminal, the apparatus comprising:
a first detection module configured to detect a currently running application in the terminal in response to the terminal being connected to a wireless headset;
the output module is configured to output prompt information if the currently running application is any application with an audio function in the terminal; wherein the prompt information is used for prompting to select an audio channel; the audio channels include: a first audio channel processed directly by the terminal and a second audio channel processed by the wireless headset;
a receiving module configured to receive a selection instruction for selecting one of the first audio channel and the second audio channel;
a support module configured to support an audio function of the application using the audio channel selected by the selection instruction.
10. The apparatus of claim 9, wherein the audio function comprises: an audio output function and an audio collection function.
11. The apparatus of claim 9, further comprising:
a setting module configured to set the audio channel selected by the selection instruction to a communication mode supporting multi-audio output if the currently running application includes both a music application and a conversation application; the communication mode supporting multi-audio output supports audio synchronous output of the music application and the conversation application.
12. The apparatus of claim 9,
the output module is specifically configured to display a notification control on a display screen of the terminal; the notification control is used for notifying an audio channel currently used by the terminal; and responding to the operation of clicking the notification control received from the user, and outputting the prompt information.
13. The apparatus according to any one of claims 9 to 12, wherein the prompt information comprises at least one of:
a first control to indicate the first audio channel;
a second control to indicate the second audio channel.
14. The apparatus of claim 13, wherein the second control comprises a prompt sub-control of one of:
a first sub-control to indicate use of the second audio channel in a music application;
and the second sub-control is used for indicating that the second audio channel is used in the call application.
15. The apparatus of claim 13, wherein the selection instruction comprises:
and triggering the selection operation of any prompt control to enter the selected state.
16. The apparatus of claim 9, further comprising:
a second detection module configured to detect wearing condition information of the wireless headset;
a first determining module configured to, if it is determined that the wireless headset is in a wearing state according to the wearing condition information, use the second audio channel to support an audio function of the currently running application before receiving the selection instruction;
and the second determining module is used for supporting the audio function of the application by using the first audio channel if the wireless earphone is determined not to be in the wearing state according to the wearing condition information.
17. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the data processing method of any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium, in which instructions, when executed by a processor of a terminal, enable the terminal to perform the data processing method of any one of claims 1 to 8.
CN202110178977.2A 2021-02-09 2021-02-09 Data processing method and device, terminal and storage medium Pending CN112882622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110178977.2A CN112882622A (en) 2021-02-09 2021-02-09 Data processing method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110178977.2A CN112882622A (en) 2021-02-09 2021-02-09 Data processing method and device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112882622A true CN112882622A (en) 2021-06-01

Family

ID=76056274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110178977.2A Pending CN112882622A (en) 2021-02-09 2021-02-09 Data processing method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112882622A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113571038A (en) * 2021-07-14 2021-10-29 北京小米移动软件有限公司 Voice conversation method, device, electronic equipment and storage medium
CN113950037A (en) * 2021-12-10 2022-01-18 荣耀终端有限公司 Audio playing method and terminal equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821195A (en) * 2012-07-23 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Terminal and multi-audio-frequency output method
CN105338447A (en) * 2015-10-19 2016-02-17 京东方科技集团股份有限公司 Earphone control circuit and method, earphone, and audio frequency output apparatus and method
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN106375563A (en) * 2016-08-30 2017-02-01 珠海市魅族科技有限公司 Method and device for controlling audio output of terminal
CN108882210A (en) * 2018-06-05 2018-11-23 歌尔股份有限公司 Communication control method, ears wireless headset, communication equipment, system and medium
CN110381215A (en) * 2019-07-30 2019-10-25 深圳市沃特沃德股份有限公司 Audio shunt method, device, storage medium and computer equipment
CN110855824A (en) * 2018-08-21 2020-02-28 西安中兴新软件有限责任公司 Audio playing method, system, terminal and computer readable storage medium
CN111124345A (en) * 2019-11-27 2020-05-08 维沃移动通信有限公司 Audio source processing method and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821195A (en) * 2012-07-23 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Terminal and multi-audio-frequency output method
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN105338447A (en) * 2015-10-19 2016-02-17 京东方科技集团股份有限公司 Earphone control circuit and method, earphone, and audio frequency output apparatus and method
CN106375563A (en) * 2016-08-30 2017-02-01 珠海市魅族科技有限公司 Method and device for controlling audio output of terminal
CN108882210A (en) * 2018-06-05 2018-11-23 歌尔股份有限公司 Communication control method, ears wireless headset, communication equipment, system and medium
CN110855824A (en) * 2018-08-21 2020-02-28 西安中兴新软件有限责任公司 Audio playing method, system, terminal and computer readable storage medium
CN110381215A (en) * 2019-07-30 2019-10-25 深圳市沃特沃德股份有限公司 Audio shunt method, device, storage medium and computer equipment
CN111124345A (en) * 2019-11-27 2020-05-08 维沃移动通信有限公司 Audio source processing method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113571038A (en) * 2021-07-14 2021-10-29 北京小米移动软件有限公司 Voice conversation method, device, electronic equipment and storage medium
CN113950037A (en) * 2021-12-10 2022-01-18 荣耀终端有限公司 Audio playing method and terminal equipment
CN113950037B (en) * 2021-12-10 2022-05-06 荣耀终端有限公司 Audio playing method and terminal equipment

Similar Documents

Publication Publication Date Title
EP4030276B1 (en) Content continuation method and electronic device
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
EP3068115B1 (en) Incoming call identification
CN107493500B (en) Multimedia resource playing method and device
CN106454644B (en) Audio playing method and device
CN107204883B (en) Network fault processing method and device
CN104902059A (en) Call reminding method and device
KR101613931B1 (en) Mobile terminal and control method thereof
CN111049984A (en) Audio playback control method and apparatus, and storage medium
EP3322167B1 (en) Method and device for adjusting frequencies of intercom apparatuses
CN105138319A (en) Event reminding method and apparatus
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
US9723639B2 (en) Communication method and terminal
CN113329389B (en) Service providing method, device, equipment and storage medium based on Bluetooth connection
CN114513571A (en) Device connection method and device, electronic device and readable storage medium
CN114416015A (en) Audio adjusting method and device, electronic equipment and readable storage medium
US10798772B2 (en) Method, device and medium for establishing service connection
CN108093132B (en) Terminal device and ringtone volume control method
CN112882622A (en) Data processing method and device, terminal and storage medium
CN109922203B (en) Terminal, screen off method and device
WO2023240443A1 (en) Bluetooth communication method and apparatus, and storage medium
CN105227891A (en) A kind of video call method and device
CN112243142B (en) Method, device and storage medium for processing audio data
CN114615647A (en) Call control method, device and storage medium
CN114268691A (en) Call method, device, terminal equipment and readable storage medium

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