CN111913684A - Method and device for setting sound playing mode and storage medium - Google Patents

Method and device for setting sound playing mode and storage medium Download PDF

Info

Publication number
CN111913684A
CN111913684A CN202010748735.8A CN202010748735A CN111913684A CN 111913684 A CN111913684 A CN 111913684A CN 202010748735 A CN202010748735 A CN 202010748735A CN 111913684 A CN111913684 A CN 111913684A
Authority
CN
China
Prior art keywords
sound playing
application program
playing mode
mode
working state
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
CN202010748735.8A
Other languages
Chinese (zh)
Inventor
彭湃
陈鹏召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010748735.8A priority Critical patent/CN111913684A/en
Publication of CN111913684A publication Critical patent/CN111913684A/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/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Landscapes

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

Abstract

The invention discloses a method for setting a sound playing mode, which comprises the steps of detecting the working state of an application program; judging whether the working state of the application program changes or not; and when the working state of the application program changes, correspondingly adjusting the sound playing mode of the application program according to the change of the working state of the application program. The invention also discloses a device for setting the sound playing mode and a storage medium. The audio output mode of the application program is corrected by adjusting the corresponding sound playing modes of the application program under different working states, and the satisfaction degree of a user using the application software is improved.

Description

Method and device for setting sound playing mode and storage medium
Technical Field
The present invention relates to the field of setting a sound playing mode, and in particular, to a method and an apparatus for setting a sound playing mode, and a storage medium.
Background
At present, more and more applications capable of playing sound are available in an Android system, but because the selection of a sound playing mode is not correct, a user cannot hear sound output by running an application under the condition of not plugging a headset, or sound still exists after plugging the headset or connecting a bluetooth headset, and the problem needs to be solved urgently.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a storage medium for setting a sound playing mode, and aims to solve the problem of unmatched audio output modes caused by incorrect sound mode selection of a system.
In order to achieve the above object, the present invention provides a method for setting a sound playing mode, wherein the method comprises:
detecting the working state of an application program;
judging whether the working state of the application program changes or not;
and when the working state of the application program changes, correspondingly adjusting the sound playing mode of the application program according to the change of the working state of the application program.
Optionally, the correspondingly adjusting the sound playing mode of the application program according to the specific change of the working state of the application program includes:
acquiring a process identifier and/or a package name of the application program;
and judging whether the working state of the application program corresponding to the acquired process identifier and/or package name of the application program changes or not.
Optionally, the adjusting the sound playing mode of the application program according to the specific change of the working state of the application program includes:
and when the working state of the application program is changed from desktop running to background running, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
Optionally, after the operating state of the application program is changed from desktop running to background running, and the sound playing mode of the application program is changed from the first preset sound playing mode to the second preset sound playing mode, the method further includes:
and when the working state of the application program is changed from background operation to exit, keeping the sound playing mode of the application program unchanged.
Optionally, after the operating state of the application program is changed from desktop running to background running, and the sound playing mode of the application program is changed from the first preset sound playing mode to the second preset sound playing mode, the method further includes:
and when the working state of the application program is restored from background operation to desktop operation, changing the sound playing mode of the application program from the second preset sound playing mode to the first preset sound playing mode.
Optionally, the sound playing mode includes a first preset sound playing mode and a second preset sound playing mode, and the sound playing mode of the application program is correspondingly adjusted according to the specific change of the working state of the application program, further includes:
and when the working state of the application program is from desktop running to exit, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
Optionally, before correspondingly adjusting the sound playing mode of the application program according to the change of the working state of the application program when the working state of the application program changes, the method includes:
acquiring a sound playing mode list preset by the application program;
and screening out and setting a corresponding sound playing mode under the working state of the application program from the preset sound playing mode list according to the detected working state of the application program.
Optionally, the first preset sound playing mode includes a normal playing mode, a ring mode, a talk mode, and a communication mode, and the second preset sound playing mode includes a normal playing mode.
In addition, to achieve the above object, the present invention further provides a device for setting a sound playing mode, the device comprising: the device comprises a memory, a processor and a setting program of the sound playing mode, wherein the setting program of the sound playing mode is stored on the memory and can run on the processor, and when the setting program of the sound playing mode is executed by the processor, the steps of the setting method of the sound playing mode are realized.
In addition, to achieve the above object, the present invention further provides a storage medium having a program for setting a sound playing mode stored thereon, wherein the program for setting a sound playing mode realizes the steps of the method for setting a sound playing mode as described above when executed by a processor.
The embodiment of the invention provides a method for setting a sound playing mode, which is characterized in that the sound playing mode corresponding to an application program is set by detecting the working state of the application program, and when the working state of the application program changes, the sound playing mode of the application program is correspondingly adjusted according to the change of the working state of the application program, so that the audio output mode of the application program is corrected, and the satisfaction degree of a user for using application software is improved.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for setting a sound playing mode according to a first embodiment of the present invention;
FIG. 3 is a detailed flowchart of FIG. 2 illustrating a process for determining whether the operating state of the application program has changed;
fig. 4 is a detailed flowchart illustrating a step of correspondingly adjusting the sound playing mode of the application program according to the change of the working state of the application program in fig. 2.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
because the prior art realizes more and more application programs for playing sound, but because the selection of the sound playing mode is not correct, the user can not hear the sound output by the running application under the condition of not plugging the earphone, or the sound which is still externally played after plugging the earphone or connecting the Bluetooth earphone still appears.
The invention provides a solution for correspondingly adjusting the sound playing mode of the application program according to the change of the working state of the application program, further correcting the audio output mode of the application program and improving the satisfaction degree of a user using application software.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the terminal according to the embodiment of the present invention is a device for setting a sound playing mode, and the device for setting a sound playing mode may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include an infrared receiving module for receiving a control command triggered by a user through a remote controller, and the optional user interface 1003 may further include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the setting means of the sound playing mode shown in fig. 1 does not constitute a limitation of the setting means of the sound playing mode, and may comprise more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein a setting program of an operating system, a network communication module, a user interface module, and a sound play mode.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a setting program of the sound playing mode stored in the memory 1005, and perform the following operations:
detecting the working state of an application program;
judging whether the working state of the application program changes or not;
and when the working state of the application program changes, correspondingly adjusting the sound playing mode of the application program according to the change of the working state of the application program.
Further, the processor 1001 may call a setting program of the sound playing mode stored in the memory 1005, and also perform the following operations:
acquiring a process identifier and/or a package name of the application program;
and judging whether the working state of the application program corresponding to the acquired process identifier and/or package name of the application program changes or not.
Further, the processor 1001 may call a setting program of the sound playing mode stored in the memory 1005, and also perform the following operations:
and when the working state of the application program is changed from desktop running to background running, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
Further, the processor 1001 may call a setting program of the sound playing mode stored in the memory 1005, and also perform the following operations:
and when the working state of the application program is changed from background operation to exit, keeping the sound playing mode of the application program unchanged.
Further, the processor 1001 may call a setting program of the sound playing mode stored in the memory 1005, and also perform the following operations:
and when the working state of the application program is restored from background operation to desktop operation, changing the sound playing mode of the application program from the second preset sound playing mode to the first preset sound playing mode.
Further, the processor 1001 may call a setting program of the sound playing mode stored in the memory 1005, and also perform the following operations:
and when the working state of the application program is from desktop running to exit, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
Further, the processor 1001 may call a setting program of the sound playing mode stored in the memory 1005, and also perform the following operations:
acquiring a sound playing mode list preset by the application program;
and screening out and setting a corresponding sound playing mode under the working state of the application program from the preset sound playing mode list according to the detected working state of the application program.
Further, the processor 1001 may call a setting program of the sound playing mode stored in the memory 1005, and also perform the following operations:
the first preset sound playing mode comprises a common playing mode, a ring mode, a communication mode and a second preset sound playing mode comprises a common playing mode.
The specific embodiment of the apparatus for setting a sound playing mode of the present invention is substantially the same as the following embodiments of the method for setting a sound playing mode, and will not be described herein again.
Referring to fig. 2, a first embodiment of a method for setting a sound playing mode according to the present invention provides a method for setting a sound playing mode, where the method includes:
in step S10, the operating state of the application is detected.
In this embodiment, a device for setting a sound playing mode is commonly used in mobile phones, and particularly, in current smart phones which are widely used, smart phones of different brands can download application programs which can be searched in an application store or install various application programs of the mobile phones, and most of the installed application programs have a sound playing function, and the sound playing mode of the application program in a corresponding state can be set by detecting and acquiring a working state of the application program with the sound playing function.
Specifically, when the working state of the application program is detected, the sound playing mode list of the application program in different working states is obtained in the mobile phone in advance, and the sound playing mode list is updated in real time according to the installation and uninstallation conditions of the application program in the mobile phone, so that the sound playing mode corresponding to the application program can be selected to be set according to the working state of the application program.
Further, according to the obtained sound playing mode list, different types of application programs are set to different first preset sound playing modes when the application programs are in front of the desktop, wherein the first preset sound playing modes comprise a common playing mode, a ring mode, a call mode and a communication mode, and when the application programs are in a background running state or an exit state, the application programs are set to the second preset sound playing mode, wherein the second preset sound playing mode comprises the common playing mode; wherein the normal play mode is neither a ring mode nor a talk mode, such as listening to music or pressing a button; the ring mode and the call mode are phone scene exclusive modes; the communication modes include audio/video, VoIP calls, such as voice calls and game voices. Specifically, for example, when the application program is in a front-end working state of the mobile phone desktop, the sound playing mode of the application program is set to be the preset sound playing mode, and if the application program is a wechat program, when the wechat program is in the front-end working state of the mobile phone desktop, the preset sound playing mode of the wechat is the communication mode; and when the WeChat program runs in the background or quits the running program, the sound playing mode corresponding to the WeChat program is the common playing mode. If the application program is an application program corresponding to a phone scene proprietary mode, such as a ring mode and a call mode in a phone scene, when the corresponding application is in a desktop running state, the corresponding application program is set to be the corresponding ring mode and call mode, and when the application is in background running or quits the running program, the sound playing mode corresponding to the application is also switched to be a common playing mode. For the application programs with the normal play mode, for example, the application programs with the key sound in the system, when the corresponding application programs detect different working states, the normal play mode is set.
Furthermore, when two or more application programs are in the same working state, the interior of the system can be arranged according to the preset application priority, and the application arranged in front can realize the preferential audio output. Meanwhile, when the running applications are in different working states and different applications are used for realizing audio playing, due to the difference of channels of audio output, two or more different audios can be played simultaneously, and for the situations, a user can set the audio output of the application program according to the actual use condition of the installed application; for example, after the audio output channel is occupied, the application can pause the original playing channel, and process the audio after the subsequent user further operates the audio output channel, and such setting conditions can be used for avoiding missing relevant important information by pause selection when the more important application program plays the audio; or to continue playing the original audio, which may be the case in some applications for timing.
And step S20, judging whether the working state of the application program changes.
In this embodiment, the working state of the application program obtained in step S10 is obtained, and whether the working state of the application program changes within a preset time is monitored in real time, where the working state of the application program may be classified into three categories according to the running condition of the application, including: desktop running state, background running state, and exit program state.
Step S30, when the operating state of the application program changes, correspondingly adjusting the sound playing mode of the application program according to the change of the operating state of the application program.
The embodiment of the invention provides a method for setting a sound playing mode, which is characterized in that a sound playing mode list of an application is obtained in advance by detecting the working state of the application, so that the sound playing modes corresponding to the application in different working states are set, and when the working state of the application changes, the sound playing mode of the application is correspondingly adjusted according to the change of the working state of the application, so that the audio output mode of the application is corrected, and the satisfaction degree of a user in using application software is improved.
Further, referring to fig. 3, the method for setting a sound playing mode according to the present invention provides an embodiment of a detailed process for determining whether a working state of the application program changes, and based on the embodiment shown in fig. 2, the determining whether the working state of the application program changes includes:
step S21, acquiring a process identifier and/or package name of the application program.
In this embodiment, according to the working state of the application program, for example, when the application program is in front-end desktop operation, a process identifier pid (process identification) corresponding to the application program in operation may be directly obtained, and when the application program is in operation, the system may automatically allocate the pid, and after the application is restarted, the system may remove the original pid value and reallocate a new pid value; therefore, pid can be regarded as a unique identifier when the application program runs, in addition, the application program also comprises an application package name, and the application package name is always in the working state of the application and basically cannot be changed, so that the application can be identified through the package name when the application program belongs to the exit state; the application program further comprises corresponding sound playing mode (mode) values, wherein the mode values comprise mode0, mode1, mode2 and mode3, the applied mode values are transformed in real time according to different working states of the application program, and the mode values are in one-to-one correspondence with the sound playing modes corresponding to the application program, wherein mode0 is a common playing mode, mode1 is a ring mode, mode2 is a call mode, and mode3 is a communication mode.
Step S22, determining whether the operating state of the application program corresponding to the acquired process identifier and/or package name of the application program changes.
In this embodiment, by obtaining the pid and/or package name of the application in step S21, when the application program is in a running state, that is, when the application program is running in front of a desktop or in a background, the application program may be identified one by using the currently running pid of the application program; or identifying the application according to the package name of the application when the application is in an exit state; because the pid and the package name can only refer to corresponding application in different working states, the method can further realize the purpose of regularly monitoring whether the working states of the pid and/or the package name change.
In this embodiment, by obtaining the pid and the package name of the application program, it is achieved to monitor whether the working state of the application program changes by monitoring the change condition of the working state of the pid and/or the package name according to the uniqueness of the pid and/or the package name corresponding to the application program in different working states.
Further, referring to fig. 4, the method for setting a sound playing mode according to the present invention provides an embodiment of a detailed flow of a step of adjusting the sound playing mode of the application program according to a change in the working state of the application program, and based on the embodiments shown in fig. 2 and fig. 3, the adjusting the sound playing mode of the application program according to the change in the working state of the application program includes:
step S31, when the working state of the application program is changed from desktop operation to background operation, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
In this embodiment, when it is monitored that the operating state of the application program is changed from desktop operation to background operation, because the application program is still in an operating state at this time, the pid of the application does not change, wherein according to the obtained sound play mode list, different types of application programs are set to a corresponding first preset sound play mode when the application programs are in front of the desktop operation, the first preset sound play mode includes a normal play mode and a ring mode, a call mode, and a communication mode, and when the application programs are in the background operation state or an exit state, the application programs are set to a second preset sound play mode, where the second preset sound play mode includes the normal play mode. For example, when the application program is a WeChat application, the preset sound playing mode is the communication mode3, and when the WeChat application is changed to the background operation, the sound playing mode of the WeChat application is also changed to the normal playing mode0 according to the change of the working state of the application program. Therefore, the corresponding sound playing mode is correspondingly adjusted according to the change of the working state of the WeChat application, so that when the WeChat application selects the audio output mode, correct selection is performed, for example, when the WeChat application runs and plays the voice sent by a friend, a receiver is generally defaulted, if an external device is arranged, an external speaker is arranged, and if Bluetooth is connected, an SCO (synchronous Connection interface) channel is arranged. When music is played, the user defaults to play the music outside; when the earphone is inserted to play music, the earphone is played, and for the Bluetooth, an A2DP (Advanced Audio Distribution Profile) channel is used, the selection of an output channel is changed according to the change of a sound playing mode, so that the selection of Audio output setting is not confused; in addition, the ring mode1 and the talk mode2 for the phone scene specific mode also conform to the same situation, namely, the preset ring mode1 or talk mode2 is used when the application program runs, and after the application program is converted to the background, the application program is converted to the normal play mode 0. Wherein the first preset sound playing mode and the second preset sound playing mode for the application program with mode0 are the same and are both the normal playing mode 0.
The embodiment provides a method for setting a sound playing mode, which includes detecting that a working state of an application program is changed from desktop running to background running, adjusting the application program to be changed from a first preset sound mode to a second preset sound mode according to a first preset sound playing mode corresponding to the application program which is preset, and when the working state of the application program is changed from the desktop running to the background running, so as to correct an audio output mode of the application program and improve satisfaction of a user in using application software.
Step S32, when the operating state of the application program is changed from background operation to exit program, the sound playing mode of the application program is kept unchanged.
In this embodiment, after the step S31 is in the background running state, if it is detected that the application program exits, at this time, the setting is performed according to the corresponding sound playing mode in the sound playing mode list of the application in the exiting state, where the sound playing modes of the application in the exiting state are all the second preset sound playing modes, and the sound playing modes in this state are the same as the sound playing modes of the application in the background state, so that when it is detected that the application is shifted from the background running state to the exiting state, the sound playing mode of the application is regarded as being unchanged. But the pid of the application is cleared at this time, and the application can only be uniquely determined according to the package name of the application at this time.
The present embodiment provides a method for setting a sound playing mode, where a background operation of an application program is detected to be changed to an exit program, a sound playing mode corresponding to the application program in a sound playing mode list is set, and when the background operation of the application program is changed to the exit program, the sound playing mode of the application program is kept unchanged.
Step S33, when the working state of the application program is restored from background operation to desktop operation, changing the sound playing mode of the application program from the second preset sound playing mode to the first preset sound playing mode.
In this embodiment, after the step S31 is in the background running state, if it is monitored that the application program is restored to the foreground desktop running state, because the application program is still in the running state at this time, the pid of the application is not changed, and meanwhile, according to the obtained sound playing mode list, different types of application programs are set to the corresponding first preset sound playing mode when the application program is in the desktop front-end running state, where the first preset sound playing mode includes a normal playing mode, a ring mode, a talk mode, and a communication mode, and when the application program is in the background running state, the application program is set to the second preset sound playing mode, where the second preset sound playing mode includes the normal playing mode, and when the working state of the application program is restored from the background running state to the desktop running state, the sound playing mode that realizes setting of the application is changed from the second preset sound playing mode to the first preset sound playing mode And (4) a sound playing mode. For example, when the wechat application is restored to front-end operation, the system sets the sound play mode of the wechat program to the communication mode3, at which time the channel of the audio output is changed because the sound play mode is changed from the normal play mode0 to the mode 3. For example, if voice playback is used in the communication mode3, the forced play out option is turned on, the output goes to the peripheral, whereas if the bluetooth headset is plugged in, the SCO bluetooth channel goes unlike the A2DP channel that the normal play mode0 bluetooth channel goes to. In addition, the ringtone mode1 and the talk mode2 for a specific phone scenario will also substantially coincide with the manner in which the sound play mode of the communication mode3 is set.
The embodiment provides a method for setting a sound playing mode, which changes a sound playing mode of an application program from a second preset sound playing mode to a first preset sound playing mode by monitoring that a working state of the application program is restored from background running to front-end running, so as to correct an audio output mode of the application program and improve satisfaction of a user in using application software.
Step S34, when the working state of the application program is from desktop to exit, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
In this embodiment, when it is detected that the operating state of the application program is changed from the desktop operation to the exit program, the pid of the application is cleared because the application program is in the exit program at this time, wherein when the application program is in the exit program, the system sets the application to a second preset sound playing mode according to the sound playing mode list, the second preset sound playing mode includes a normal playing mode, and when a subsequent application program is restarted, the system reallocates a new pid to identify the operating condition of the application, and sets different types of application programs to a corresponding first preset sound playing mode when the application program is in the desktop front-end operation according to the acquired sound playing mode list, the first preset sound playing mode includes a normal playing mode, a ring mode, a talk mode, and a talk mode A communication mode. For example, when the WeChat is going from the desktop running state to the exit program, the sound playing mode of the WeChat is set to be changed from the communication mode3 to the normal playing mode 0. Therefore, after the application program exits, the sound playing mode set by the application program is correspondingly changed, so that the selection of a normal audio output channel can be realized when other related applications run.
The embodiment provides a method for setting a sound playing mode, which includes detecting that a sound playing mode corresponding to an application program is a first preset sound playing mode according to preset setting when the working state of the application program runs from a desktop to an exit program, and adjusting the application program to be changed from the first preset sound mode to a second preset sound mode when the working state of the application program runs from the desktop to the exit program, so that an audio output mode of the application program is corrected, and the satisfaction degree of a user in using the application software is improved.
The specific embodiment of a storage medium of the present invention is substantially the same as the embodiments of the method for setting the sound playing mode, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g. a mobile phone, an ipad tablet computer, or a device for setting a sound playing mode and having different types of sound conversion) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for setting a sound playing mode, the method comprising:
detecting the working state of an application program;
judging whether the working state of the application program changes or not;
and when the working state of the application program changes, correspondingly adjusting the sound playing mode of the application program according to the change of the working state of the application program.
2. The method for setting up sound playing mode according to claim 1, wherein the sound playing mode includes a first preset sound playing mode and a second preset sound playing mode, and the adjusting the sound playing mode of the application program according to the specific change of the working state of the application program includes:
and when the working state of the application program is changed from desktop running to background running, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
3. The method for setting up sound playing mode according to claim 2, wherein after the changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode when the working state of the application program is changed from desktop running to background running, the method further comprises:
and when the working state of the application program is changed from background operation to exit, keeping the sound playing mode of the application program unchanged.
4. The method for setting up sound playing mode according to claim 2, wherein after the changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode when the working state of the application program is changed from desktop running to background running, the method further comprises:
and when the working state of the application program is restored from background operation to desktop operation, changing the sound playing mode of the application program from the second preset sound playing mode to the first preset sound playing mode.
5. The method for setting up sound playing mode according to claim 1, wherein the sound playing mode includes a first preset sound playing mode and a second preset sound playing mode, and the sound playing mode of the application program is adjusted correspondingly according to the specific change of the working state of the application program, further comprising:
and when the working state of the application program is from desktop running to exit, changing the sound playing mode of the application program from the first preset sound playing mode to the second preset sound playing mode.
6. The method for setting sound playing mode according to claims 1 to 5, wherein said determining whether the working state of the application program changes comprises:
acquiring a process identifier and/or a package name of the application program;
and judging whether the working state of the application program corresponding to the acquired process identifier and/or package name of the application program changes or not.
7. The method for setting sound playing mode according to claim 6, wherein before correspondingly adjusting the sound playing mode of the application program according to the change of the operating state of the application program when the operating state of the application program changes, the method comprises:
acquiring a sound playing mode list preset by the application program;
and screening out and setting a corresponding sound playing mode under the working state of the application program from the preset sound playing mode list according to the detected working state of the application program.
8. The method for setting up sound playing mode according to claim 7, wherein the first preset sound playing mode includes a normal playing mode and a ring mode, a talk mode, a communication mode, and the second preset sound playing mode includes a normal playing mode.
9. An apparatus for setting a sound play mode, the apparatus comprising: a memory, a processor and a setting program of a sound playing mode stored on the memory and operable on the processor, the setting program of the sound playing mode implementing the steps of the setting method of the sound playing mode according to any one of claims 1 to 8 when executed by the processor.
10. A storage medium having stored thereon a setting program of a sound reproduction mode, the setting program of the sound reproduction mode realizing the steps of the setting method of the sound reproduction mode according to any one of claims 1 to 8 when executed by a processor.
CN202010748735.8A 2020-07-29 2020-07-29 Method and device for setting sound playing mode and storage medium Pending CN111913684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010748735.8A CN111913684A (en) 2020-07-29 2020-07-29 Method and device for setting sound playing mode and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010748735.8A CN111913684A (en) 2020-07-29 2020-07-29 Method and device for setting sound playing mode and storage medium

Publications (1)

Publication Number Publication Date
CN111913684A true CN111913684A (en) 2020-11-10

Family

ID=73286853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010748735.8A Pending CN111913684A (en) 2020-07-29 2020-07-29 Method and device for setting sound playing mode and storage medium

Country Status (1)

Country Link
CN (1) CN111913684A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110157479A1 (en) * 2009-12-28 2011-06-30 Sony Corporation Device control device, device control method, and computer program
CN105824598A (en) * 2016-02-29 2016-08-03 维沃移动通信有限公司 Sound effect management method and mobile terminal
CN105992054A (en) * 2015-02-13 2016-10-05 青岛海尔电子有限公司 Intelligent television playing method and playing device
CN107145325A (en) * 2017-03-28 2017-09-08 深圳市金立通信设备有限公司 A kind of method for controlling volume and terminal
US20170277510A1 (en) * 2016-03-24 2017-09-28 Teac Corporation Audio signal processor
CN108121529A (en) * 2017-12-25 2018-06-05 广东小天才科技有限公司 Switching method, switching device and the terminal of audio-frequency play mode
CN108551636A (en) * 2018-05-29 2018-09-18 维沃移动通信有限公司 A kind of speaker control method and mobile terminal
CN108924361A (en) * 2018-07-10 2018-11-30 南昌黑鲨科技有限公司 Audio plays and collection control method, system and computer readable storage medium
CN109005582A (en) * 2018-08-14 2018-12-14 Oppo广东移动通信有限公司 Transmission power adjustment method, device, electronic equipment and storage medium
US20190004676A1 (en) * 2017-06-30 2019-01-03 Lenovo (Beijing) Co., Ltd. Method and device for switching input modes
CN110248240A (en) * 2019-06-11 2019-09-17 北京达佳互联信息技术有限公司 Playback method, device, electronic equipment and the storage medium of video
CN111078448A (en) * 2019-08-06 2020-04-28 华为技术有限公司 Method for processing audio abnormity and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110157479A1 (en) * 2009-12-28 2011-06-30 Sony Corporation Device control device, device control method, and computer program
CN105992054A (en) * 2015-02-13 2016-10-05 青岛海尔电子有限公司 Intelligent television playing method and playing device
CN105824598A (en) * 2016-02-29 2016-08-03 维沃移动通信有限公司 Sound effect management method and mobile terminal
US20170277510A1 (en) * 2016-03-24 2017-09-28 Teac Corporation Audio signal processor
CN107145325A (en) * 2017-03-28 2017-09-08 深圳市金立通信设备有限公司 A kind of method for controlling volume and terminal
US20190004676A1 (en) * 2017-06-30 2019-01-03 Lenovo (Beijing) Co., Ltd. Method and device for switching input modes
CN108121529A (en) * 2017-12-25 2018-06-05 广东小天才科技有限公司 Switching method, switching device and the terminal of audio-frequency play mode
CN108551636A (en) * 2018-05-29 2018-09-18 维沃移动通信有限公司 A kind of speaker control method and mobile terminal
CN108924361A (en) * 2018-07-10 2018-11-30 南昌黑鲨科技有限公司 Audio plays and collection control method, system and computer readable storage medium
CN109005582A (en) * 2018-08-14 2018-12-14 Oppo广东移动通信有限公司 Transmission power adjustment method, device, electronic equipment and storage medium
CN110248240A (en) * 2019-06-11 2019-09-17 北京达佳互联信息技术有限公司 Playback method, device, electronic equipment and the storage medium of video
CN111078448A (en) * 2019-08-06 2020-04-28 华为技术有限公司 Method for processing audio abnormity and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王龙;陈晓光;: "基于FPGA的音频监控系统的设计与实现", 信息与电子工程, no. 05 *

Similar Documents

Publication Publication Date Title
US9712659B2 (en) Duplex audio for mobile communication device and accessory
CN106302997B (en) Output control method, electronic equipment and system
US9538318B2 (en) Apparatus and method for playing music
CN102932549A (en) Mobile terminal and method for accessing application programs rapidly through earphones
US11638083B2 (en) Earphone abnormality processing method, earphone, system, and storage medium
EP2437473B1 (en) Control apparatus and control method
US10140086B2 (en) Electronic device and audio ouputting method thereof
CN104301782A (en) Method and device for outputting audios and terminal
KR20090118837A (en) Method and communication system for controlling appliance device using a mobile device
US20210182016A1 (en) Audio output method, electronic device, and storage medium
US20120287283A1 (en) Electronic device with voice prompt function and voice prompt method
CN103324459A (en) Method and system for implementing USB (universal serial bus) headset devices
CN115686424A (en) Priority configuration method, device, equipment and storage medium for audio playing
CN112533188B (en) Output processing method and device of play source
KR102026093B1 (en) Method for executing phone projection of In-Vehicle Infotainment
KR20080042203A (en) Apparatus and method for key mapping in bluetooth device
KR101977329B1 (en) Method and apparatus for controlling sound signal output
CN106604204B (en) Method and system for remotely controlling terminal application through Bluetooth
CN106408912A (en) AVRCP (audio video remote control profile) instruction allocation method and system based on device types
CN107704172B (en) Multimedia application switching control method, system and storage device
CN104794074A (en) External connection device identification method and device
CN111913684A (en) Method and device for setting sound playing mode and storage medium
CN110383797B (en) Terminal device and communication method
CN118140482A (en) Electronic device and operation method thereof
CN106507160A (en) A kind of based on the multimedia application control method for playing back of remote Bluetooth devices, system

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