CN107995369B - Method, device and equipment for solving audio conflict - Google Patents

Method, device and equipment for solving audio conflict Download PDF

Info

Publication number
CN107995369B
CN107995369B CN201711373501.4A CN201711373501A CN107995369B CN 107995369 B CN107995369 B CN 107995369B CN 201711373501 A CN201711373501 A CN 201711373501A CN 107995369 B CN107995369 B CN 107995369B
Authority
CN
China
Prior art keywords
audio
audio service
service
interrupt priority
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711373501.4A
Other languages
Chinese (zh)
Other versions
CN107995369A (en
Inventor
曹异成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Qianjun Network Technology Co ltd
Original Assignee
Guangzhou Qianjun Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Qianjun Network Technology Co ltd filed Critical Guangzhou Qianjun Network Technology Co ltd
Priority to CN201711373501.4A priority Critical patent/CN107995369B/en
Publication of CN107995369A publication Critical patent/CN107995369A/en
Application granted granted Critical
Publication of CN107995369B publication Critical patent/CN107995369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Abstract

The embodiment of the invention provides a method, a device and equipment for solving audio conflict, when a plurality of audio services exist in a system, if a starting instruction of a first audio service is received, the first audio service acquires the highest priority of the system, and after the highest interrupt priority is acquired, the highest interrupt priority is sent to a second audio service, so that the first audio service can completely occupy an audio channel due to the acquisition of the highest interrupt priority, interrupt other audio services and prevent the other audio services from generating interference on the first audio service.

Description

Method, device and equipment for solving audio conflict
Technical Field
The present invention relates to the field of audio processing, and in particular, to a method and an apparatus for resolving audio conflicts.
Background
When a user turns on a live APP to watch live, there may be multiple audio services, such as: such audio services are mutually exclusive, and if the audio services are used simultaneously, audio conflicts are likely to occur.
For example, when a user needs a recording service, if the recording service is performed, the sound of the anchor is not turned off, and the recorded audio is the sound of the anchor and is not the sound of the user. But such frequent switching may cause confusion in the audio.
In the prior art, in order to solve the problem, the audio mode of the system platform (IOS system or android system) is changed to solve the conflict, but if the audio mode of the system is also used inside the audio service, the current audio service cannot fully occupy the audio channel, and the conflict may be caused.
For example, when two live APPs are simultaneously opened, when an audio service in one live APP is executed, other audio services need to be closed, and the system may close other audio services in the live APP, but the audio services in the other live APPs cannot be closed, which still causes audio conflicts.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a device for resolving an audio conflict, which solve the problem of an audio conflict in the prior art.
The method for solving the audio conflict provided by the embodiment of the invention comprises the following steps:
when a starting instruction of a first audio service is received, the first audio service acquires the highest interrupt priority of a system;
and after the first audio service acquires the highest interrupt priority of the system platform, sending the highest interrupt priority to a second audio service.
Optionally, when receiving a start instruction of the first audio service, the acquiring, by the first audio service, the highest interrupt priority of the system platform includes:
when receiving an instruction of starting a first audio service, the first audio service sends a notification of accessing a telephone to a system;
and the first audio service sends a hang-up call notification to a system within a preset time.
Optionally, the method further includes:
acquiring other audio services in the system; the audio service is other audio service except the first audio service;
marking each of the audio services according to the set attributes of the other audio services.
Optionally, after the first audio service obtains the highest interrupt priority of the system platform, sending the highest interrupt priority to a second audio service, where the sending includes:
when the first audio service acquires the highest interrupt priority of the system platform, acquiring a second audio service marked as automatic recovery;
sending the highest interrupt priority to the second audio service.
Optionally, the first audio service is voice recording.
The embodiment of the invention also provides a device for solving the audio conflict, which comprises:
the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring the highest interrupt priority of the system by a first audio service when receiving a starting instruction of the first audio service;
and the sending unit is used for sending the highest interrupt priority to a second audio service after the first audio service acquires the highest interrupt priority of the system platform.
Optionally, the obtaining unit includes:
the telephone access subunit is used for sending a notification of accessing the telephone to the system by the first audio service when receiving an instruction of starting the first audio service;
and the hang-up subunit is used for sending a hang-up telephone notification to the system by the first audio service within a preset time.
Optionally, the method further includes:
the second acquisition unit is used for acquiring other audio services in the system; the audio service is other audio service except the first audio service;
and the marking unit is used for marking each audio service according to the set attributes of the other audio services.
Optionally, the method includes:
the acquisition subunit is used for acquiring a second audio service marked as automatic recovery after the first audio service acquires the highest interrupt priority of the system platform;
a sending subunit, configured to send the highest interrupt priority to the second audio service.
The device for solving the audio conflict provided by the embodiment of the invention comprises:
a memory and a processor;
the memory is connected with the processor and is used for storing programs and data generated in the program running process;
the processor is used for implementing the method for solving the audio conflict by running the program stored in the memory.
The embodiment of the invention provides a method, a device and equipment for solving audio conflict, when a plurality of audio services exist in a system, if a starting instruction of a first audio service is received, the first audio service acquires the highest priority of the system, and after the highest interrupt priority is acquired, the highest interrupt priority is sent to a second audio service, so that the first audio service can completely occupy an audio channel due to the acquisition of the highest interrupt priority, interrupt other audio services, prevent the other audio services from generating interference on the first audio service, and solve the problem of audio conflict in the prior art.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for resolving audio conflicts according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for obtaining a highest interrupt priority according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a further flow chart for resolving audio conflicts according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for resolving audio conflicts according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of an apparatus for resolving audio conflicts according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flow chart of a method for resolving an audio conflict according to an embodiment of the present invention is shown, in this embodiment, the method includes:
s101, when a starting instruction of a first audio service is received, the first audio service acquires the highest interrupt priority of a system;
in this embodiment, the system divides the interrupt sources into several levels, called interrupt priority, according to the importance and urgency of the terminal event. The highest interrupt priority, among others, may interrupt processing for other services that conflict with the interrupt source.
The first audio service may be any audio service set by a technician.
Supposing that the audio service is a voice input service, the voice input service sends an instruction for acquiring the highest terminal priority of the system to the system if a voice input button is pressed on the premise that a user opens a live APP.
Since the terminal with the highest priority in the system is to access the telephone service, in this embodiment, in order to enable the first audio service to obtain the highest priority, when receiving a start instruction of the first audio service, the first audio service may obtain the highest interrupt priority by simulating telephone access, specifically, referring to fig. 2, S101 includes:
s201: when receiving an instruction of starting a first audio service, the first audio service sends a notification of accessing a telephone to a system;
s202: and the first audio service sends a notification of hanging up the telephone to the system within a preset time.
In this embodiment, when receiving an instruction to start the first audio service, the first audio service sends a notification of an incoming call to the system, and since the incoming call is the highest interrupt priority in the system, the system may send the highest interrupt priority to the first audio service. When the first audio service obtains the highest interrupt priority, other audio services will be interrupted, and the first audio service will fully occupy the audio channel, so that the first audio service will not be interfered by other audio services.
However, in order to ensure that the normal operation of the system is not affected when the first audio service has the highest interruption priority, the first audio service transmits a notification of hanging up the phone call to the system within a preset time, and thus the first audio service can release the highest terminal priority, but since the first audio service has completely occupied the audio channel at this time, other audio services do not interfere with the first audio service even though the highest terminal priority is released.
S102: and after the first audio service acquires the highest interrupt priority of the system platform, sending the highest interrupt priority to a second audio service.
In this embodiment, after the first audio service acquires the highest interrupt priority, the highest interrupt priority is released, and the highest interrupt priority is sent to the second audio service that needs the highest interrupt priority.
The second audio service is an audio service that needs to be restored after the first audio service acquires the highest interrupt priority, and however, it is determined which audio services need to be restored, and the second audio service may be identified according to different labels of the audio services, specifically, before executing S102, the method further includes:
acquiring other audio services in the system; the audio service is other audio service except the first audio service;
marking each of the audio services according to the set attributes of the other audio services.
In this embodiment, for different audio services, after the audio service is interrupted, the user needs to actively recover the audio service that may interfere with the first audio service, but for the service that may not interfere with the first audio service, the audio service may be automatically recovered after the first audio service obtains the highest interrupt priority. Thus, different flags may be applied for active recovery and for automatic recovery. And sending the highest interrupt priority to a second priority that needs active recovery according to the labels of different audio services, specifically, S102 includes:
when the first audio service acquires the highest interrupt priority of the system platform, acquiring a second audio service marked as automatic recovery;
sending the highest interrupt priority to a second audio service.
In this embodiment, after the first audio service sends the highest interrupt priority to the second audio service, the second audio service may resume the audio service, but the audio service that does not receive the highest interrupt priority is still in the interrupt state until the user actively resumes the states of the audio services.
It should be noted that the second audio service may be at least one audio service.
In this embodiment, when a plurality of audio services exist in the system, if a start instruction of the first audio service is received, the first audio service acquires the highest priority of the system, and after acquiring the highest interrupt priority, sends the highest interrupt priority to the second audio service, so that the first audio service can completely occupy an audio channel due to acquiring the highest interrupt priority, and interrupt other audio services, thereby preventing the other audio services from interfering with the first audio service.
Referring to fig. 3, a schematic flowchart of another method for resolving an audio conflict according to an embodiment of the present invention is shown, where the method includes:
s301: when receiving an instruction of starting the first audio service, the first audio service sends a notification of accessing a telephone to the system;
s302: acquiring other audio services in the system; the audio service is other audio service except the first audio service;
s303: marking each of the audio services according to the set attributes of the other audio services;
s304: within a preset time, the first audio service sends a notification of hanging up a telephone to the system;
s305: and acquiring the second audio service marked as automatic recovery, and sending the highest interrupt priority to the second audio service.
Wherein, S301 is consistent with the step of S201, which is not described herein again, and S304 is consistent with the step of S304, which is not described herein again. S302, S303 and S305 are the same as the above step of S102, and are not described herein again.
In this embodiment, when receiving an instruction for starting the first audio service, the first audio service sends a notification of accessing the telephone to the system, that is, the first audio service obtains the highest interrupt priority of the system, so that the first audio service can completely occupy an audio channel, the system can interrupt other audio services, and in order to not affect other services in the system, the first audio service sends a notification of hanging up the telephone to the system within a preset time, and sends the highest interrupt priority to the second audio service that needs to be automatically recovered.
Referring to fig. 4, a schematic structural diagram of an apparatus for resolving an audio conflict according to an embodiment of the present invention is shown, in this embodiment, the apparatus includes:
a first obtaining unit 401, configured to, when receiving a start instruction of a first audio service, obtain a highest interrupt priority of a system by the first audio service;
a sending unit 402, configured to send the highest interrupt priority to a second audio service after the first audio service obtains the highest interrupt priority of the system platform.
Optionally, the obtaining unit includes:
the telephone access subunit is used for sending a notification of accessing the telephone to the system by the first audio service when receiving an instruction of starting the first audio service;
and the hang-up subunit is used for sending a hang-up telephone notification to the system by the first audio service within a preset time.
Optionally, the method further includes:
the second acquisition unit is used for acquiring other audio services in the system; the audio service is other audio service except the first audio service;
and the marking unit is used for marking each audio service according to the set attributes of the other audio services.
Optionally, the sending unit includes:
the acquisition subunit is used for acquiring a second audio service marked as automatic recovery after the first audio service acquires the highest interrupt priority of the system platform;
a sending subunit, configured to send the highest interrupt priority to the second audio service.
By the device of the embodiment, the first audio service can completely occupy the audio channel due to the fact that the highest interrupt priority is obtained, and other audio services are interrupted, so that interference of the other audio services on the first audio service is prevented.
Referring to fig. 5, a schematic structural diagram of an apparatus for audio collision according to an embodiment of the present invention is shown, in this embodiment, the apparatus includes:
a memory 501 and a processor 502;
the memory 501 is connected to the processor 502, and is used for storing programs and data generated during program running;
the processor is configured to:
when a starting instruction of a first audio service is received, the first audio service acquires the highest interrupt priority of a system;
and after the first audio service acquires the highest interrupt priority of the system platform, sending the highest interrupt priority to a second audio service.
Optionally, the processor is specifically configured to:
when receiving an instruction of starting a first audio service, the first audio service sends a notification of accessing a telephone to a system;
and the first audio service sends a hang-up call notification to a system within a preset time.
Optionally, the processor is further configured to:
acquiring other audio services in the system; the audio service is other audio service except the first audio service;
marking each of the audio services according to the set attributes of the other audio services.
Optionally, the processor is further configured to:
when the first audio service acquires the highest interrupt priority of the system platform, acquiring a second audio service marked as automatic recovery;
sending the highest interrupt priority to the second audio service.
Optionally, the first audio service is voice recording.
By the device of the embodiment, the first audio service can completely occupy the audio channel due to the fact that the highest interrupt priority is obtained, and interrupts other audio services, so that the first audio service is prevented from being interfered by the other audio services.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method for resolving audio conflicts, applied to live application software, the method comprising:
when receiving an instruction of starting a first audio service, the first audio service sends a notification of accessing a telephone to a system platform;
after the first audio service acquires the highest interrupt priority of the system platform, the first audio service sends a hang-up call notification to the system platform within a preset time;
sending the highest interrupt priority to a second audio service; the second audio service is an audio service that may interfere with the first audio service.
2. The method of claim 1, further comprising:
acquiring other audio services in the system platform; the audio service is other audio service except the first audio service;
marking each of the audio services according to the set attributes of the other audio services.
3. The method of claim 2, wherein sending the highest interrupt priority to a second audio service comprises:
obtaining a second audio service marked as automatic recovery;
sending the highest interrupt priority to the second audio service.
4. The method of claim 1, wherein the first audio service is voice entry.
5. An apparatus for resolving audio conflicts for use with live applications, the apparatus comprising:
a first acquisition unit, the first acquisition unit comprising: a telephone access subunit and a hang-up subunit, wherein,
the telephone access subunit is used for sending a notification of accessing the telephone to the system platform by the first audio service when receiving an instruction of starting the first audio service;
the hang-up subunit is used for sending a hang-up telephone notification to the system platform by the first audio service within a preset time after the first audio service acquires the highest interrupt priority of the system platform;
a sending unit for sending the highest interrupt priority to a second audio service; the second audio service is an audio service that may interfere with the first audio service.
6. The apparatus of claim 5, further comprising:
the second acquisition unit is used for acquiring other audio services in the system platform; the audio service is other audio service except the first audio service;
and the marking unit is used for marking each audio service according to the set attributes of the other audio services.
7. The apparatus of claim 6, wherein the sending unit comprises:
an acquisition subunit configured to acquire the second audio service marked as automatic resume;
a sending subunit, configured to send the highest interrupt priority to the second audio service.
8. An apparatus for resolving audio conflicts, comprising:
a memory and a processor;
the memory is connected with the processor and is used for storing programs and data generated in the program running process;
the processor is configured to implement the method of any one of claims 1 to 4 by executing a program stored in the memory.
CN201711373501.4A 2017-12-19 2017-12-19 Method, device and equipment for solving audio conflict Active CN107995369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711373501.4A CN107995369B (en) 2017-12-19 2017-12-19 Method, device and equipment for solving audio conflict

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711373501.4A CN107995369B (en) 2017-12-19 2017-12-19 Method, device and equipment for solving audio conflict

Publications (2)

Publication Number Publication Date
CN107995369A CN107995369A (en) 2018-05-04
CN107995369B true CN107995369B (en) 2021-01-29

Family

ID=62038988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711373501.4A Active CN107995369B (en) 2017-12-19 2017-12-19 Method, device and equipment for solving audio conflict

Country Status (1)

Country Link
CN (1) CN107995369B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640341A (en) * 2018-12-25 2019-04-16 全球能源互联网研究院有限公司 The processing method and electronic equipment of signal interference
CN110198264B (en) * 2019-05-31 2022-03-25 联想(北京)有限公司 Processing method and device and electronic equipment
CN115297405A (en) 2020-01-22 2022-11-04 荣耀终端有限公司 Audio output method and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140527A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Audio driver sound management method
CN101860626A (en) * 2010-06-22 2010-10-13 中兴通讯股份有限公司 Application providing method and mobile terminal
CN101944048A (en) * 2010-09-26 2011-01-12 中兴通讯股份有限公司 Management method of terminal in audio resource conflict and terminal
CN104394269A (en) * 2014-11-17 2015-03-04 贵阳朗玛信息技术股份有限公司 Communication control method and mobile terminal
US9262120B2 (en) * 2009-09-11 2016-02-16 Nokia Technologies Oy Audio service graphical user interface

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801678B (en) * 2005-08-24 2010-05-12 华为技术有限公司 Content playing method, system and receiving device in digital broadcast
US20080215745A1 (en) * 2007-03-01 2008-09-04 Gray Thomas A System and method for mediation of user attention for presentational media
CN101364188A (en) * 2008-09-12 2009-02-11 青岛海信移动通信技术股份有限公司 Mobile terminal and multimedia playing control method thereof
CN102117221A (en) * 2009-12-31 2011-07-06 上海博泰悦臻电子设备制造有限公司 Audio frequency application conflict management method and manager
CN102572060A (en) * 2010-12-07 2012-07-11 基信康信息技术(上海)有限公司 Processing method for mobile phone sound
CN102930889A (en) * 2012-10-26 2013-02-13 北京世纪联成科技有限公司 Sound conflict processing method based on vehicle-mounted information entertainment system
CN105045555A (en) * 2015-07-22 2015-11-11 北京元心科技有限公司 Configuration file based method and apparatus for implementing audio conflict resolution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140527A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Audio driver sound management method
US9262120B2 (en) * 2009-09-11 2016-02-16 Nokia Technologies Oy Audio service graphical user interface
CN101860626A (en) * 2010-06-22 2010-10-13 中兴通讯股份有限公司 Application providing method and mobile terminal
CN101944048A (en) * 2010-09-26 2011-01-12 中兴通讯股份有限公司 Management method of terminal in audio resource conflict and terminal
CN104394269A (en) * 2014-11-17 2015-03-04 贵阳朗玛信息技术股份有限公司 Communication control method and mobile terminal

Also Published As

Publication number Publication date
CN107995369A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN108647089B (en) Resource allocation method, device, terminal and storage medium
CN107995369B (en) Method, device and equipment for solving audio conflict
CN106445448B (en) Audio device control method and system of terminal and mobile terminal
EP3032412A1 (en) Method and device for upgrading firmware
EP3136231A1 (en) Method and device for installing plug-in of smart device
US9886264B2 (en) Method and device for upgrading firmware
US20150365360A1 (en) Method and apparatus for processing push message in notification center of mobile terminal, and storage medium
EP3096224A1 (en) Method and apparatus for processing application installation package
EP2854342A1 (en) Multi-screen interaction method, apparatus, and terminal device
CN106775969B (en) Selective operation method and device of application program
WO2020063773A1 (en) Radio frequency resource allocation method, user equipment, and device having storage function
US20110151841A1 (en) Call disconnect system and method for a mobile device
CN105786356A (en) Application (APP) operation method and device
CN106028142B (en) A kind of upgrade control method and device of playback equipment
US10111207B2 (en) Network device, terminal device, and voice service control method
CN109658934B (en) Method and device for controlling multimedia app through voice
CN108762983B (en) Multimedia data recovery method and device
CN103686633A (en) Method and device for transferring files
US11394515B2 (en) Information transmission method, device, and system, and storage medium
CN104102717A (en) Method and system for exclusively playing music at terminal
CN106156608B (en) Method and device for forbidding self-starting of background application
JP4592728B2 (en) Mobile phone
JP6911737B2 (en) Terminal device and communication method
CN113225432A (en) Earphone use prompting method and device
CN112214254A (en) Method and device for accelerating starting of application program and electronic equipment

Legal Events

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