CN107277402B - Switching method of microphone equipment, television and computer readable storage medium - Google Patents

Switching method of microphone equipment, television and computer readable storage medium Download PDF

Info

Publication number
CN107277402B
CN107277402B CN201710354995.5A CN201710354995A CN107277402B CN 107277402 B CN107277402 B CN 107277402B CN 201710354995 A CN201710354995 A CN 201710354995A CN 107277402 B CN107277402 B CN 107277402B
Authority
CN
China
Prior art keywords
microphone
application
microphone application
running
television
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
CN201710354995.5A
Other languages
Chinese (zh)
Other versions
CN107277402A (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.)
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 CN201710354995.5A priority Critical patent/CN107277402B/en
Publication of CN107277402A publication Critical patent/CN107277402A/en
Application granted granted Critical
Publication of CN107277402B publication Critical patent/CN107277402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/64Constructional details of receivers, e.g. cabinets or dust covers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42203Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] sound input device, e.g. microphone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4431OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB characterized by the use of Application Program Interface [API] libraries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4437Implementing a Virtual Machine [VM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • General Physics & Mathematics (AREA)
  • Details Of Audible-Bandwidth Transducers (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a switching method of microphone equipment, a television and a computer readable storage medium, wherein the method comprises the following steps: when the first microphone application is triggered, detecting whether a second microphone application runs on the current television; when the television runs with a second microphone application, judging whether the first microphone application and the second microphone application have shared microphone equipment or not; comparing microphone priorities of a first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device; enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application. The method of the embodiment realizes the switching of the multi-path microphone equipment, and meets the requirement that when a plurality of applications carrying microphone functions exist simultaneously, the applications can be selected to run according to the microphone priority of each application.

Description

Switching method of microphone equipment, television and computer readable storage medium
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a switching method for a microphone device, a television, and a computer-readable storage medium.
Background
At present, smart televisions are increasingly popularized, and Android platform-based televisions are also increasingly powerful and rich in functions, and more applications are applied to intelligent systems, wherein Microphone devices (MICs) are used more and more. Such as inputting voice control television using a bluetooth voice remote control, singing using a USB external microphone, chatting using a USB external camera with MIC, and transmitting audio solely through a built-in virtual MIC, etc. However, at present, these applications that need MIC functions cannot switch or simultaneously use multiple MICs in the current Android audio system because only one MIC can be started at the same time in the current Android audio system. Therefore, there are problems as follows: when one application uses the MIC channel, another application which needs to use the MIC cannot use the MIC after being started. For example, when a home zone application is started, a user always turns on a camera with an MIC, and at this time, if another application with an MIC is started again, the other application with the MIC cannot be used, for example, a bluetooth voice remote controller is used for inputting a voice control television, and at this time, the bluetooth voice remote controller cannot be used.
Disclosure of Invention
The invention mainly aims to provide a microphone device switching method, a television and a computer readable storage medium, and aims to realize switching of different microphone devices according to different priorities of applications carrying microphone functions.
In order to achieve the above object, the present invention provides a switching method for a microphone device, which is applied to a television with multiple microphone devices, wherein the television is installed with multiple microphone applications, and each microphone application calls one or more microphone devices in the multiple microphone devices, and the switching method for the microphone devices includes the following steps:
when the first microphone application is triggered, detecting whether a second microphone application runs on the current television;
when a second microphone application runs on the television, judging whether the first microphone application and the second microphone application have shared microphone equipment or not;
comparing microphone priorities of the first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device;
enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application.
Preferably, the step of determining whether the first microphone application and the second microphone application have a common microphone device comprises:
reading microphone address values corresponding to the first microphone application and the second microphone application;
determining whether the first microphone application and the second microphone application have the same microphone address value; when the first microphone application and the second microphone application have the same microphone address value, then the first microphone application and the second microphone application have a common microphone apparatus.
Preferably, the step of determining whether the first microphone application and the second microphone application have a common microphone device further comprises:
when the first microphone application and the second microphone application do not have a common microphone device, suspending the running second microphone application, and starting and running the first microphone application.
Preferably, the step of running the first microphone application further comprises, after the step of running the first microphone application:
and detecting whether the second microphone application is operated in a background or not after the first microphone application is operated, and if so, continuing to operate the second microphone application.
Preferably, the step of detecting whether the second microphone application is still running in the background after the first microphone application is running includes:
when the first microphone application is finished running, obtaining a currently running application list from a background;
detecting whether the second microphone application is listed in the application list, and if the second microphone application is in the application list, the second microphone application is still running in the background.
Preferably, the step of detecting whether the current tv set runs the second microphone application further includes:
and when the television does not have the second microphone application, the first microphone application is operated.
Preferably, the step of detecting whether the current tv set runs the second microphone application includes:
reading a device address value corresponding to a currently running application;
inquiring whether the device address of the currently running application is matched with the address value of the microphone device;
and if so, the current television runs with a second microphone application.
Preferably, the switching method of the microphone device further includes:
acquiring the use frequency of a user using a preset application in a preset period, wherein the preset application comprises an application with a microphone function;
and readjusting the microphone priority of the preset application according to the use frequency of the preset application.
In addition, to achieve the above object, the present invention also provides a television set, including: a memory, a processor and a switching program of a microphone arrangement stored on the memory and executable on the processor, which switching program of the microphone arrangement when executed by the processor implements the steps of the method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a switching program of a microphone apparatus, which when executed by a processor, implements the steps of the switching method of the microphone apparatus as described above.
The switching method of the microphone equipment detects whether the current television runs with a second microphone application when the first microphone application is triggered; when a second microphone application runs on the television, judging whether the first microphone application and the second microphone application have shared microphone equipment or not; comparing microphone priorities of the first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device; enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application. The method realizes the switching of the multi-path microphone equipment, and meets the requirement that when a plurality of applications with microphone functions exist simultaneously, the applications can be selected to run according to the microphone priority of each application.
Drawings
Fig. 1 is a schematic flow chart of a switching method of a microphone apparatus according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a switching method of a microphone apparatus according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a switching method of a microphone apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic flow chart of a switching method of a microphone apparatus according to a fourth embodiment of the present invention;
fig. 5 is a flow chart of a fifth embodiment of the switching method of the microphone apparatus according to the present invention;
fig. 6 is a flowchart illustrating a switching method of a microphone apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic diagram of a television set according to the present invention.
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 invention provides a switching method of microphone devices, which is applied to a television with multiple microphone devices, wherein a plurality of microphone applications are installed on the television, each microphone application calls one or more microphone devices in the multiple microphone devices, and in a first embodiment, referring to fig. 1, the switching method of the microphone devices comprises the following steps:
step S10, when the first microphone application is triggered, detecting whether the current TV set runs the second microphone application;
in this embodiment, the method is applied to a television set equipped with multiple microphone devices, and of course, in other real-time examples, the method may also be applied to a television set, an audio-visual device, a computer, and the like, which are commonly used for microphone devices. Specifically, the television device in this embodiment is an application platform based on an Android system, and during production, multiple MIC devices corresponding to different applications are configured in advance in the television device, and information such as a priority of the MIC device corresponding to each application and an MIC address corresponding to each application is set. For example, various applications with MIC functionality in a television include: the method comprises the steps of inputting voice to control a television by using a Bluetooth voice remote controller, using a USB external microphone K song, using a USB external camera with MIC to chat, independently transmitting audio by built-in virtual MIC, and the like. The MIC devices corresponding to the applications are respectively: what use bluetooth pronunciation remote controller input speech control TV corresponds is 1 MIC, what use the external microphone K of USB to song corresponds is 2 MIC, what utilize the external camera of taking MIC of USB to chat corresponds is 3 MIC, what transmit audio frequency through built-in virtual MIC alone corresponds is 1 MIC, etc.. Or in other embodiments, one microphone application corresponds to a plurality of different microphone devices, which are not illustrated herein, but are within the scope of the present invention.
Specifically, the storage format of the configuration file of each application may adopt the following manner:
Figure BDA0001298617520000051
the sampling _ rates is a sampling frequency, the channel _ masks is an audio channel, the format is a data format, the devices MIC is a device channel, and the priority is MIC priority.
The configuration is well matched and set when the television equipment is produced, and a user can start each application according to the requirement when using the television. After a user starts the television, the television system automatically reads the configuration files of all applications, analyzes the configuration files, stores the analyzed contents into the structure array, and loads the corresponding audio module lib. The data structure format is shown in the following table:
Figure BDA0001298617520000061
when a user starts a first microphone application with an MIC function, whether a second microphone application which is running currently exists is further detected. Specifically, whether the interfaces of all microphone devices of the current television are occupied or not can be detected; or in another embodiment, by reading the device address value of the currently running application, comparing the read device address value of the currently running application with the address value prestored by the microphone device, if the device address value of the currently running application and the address value prestored by the microphone device are the same, it may be determined that there is a second microphone application currently running, that is, an application corresponding to the device address value with the same microphone device address. Of course, in other embodiments, detection may be performed by other methods that may detect that there are currently both running second microphone applications.
Step S20, when a second microphone application runs on the television, judging whether the first microphone application and the second microphone application have a common microphone device;
when detecting that there is a second microphone application carrying a MIC function running, further detecting whether the first microphone application and the second microphone application have a common MIC. When the first microphone application and the second microphone application call only one microphone device, only detecting whether the first microphone application and the second microphone application share the same MIC; when the running second microphone application calls multiple MICs, it may be detected whether the second microphone application and the first microphone application have a common MIC, and at this time, the first microphone application and the second microphone application may have only one common MIC, or may have multiple common MICs.
However, if the first microphone application and the second microphone application use different MICs, the first microphone application may be run simultaneously while the second microphone application is running. Or in other embodiments, when the first microphone application and the second microphone application use different MICs, when the first microphone application needs to be started, suspending the second microphone application running at this time, starting running of the first microphone application, when running of the first microphone application is finished, releasing all resources, detecting whether the suspended second microphone application still exists, and if the second microphone application still exists, continuing to start the second microphone application.
Of course, in other embodiments, when the second microphone application uses a different microphone device than the first microphone application, the microphone priority corresponding to the first microphone application and the microphone priority corresponding to the second microphone application may also be determined. If the priority of the MIC corresponding to the first microphone application is higher than that of the MIC corresponding to the second microphone application, suspending the second microphone application and starting the first microphone application; and when the priority of the MIC corresponding to the first microphone application is lower than that of the MIC corresponding to the second microphone application, the opening of the first microphone application fails, and the second microphone application continues to run.
Step S30, comparing microphone priorities of the first microphone application and the second microphone application currently running when the first microphone application and the second microphone application have a common microphone device;
step S40, when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application, enabling the first microphone application.
When the first microphone application and the second microphone application are detected to share the same MIC, further comparing the MIC priority of the first microphone application and the currently running second microphone application, and enabling the first microphone application if the MIC priority of the first microphone application is greater than the MIC priority of the second microphone application; when the priority of the first microphone application is less than the MIC priority of the second microphone application, the starting of the first microphone application fails, and the second microphone application continues to be run at this time.
It should be noted that, when the first microphone application needs to call multiple microphone devices, and it is detected that the second microphone application has multiple common MICs with the first microphone application, or only a part of the microphone devices that need to be called of the first microphone application coincides with the microphone devices of the second microphone application, at this time, the priorities of the first microphone application and the second microphone application corresponding to the microphone devices of the coinciding part may be compared, and the operation of another microphone application with a lower priority may be suspended.
In the embodiment, when the first microphone application is triggered, whether the current television runs the second microphone application is detected; when a second microphone application runs on the television, judging whether the first microphone application and the second microphone application have shared microphone equipment or not; comparing microphone priorities of the first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device; enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application. The method realizes the switching of the multi-path MIC equipment, and meets the requirement that when a plurality of applications carrying MIC functions exist at the same time, the applications can be selected to run according to the MIC priority of each application.
Further, referring to fig. 2, based on the first embodiment of the switching method of the microphone apparatus of the present invention, in the second embodiment of the switching method of the microphone apparatus of the present invention, the step S20 includes:
step S21, reading microphone addresses corresponding to the first microphone application and the second microphone application;
step S22, determining whether the first microphone application and the second microphone application have the same microphone address; when the first microphone application and the second microphone application have the same microphone address, then the first microphone application and the second microphone application have a common microphone apparatus.
Based on the above embodiments, when the first microphone application and the second microphone application are configured in the television system, the MIC devices of the first microphone application and the second microphone application are configured with corresponding microphone device address values. When the system receives an operation instruction that a first microphone application or a second microphone application needs to be started, the microphone device address values of the first microphone application and the second microphone application are read, and the microphone device address values corresponding to the first microphone application and the second microphone application are obtained. Further, it may be determined whether the first microphone application and the second microphone application share the same microphone device by comparing whether the microphone device address value of the first microphone application is the same as the microphone device address value of the second microphone application. If the first microphone application and the second microphone application share the same MIC, the first microphone application and the second microphone application share the same MIC; a difference indicates that the first microphone application and the second microphone application use different MICs.
In this embodiment, whether the first microphone application and the second microphone application share the same MIC is determined by reading the microphone device address values of the first microphone application and the second microphone application.
Further, referring to fig. 3, based on the second embodiment of the switching method of the microphone apparatus of the present invention, in a third embodiment of the switching method of the microphone apparatus of the present invention, the switching method of the microphone apparatus further includes:
step S00, acquiring the use frequency of a user using preset applications in a preset period, wherein the preset applications comprise applications with microphone functions;
step S01, readjusting the microphone priority of the preset application according to the use frequency of the preset application.
In the present embodiment, the MIC of each preset application is prioritized by tracking the usage habits of the user. Specifically, a preset period may be set, which may be one month, three months or even longer, and within the preset period, the number of times that the user uses each of the different preset applications is recorded. Note that the predetermined application is an application that carries an MIC function. For example, a preset period is set to one month, and within the preset period: the use frequency of using the bluetooth voice remote controller to input the voice control television is fifty times, the use frequency of using the USB external microphone K song is twice, the use frequency of using the USB external camera with MIC to chat is ten times, the use frequency of separately transmitting the audio frequency through the built-in virtual MIC is three times, therefore, the use frequency of using the bluetooth voice remote controller to input the voice control television is the highest, the use frequency of using the USB external camera with MIC to chat is arranged in the second, the use frequency of separately transmitting the audio frequency through the built-in virtual MIC is arranged in the third, and the use frequency of using the USB external microphone K song is the lowest. And re-determining the priority of each application according to the determined sequence of the use frequency of each application.
In the embodiment, the use frequency of each preset application carrying the MIC function in the preset period is recorded, and the priority of each preset application is determined again according to the use frequency, so that the priority of the MIC of each preset application can be adjusted according to the use habit of the user, and the user experience is improved.
Further, referring to fig. 4, in a fourth embodiment of the switching method of the microphone apparatus of the present invention, the switching method of the microphone apparatus further includes:
step S50, when the first microphone application and the second microphone application do not have a common microphone device, suspending the running second microphone application, and starting and running the first microphone application.
Directly pausing a currently running second microphone application when it is detected that the first microphone application and the second microphone application do not have a common microphone device. This may be set according to the needs of the user, and when the user installs the television, it may be set according to the needs whether to directly suspend the currently running microphone application when two applications carrying microphone devices are started, or to similarly determine the priority of the first microphone application and the priority of the microphone corresponding to the second microphone application according to the method described in the above embodiment, and then select to open the microphone application with the higher priority. In particular, selectable settings may be provided according to the needs of the user.
In this embodiment, when the first microphone application and the second microphone application do not have a common microphone device, the running second microphone application is directly paused, and the first microphone application is run. And other judgments are not needed, so that the running speed is accelerated.
Further, referring to fig. 4, in another embodiment, after the step S50, the method further includes:
step S60, after the first microphone application is finished running, detecting whether the second microphone application is still running in the background, if so, continuing to run the second microphone application.
When the first microphone application and the second microphone application use different MICs, when the first microphone application needs to be started, suspending the second microphone application running at the moment, starting running of the first microphone application, releasing all resources after running of the first microphone application is finished, detecting whether the suspended second microphone application runs in a background, and if the second microphone application runs in the background, continuing to start the second microphone application.
When the user uses the first microphone application, the system detects whether the second microphone application is still running in the background, and if the second microphone application exists, the second microphone application continues running, so that the user experience is improved.
Further, referring to fig. 5, in a fifth embodiment of the switching method of the microphone apparatus of the present invention, the step S60 includes:
step S61, when the first microphone application is finished, acquiring the currently running application list from the background;
step S62, detecting whether the second microphone application is listed in the application list, and if the second microphone application is in the application list, the second microphone application is still running in the background.
In a television system, a currently running application list is recorded in a system background in real time, after the running of the first microphone application is finished, whether a second microphone application which is paused before the running of the first microphone application exists in the application list is inquired, if the second microphone application exists, the second microphone application is indicated to be still in a waiting state, and the second microphone application is continuously called to run at the moment.
By detecting the currently running application list recorded in the background, whether the second microphone application needing to be detected is still waiting in the background can be quickly acquired, and the response speed of the system application is improved.
Further, referring to fig. 6, in a sixth embodiment of the switching method of the microphone apparatus of the present invention, the step S10 includes:
step S11, reading the device address value corresponding to the current running application;
step S12, it is queried whether the device address value of the currently running application matches the address value of the microphone device, and if yes, the current tv runs the second microphone application.
The method comprises the steps of reading a device address value of an application currently running, comparing the read device address value of the application currently running with a pre-stored address value of the microphone device, and if the device address value of the application currently running is the same as the pre-stored address value of the microphone device, determining that an application with the microphone device is running, namely a second microphone application, namely an application corresponding to the device address value with the same address as the microphone device.
And judging whether the running application carrying the microphone exists or not according to the recorded address value of the equipment, so that the detection speed is increased.
The present invention further provides a television set, referring to fig. 7, comprising: a memory 101, a processor 102 and a switching program of a microphone arrangement stored on the memory 101 and operable on the processor 102, which switching program of the microphone arrangement when executed by the processor 102 implements the method steps of:
when the first microphone application is triggered, detecting whether a second microphone application runs on the current television;
when a second microphone application runs on the television, judging whether the first microphone application and the second microphone application have shared microphone equipment or not;
comparing microphone priorities of the first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device;
enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application.
In this embodiment, the television may be a television, a video device, a computer, or the like, which is commonly used as a microphone device. Specifically, taking an electronic device as a television as an example, the television device in this embodiment is an application platform based on an Android system, and during production, multiple MIC devices corresponding to different applications are configured in advance in the television device, and information such as a priority of the MIC device corresponding to each application and an MIC address corresponding to each application is set. For example, various applications with MIC functionality in a television include: the method comprises the steps of inputting voice to control a television by using a Bluetooth voice remote controller, using a USB external microphone K song, using a USB external camera with MIC to chat, independently transmitting audio by built-in virtual MIC, and the like. The MIC devices corresponding to the applications are respectively: what use bluetooth pronunciation remote controller input speech control TV corresponds is 1 MIC, what use the external microphone K of USB to song corresponds is 2 MIC, what utilize the external camera of taking MIC of USB to chat corresponds is 3 MIC, what transmit audio frequency through built-in virtual MIC alone corresponds is 1 MIC, etc.. Or in other embodiments, one microphone application corresponds to a plurality of different microphone devices, which are not illustrated herein, but are within the scope of the present invention.
When a user starts a first microphone application with an MIC function, whether a second microphone application which is running currently exists is further detected. Specifically, whether the interfaces of all microphone devices of the current television are occupied or not can be detected; or in another embodiment, by reading the device address value of the currently running application, comparing the read device address value of the currently running application with the address value prestored by the microphone device, if the device address value of the currently running application and the address value prestored by the microphone device are the same, it may be determined that there is a second microphone application currently running, that is, an application corresponding to the device address value with the same microphone device address. Of course, in other embodiments, detection may be performed by other methods that may detect that there are currently both running second microphone applications.
When detecting that there is a second microphone application carrying a MIC function running, further detecting whether the first microphone application and the second microphone application have a common MIC. When the first microphone application and the second microphone application call only one microphone device, only detecting whether the first microphone application and the second microphone application share the same MIC; when the running second microphone application calls multiple MICs, it may be detected whether the second microphone application and the first microphone application have a common MIC, and at this time, the first microphone application and the second microphone application may have only one common MIC, or may have multiple common MICs.
However, if the first microphone application and the second microphone application use different MICs, the first microphone application may be run simultaneously while the second microphone application is running. Or in other embodiments, when the first microphone application and the second microphone application use different MICs, when the first microphone application needs to be started, suspending the second microphone application running at this time, starting running of the first microphone application, when running of the first microphone application is finished, releasing all resources, detecting whether the suspended second microphone application still exists, and if the second microphone application still exists, continuing to start the second microphone application.
Of course, in other embodiments, when the second microphone application uses a different microphone device than the first microphone application, the microphone priority corresponding to the first microphone application and the microphone priority corresponding to the second microphone application may also be determined. If the priority of the MIC corresponding to the first microphone application is higher than that of the MIC corresponding to the second microphone application, suspending the second microphone application and starting the first microphone application; and when the priority of the MIC corresponding to the first microphone application is lower than that of the MIC corresponding to the second microphone application, the opening of the first microphone application fails, and the second microphone application continues to run.
When the first microphone application and the second microphone application are detected to share the same MIC, further comparing the MIC priority of the first microphone application and the currently running second microphone application, and enabling the first microphone application if the MIC priority of the first microphone application is greater than the MIC priority of the second microphone application; when the priority of the first microphone application is less than the MIC priority of the second microphone application, the starting of the first microphone application fails, and the second microphone application continues to be run at this time.
It should be noted that, when the first microphone application needs to call multiple microphone devices, and it is detected that the second microphone application has multiple common MICs with the first microphone application, or only a part of the microphone devices that need to be called of the first microphone application coincides with the microphone devices of the second microphone application, at this time, the priorities of the first microphone application and the second microphone application corresponding to the microphone devices of the coinciding part may be compared, and the operation of another microphone application with a lower priority may be suspended.
In the embodiment, when the first microphone application is triggered, whether the current television runs the second microphone application is detected; when a second microphone application runs on the television, judging whether the first microphone application and the second microphone application have shared microphone equipment or not; comparing microphone priorities of the first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device; enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application. The method realizes the switching of the multi-path MIC equipment, and meets the requirement that when a plurality of applications carrying MIC functions exist at the same time, the applications can be selected to run according to the MIC priority of each application.
Further, in an embodiment, the switching program of the microphone arrangement when executed by the processor implements the method steps of:
reading microphone address values corresponding to the first microphone application and the second microphone application;
determining whether the first microphone application and the second microphone application have the same microphone address value; when the first microphone application and the second microphone application have the same microphone address value, then the first microphone application and the second microphone application have a common microphone apparatus.
Based on the above embodiments, when the first microphone application and the second microphone application are configured in the television system, their MIC devices are configured with corresponding MIC address values. When the system receives an operation instruction that a first microphone application or a second microphone application needs to be started, the MIC address values of the first microphone application and the second microphone application are read, and the MIC address values corresponding to the first microphone application and the second microphone application are obtained. Further, it may be determined whether the first microphone application and the second microphone application share the same microphone apparatus by comparing whether the MIC address value of the first microphone application is the same as the MIC address value of the second microphone application. If the first microphone application and the second microphone application share the same MIC, the first microphone application and the second microphone application share the same MIC; a difference indicates that the first microphone application and the second microphone application use different MICs.
In this embodiment, it is further determined whether the first microphone application and the second microphone application share the same MIC by reading MIC address values of the first microphone application and the second microphone application.
Further, in an embodiment, the switching program of the microphone arrangement when executed by the processor implements the method steps of:
acquiring the use frequency of a user using a preset application in a preset period, wherein the preset application comprises an application with a microphone function;
and readjusting the microphone priority of the preset application according to the use frequency of the preset application.
In the present embodiment, the MIC of each preset application is prioritized by tracking the usage habits of the user. Specifically, a preset period may be set, which may be one month, three months or even longer, and within the preset period, the number of times that the user uses each of the different preset applications is recorded. Note that the predetermined application is an application that carries an MIC function. For example, a preset period is set to one month, and within the preset period: the use frequency of using the bluetooth voice remote controller to input the voice control television is fifty times, the use frequency of using the USB external microphone K song is twice, the use frequency of using the USB external camera with MIC to chat is ten times, the use frequency of separately transmitting the audio frequency through the built-in virtual MIC is three times, therefore, the use frequency of using the bluetooth voice remote controller to input the voice control television is the highest, the use frequency of using the USB external camera with MIC to chat is arranged in the second, the use frequency of separately transmitting the audio frequency through the built-in virtual MIC is arranged in the third, and the use frequency of using the USB external microphone K song is the lowest. And re-determining the priority of each application according to the determined sequence of the use frequency of each application.
In the embodiment, the use frequency of each preset application carrying the MIC function in the preset period is recorded, and the priority of each preset application is determined again according to the use frequency, so that the priority of the MIC of each preset application can be adjusted according to the use habit of the user, and the user experience is improved.
Further, in other embodiments, the switching program of the microphone arrangement when executed by the processor implements the method steps of:
pausing the second microphone application while running when the first microphone application and the second microphone application do not have a common microphone device
A microphone application, and running the first microphone application.
Directly pausing a currently running second microphone application when it is detected that the first microphone application and the second microphone application do not have a common microphone device. This may be set according to the needs of the user, and when the user installs the television, it may be set according to the needs whether to directly suspend the currently running microphone application when two applications carrying microphone devices are started, or to similarly determine the priority of the first microphone application and the priority of the microphone corresponding to the second microphone application according to the method described in the above embodiment, and then select to open the microphone application with the higher priority. In particular, selectable settings may be provided according to the needs of the user.
In this embodiment, when the first microphone application and the second microphone application do not have a common microphone device, the running second microphone application is directly paused, and the first microphone application is run. And other judgments are not needed, so that the running speed is accelerated.
Further, in other embodiments, the switching program of the microphone arrangement when executed by the processor implements the method steps of:
when the first microphone application and the second microphone application do not have a common microphone device, suspending the second microphone application being executed and executing the first microphone application further comprises:
and detecting whether the second microphone application is operated in a background or not after the first microphone application is operated, and if so, continuing to operate the second microphone application.
When the first microphone application and the second microphone application use different MICs, when the first microphone application needs to be started, suspending the second microphone application running at the moment, starting running of the first microphone application, releasing all resources after running of the first microphone application is finished, detecting whether the suspended second microphone application runs in a background, and if the second microphone application runs in the background, continuing to start the second microphone application.
When the user uses the first microphone application, the system detects whether the second microphone application is still running in the background, and if the second microphone application exists, the second microphone application continues running, so that the user experience is improved.
Further, in other embodiments, the switching program of the microphone arrangement when executed by the processor implements the method steps of:
when the first microphone application is finished running, obtaining a currently running application list from a background;
detecting whether the second microphone application is listed in the application list, and if the second microphone application is in the application list, the second microphone application is still running in the background.
In a television system, a currently running application list is recorded in a system background in real time, after the running of the first microphone application is finished, whether a second microphone application which is paused before the running of the first microphone application exists in the application list is inquired, if the second microphone application exists, the second microphone application is indicated to be still in a waiting state, and the second microphone application is continuously called to run at the moment.
By detecting the currently running application list recorded in the background, whether the second microphone application needing to be detected is still waiting in the background can be quickly acquired, and the response speed of the system application is improved.
Further, in other embodiments, the switching program of the microphone arrangement when executed by the processor implements the method steps of:
reading a device address value corresponding to a currently running application;
and inquiring whether the equipment address value of the currently running application is consistent with the address value of the microphone equipment, if so, running a second microphone application on the current television.
The method comprises the steps of reading a device address value of an application currently running, comparing the read device address value of the application currently running with a pre-stored address value of the microphone device, and if the device address value of the application currently running is the same as the pre-stored address value of the microphone device, determining that an application with the microphone device is running, namely a second microphone application, namely an application corresponding to the device address value with the same address as the microphone device.
And judging whether the running application carrying the microphone exists or not according to the recorded address value of the equipment, so that the detection speed is increased.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a switching program of a microphone device is stored, and when executed by a processor, the switching program of the microphone device implements the following operations:
when the first microphone application is triggered, detecting whether a second microphone application runs on the current television;
when a second microphone application runs on the television, judging whether the first microphone application and the second microphone application have shared microphone equipment or not;
comparing microphone priorities of the first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device;
enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application.
Further, the switching program of the microphone device when executed by the processor implements the following operations:
reading microphone address values corresponding to the first microphone application and the second microphone application;
determining whether the first microphone application and the second microphone application have the same microphone address value; when the first microphone application and the second microphone application have the same microphone address value, then the first microphone application and the second microphone application have a common microphone apparatus.
Further, the switching program of the microphone device when executed by the processor implements the following operations:
when the first microphone application and the second microphone application do not have a common microphone device, suspending the second microphone application being run and running the first microphone application.
Further, the switching program of the microphone device when executed by the processor implements the following operations:
and detecting whether the second microphone application is operated in a background or not after the first microphone application is operated, and if so, continuing to operate the second microphone application.
Further, the switching program of the microphone device when executed by the processor implements the following operations:
when the first microphone application is finished running, obtaining a currently running application list from a background;
detecting whether the second microphone application is listed in the application list, and if the second microphone application is in the application list, the second microphone application is still running in the background.
Further, the switching program of the microphone device when executed by the processor implements the following operations:
and when the television does not have the second microphone application, the first microphone application is operated.
Further, the switching program of the microphone device when executed by the processor implements the following operations:
reading a device address value corresponding to a currently running application;
and inquiring whether the equipment address value of the currently running application is consistent with the address value of the microphone equipment, if so, running a second microphone application on the current television.
Further, the switching program of the microphone device when executed by the processor implements the following operations:
acquiring the use frequency of a user using a preset application in a preset period, wherein the preset application comprises an application with a microphone function;
and readjusting the microphone priority of the preset application according to the use frequency of the preset application.
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 (9)

1. A switching method of microphone devices is applied to a television with multiple microphone devices, wherein a plurality of microphone applications are installed on the television, each microphone application calls one or more microphone devices in the multiple microphone devices, and the switching method of the microphone devices comprises the following steps:
when the first microphone application is triggered, detecting whether a second microphone application runs on the current television;
when a second microphone application runs on the television, reading microphone address values corresponding to the first microphone application and the second microphone application;
determining whether the first microphone application and the second microphone application have the same microphone address value; when the first microphone application and the second microphone application have the same microphone address value, then the first microphone application and the second microphone application have a common microphone device;
comparing microphone priorities of the first microphone application and a currently running second microphone application when the first microphone application and the second microphone application have a common microphone device;
enabling the first microphone application when the microphone priority of the first microphone application is greater than the microphone priority of the second microphone application.
2. The method of claim 1, wherein the step of determining whether the first microphone application and the second microphone application have a common microphone device is further followed by:
when the first microphone application and the second microphone application do not have a common microphone device, suspending the running second microphone application, and starting and running the first microphone application.
3. The method of switching a microphone apparatus of claim 2 wherein the step of running the first microphone application is further followed by:
and detecting whether the second microphone application is operated in a background or not after the first microphone application is operated, and if so, continuing to operate the second microphone application.
4. The switching method of microphone devices according to claim 3, wherein the step of detecting whether the second microphone application is still running in the background after the first microphone application is running includes:
when the first microphone application is finished running, obtaining a currently running application list from a system background;
detecting whether the second microphone application is listed in the application list, and if the second microphone application is in the application list, the second microphone application is still running in the background.
5. The method of claim 1, wherein the step of detecting whether the current tv set runs the second microphone application further comprises:
and when the television does not have the second microphone application, the first microphone application is operated.
6. The method of claim 1, wherein the step of detecting whether the current tv set runs a second microphone application comprises:
reading a device address value corresponding to a currently running application;
and inquiring whether the equipment address value of the currently running application is consistent with the address value of the microphone equipment, if so, running a second microphone application on the current television.
7. The switching method of a microphone device according to any one of claims 1 to 6, characterized by further comprising:
acquiring the use frequency of a user using a preset application in a preset period, wherein the preset application comprises an application with a microphone function;
and readjusting the microphone priority of the preset application according to the use frequency of the preset application.
8. A television set, characterized in that the television set comprises: memory, processor and a switching program of a microphone arrangement stored on the memory and executable on the processor, which switching program of the microphone arrangement when executed by the processor implements the steps of the method according to any of claims 1-7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a switching program of a microphone device, which when executed by a processor implements the steps of the switching method of a microphone device according to any one of claims 1 to 7.
CN201710354995.5A 2017-05-18 2017-05-18 Switching method of microphone equipment, television and computer readable storage medium Active CN107277402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710354995.5A CN107277402B (en) 2017-05-18 2017-05-18 Switching method of microphone equipment, television and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710354995.5A CN107277402B (en) 2017-05-18 2017-05-18 Switching method of microphone equipment, television and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107277402A CN107277402A (en) 2017-10-20
CN107277402B true CN107277402B (en) 2020-10-02

Family

ID=60064169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710354995.5A Active CN107277402B (en) 2017-05-18 2017-05-18 Switching method of microphone equipment, television and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107277402B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468934B (en) * 2020-11-16 2022-07-26 深圳康佳电子科技有限公司 Microphone control method and device, intelligent terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103917947A (en) * 2011-11-09 2014-07-09 索尼电脑娱乐公司 Information processing device, information processing method, program, and information storage medium
CN104270489A (en) * 2014-09-10 2015-01-07 中兴通讯股份有限公司 Method and system for determining main microphone and auxiliary microphone from multiple microphones
WO2016019800A1 (en) * 2014-08-04 2016-02-11 阿里巴巴集团控股有限公司 Television switching method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103917947A (en) * 2011-11-09 2014-07-09 索尼电脑娱乐公司 Information processing device, information processing method, program, and information storage medium
WO2016019800A1 (en) * 2014-08-04 2016-02-11 阿里巴巴集团控股有限公司 Television switching method and device
CN104270489A (en) * 2014-09-10 2015-01-07 中兴通讯股份有限公司 Method and system for determining main microphone and auxiliary microphone from multiple microphones

Also Published As

Publication number Publication date
CN107277402A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
US11250859B2 (en) Accessing multiple virtual personal assistants (VPA) from a single device
CN109473095B (en) Intelligent household control system and control method
JP2019185733A (en) Voice control method, terminal equipment, cloud server and system
CN108901077B (en) Antenna ratio setting method and device, user equipment and storage medium
US20190341051A1 (en) Display apparatus capable of releasing a voice input mode by sensing a speech finish and voice control method thereof
US10312874B2 (en) Volume control methods and devices, and multimedia playback control methods and devices
US11126389B2 (en) Controlling visual indicators in an audio responsive electronic device, and capturing and providing audio using an API, by native and non-native computing devices and services
CN109379613B (en) Audio and video synchronization adjustment method, television, computer readable storage medium and system
US9984563B2 (en) Method and device for controlling subordinate electronic device or supporting control of subordinate electronic device by learning IR signal
US10073672B2 (en) Method, system, and computer storage medium for voice control of a split-screen terminal
CN105824424A (en) Music control method and terminal
US9384752B2 (en) Audio device and storage medium
KR20200124948A (en) Electronic device and Method of controlling thereof
CN114051073A (en) Bluetooth control conversation software method, device, earphone, equipment and medium
CN111093133B (en) Wireless device control method, apparatus and computer readable storage medium
CN107277402B (en) Switching method of microphone equipment, television and computer readable storage medium
KR20240084531A (en) The system and an appratus for providig contents based on a user utterance
AU2012216583B2 (en) Electronic apparatus and method for controlling thereof
CN106507160B (en) Multimedia application playing control method and system based on remote Bluetooth equipment
CN106604204B (en) Method and system for remotely controlling terminal application through Bluetooth
CN105187878A (en) Television Bluetooth connection method and device
US9497580B1 (en) Using application context to facilitate pairing with a peripheral device
EP2750014A2 (en) Electronic apparatus, and method of controlling an electronic apparatus through motion input
US20220122600A1 (en) Information processing device and information processing method
CN103218043A (en) Control cancelling method and device

Legal Events

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