CN108540883A - Microphone control method and microphone - Google Patents
Microphone control method and microphone Download PDFInfo
- Publication number
- CN108540883A CN108540883A CN201810387483.3A CN201810387483A CN108540883A CN 108540883 A CN108540883 A CN 108540883A CN 201810387483 A CN201810387483 A CN 201810387483A CN 108540883 A CN108540883 A CN 108540883A
- Authority
- CN
- China
- Prior art keywords
- microphone
- switch
- control chip
- mode
- detected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/08—Mouthpieces; Microphones; Attachments therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
- H04R1/22—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only
- H04R1/222—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only for microphones
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
技术领域technical field
本发明属于控制技术领域,尤其涉及一种麦克风控制的方法、麦克风及计算机可读存储介质。The invention belongs to the technical field of control, and in particular relates to a microphone control method, a microphone and a computer-readable storage medium.
背景技术Background technique
麦克风是将声音信号转换为电信号的能量转换器件。在各类设备、系统中,人们常常需要通过麦克风来获取声音信号,例如在KTV中,通过包含了麦克风的影音设备唱歌。而在演唱过程中,当人们在唱歌间隙往往还会根据音乐做出即兴的击打等动作,或者想要加入乐器演奏,而申请人发现要实现这样的互动需要在影音设备等系统中加入额外的乐器,并且需要用户在演唱过程中不断地切换使用的器件,如一会儿要拿麦克风,一会儿要操作乐器,使用起来很不方便,极大的影响用户体验。Microphones are energy conversion devices that convert sound signals into electrical signals. In various devices and systems, people often need to obtain sound signals through a microphone, for example, in KTV, singing through an audio-visual device that includes a microphone. In the process of singing, when people are singing, they often make impromptu strikes and other actions according to the music, or want to join musical instruments, and the applicant finds that to achieve such interaction, it is necessary to add additional components to the audio-visual equipment and other systems. In addition, the user needs to constantly switch the devices used during the singing process, such as holding the microphone for a while and operating the instrument for a while, which is very inconvenient to use and greatly affects the user experience.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种麦克风控制的方法、麦克风及计算机可读存储介质,以解决现有技术中使用麦克风演唱过程中难以方便地转换为打击等其他演奏方式,用户体验较差的问题。In view of this, the embodiment of the present invention provides a microphone control method, a microphone and a computer-readable storage medium, so as to solve the problem that in the prior art, it is difficult to conveniently switch to other performance methods such as percussion during singing with a microphone, and the user experience is relatively poor. bad question.
本发明实施例的第一方面提供了一种麦克风控制的方法,所述麦克风包括控制芯片以及开关,所述控制芯片与所述开关连接,所述方法包括:The first aspect of the embodiments of the present invention provides a microphone control method, the microphone includes a control chip and a switch, the control chip is connected to the switch, and the method includes:
当所述麦克风启动后,通过所述控制芯片检测所述开关的状态;After the microphone is started, the state of the switch is detected by the control chip;
若检测到所述开关处于第一预设状态时,控制所述麦克风由第一模式切换至第二模式。If it is detected that the switch is in the first preset state, the microphone is controlled to switch from the first mode to the second mode.
本发明实施例的第二方面提供了一种麦克风,所述麦克风包括控制芯片以及开关,所述控制芯片与所述开关连接:The second aspect of the embodiments of the present invention provides a microphone, the microphone includes a control chip and a switch, and the control chip is connected to the switch:
所述控制芯片,用于在所述麦克风启动后,检测所述开关的状态,并在检测到所述开关处于第一预设状态时,控制所述麦克风由第一模式切换至第二模式。The control chip is configured to detect the state of the switch after the microphone is activated, and control the microphone to switch from the first mode to the second mode when the switch is detected to be in the first preset state.
本发明实施例的第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被麦克风执行时实现如上所述方法的步骤。A third aspect of the embodiments of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a microphone, the steps of the method described above are implemented.
本发明实施例与现有技术相比存在的有益效果是:本发明实施例中,所述麦克风包括控制芯片以及开关,所述控制芯片与所述开关连接;所述麦克风控制的方法中,当所述麦克风启动后,通过所述控制芯片检测所述开关的状态;若检测到所述开关处于第一预设状态时,控制所述麦克风由第一模式切换至第二模式。本发明实施例通过控制芯片检测所述开关的状态并控制所述麦克风的模式,使得所述麦克风可以在第一模式和第二模式间进行切换,从而为用户提供方便快捷的转换方式,为用户提供多种应用场景,用户体验较好,实用性和易用性较高。Compared with the prior art, the embodiment of the present invention has the following beneficial effects: in the embodiment of the present invention, the microphone includes a control chip and a switch, and the control chip is connected to the switch; in the microphone control method, when After the microphone is started, the state of the switch is detected by the control chip; if it is detected that the switch is in the first preset state, the microphone is controlled to switch from the first mode to the second mode. In the embodiment of the present invention, the control chip detects the state of the switch and controls the mode of the microphone, so that the microphone can be switched between the first mode and the second mode, thereby providing users with a convenient and quick conversion method, and providing users with Provides a variety of application scenarios, good user experience, high practicability and ease of use.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本发明实施例一提供的麦克风控制的方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation flow of the microphone control method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的麦克风控制的方法的实现流程示意图;FIG. 2 is a schematic diagram of the implementation flow of the microphone control method provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的麦克风的示意图。FIG. 3 is a schematic diagram of a microphone provided by Embodiment 3 of the present invention.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.
图1是本发明实施例一提供的麦克风控制的方法的实现流程示意图,所述麦克风包括控制芯片以及开关,所述控制芯片与所述开关连接,如图1所示该方法可以包括以下步骤:Fig. 1 is a schematic diagram of the implementation flow of the microphone control method provided by Embodiment 1 of the present invention. The microphone includes a control chip and a switch, and the control chip is connected to the switch. As shown in Fig. 1, the method may include the following steps:
步骤S101,当所述麦克风启动后,通过所述控制芯片检测所述开关的状态。Step S101, after the microphone is started, the state of the switch is detected by the control chip.
本发明实施例中,所述麦克风(Microphone)是将声音信号转换为电信号的能量转换器件。In the embodiment of the present invention, the microphone (Microphone) is an energy conversion device that converts sound signals into electrical signals.
本发明实施例中,所述开关可以是按键开关、触摸开关、薄膜开关、压力开关等。所述开关可以用于选择两种或两种以上的状态,可以包括用于麦克风的应用模式切换的开关和/或麦克风的开启关闭开关等,在此不作限定,其中,所述应用模式包括第一模式和第二模式。可选的,所述控制芯片可以设置在所述麦克风的内部,所述开关可以设置在所述麦克风的外部,例如所述开关可以设置在麦克风的外部的侧面,以方便用户在手握麦克风时进行控制。In the embodiment of the present invention, the switch may be a key switch, a touch switch, a membrane switch, a pressure switch, and the like. The switch may be used to select two or more states, and may include a switch for switching the application mode of the microphone and/or an on/off switch of the microphone, etc., which are not limited herein, wherein the application mode includes the second first mode and second mode. Optionally, the control chip can be arranged inside the microphone, and the switch can be arranged outside the microphone, for example, the switch can be arranged on the outside side of the microphone, so as to facilitate the user to hold the microphone Take control.
步骤S102,若检测到所述开关处于第一预设状态时,控制所述麦克风由第一模式切换至第二模式。Step S102, if it is detected that the switch is in the first preset state, control the microphone to switch from the first mode to the second mode.
本发明实施例中,所述第一预设状态可以依据开关类型进行对应的调整,从而针对采用的开关设置对应的第一预设状态,在此不作限定。示例性的,所述开关处于第一预设状态可以是按键开关处于按下状态时,也可以是检测到触摸开关的触摸操作使得触摸开关处于控制麦克风切换至第二模式的状态时等等。In the embodiment of the present invention, the first preset state may be correspondingly adjusted according to the switch type, so as to set a corresponding first preset state for the adopted switch, which is not limited herein. Exemplarily, the switch being in the first preset state may be when the key switch is in the pressed state, or when the touch operation of the touch switch is detected so that the touch switch is in the state of controlling the microphone to switch to the second mode, and so on.
本发明实施例中,所述第一模式可以是语音接收模式,通过麦克风的语音接收装置接收声音,以用于后续的音频处理、传播、放大等操作;所述第二模式可以是通过麦克风上的其他传感器接收数据的模式,例如通过压力传感器接收压力的模式。In the embodiment of the present invention, the first mode may be a voice receiving mode, and the sound is received by the voice receiving device of the microphone for subsequent audio processing, transmission, amplification and other operations; the second mode may be through the microphone on the The mode of receiving data from other sensors, such as the mode of receiving pressure through a pressure sensor.
本发明实施例中,当所述麦克风启动后,通过所述控制芯片检测所述开关的状态;若检测到所述开关处于第一预设状态时,控制所述麦克风由第一模式切换至第二模式。通过控制芯片检测所述开关的状态并控制所述麦克风的模式,使得所述麦克风可以在第一模式和第二模式间进行切换,从而为用户提供方便快捷的转换方式,为用户提供多种应用场景,用户体验较好,实用性和易用性较高。In the embodiment of the present invention, after the microphone is started, the state of the switch is detected by the control chip; if it is detected that the switch is in the first preset state, the microphone is controlled to switch from the first mode to the second mode. Two modes. The control chip detects the state of the switch and controls the mode of the microphone, so that the microphone can be switched between the first mode and the second mode, thereby providing users with a convenient and fast conversion method and providing users with a variety of applications scenarios, better user experience, higher practicability and ease of use.
图2是本发明实施例二提供的麦克风控制的方法的实现流程示意图,所述麦克风包括控制芯片以及开关,所述控制芯片与所述开关连接;所述麦克风还包括语音接收装置和压力传感器,所述控制芯片分别与所述语音接收装置和压力传感器连接。Fig. 2 is a schematic diagram of the implementation flow of the microphone control method provided by Embodiment 2 of the present invention, the microphone includes a control chip and a switch, the control chip is connected to the switch; the microphone also includes a voice receiving device and a pressure sensor, The control chip is respectively connected with the voice receiving device and the pressure sensor.
如图2所示该方法可以包括以下步骤:As shown in Figure 2, the method may include the following steps:
在步骤S201中,当所述麦克风启动后,通过所述控制芯片检测所述开关的状态。In step S201, after the microphone is started, the state of the switch is detected by the control chip.
本实施例步骤S201与上述步骤S101相同,具体可参见步骤S101相关描述,在此不再赘述。Step S201 in this embodiment is the same as the above-mentioned step S101, for details, please refer to the related description of step S101, which will not be repeated here.
在步骤S202中,若检测到所述开关处于第一预设状态时,通过所述控制芯片关闭所述语音接收装置,并启动所述压力传感器,以控制所述麦克风由语音接收模式切换至压力接收模式。In step S202, if it is detected that the switch is in the first preset state, the voice receiving device is turned off through the control chip, and the pressure sensor is activated to control the microphone to switch from the voice receiving mode to the pressure sensor. receive mode.
本发明实施例中,所述第一预设状态可以依据开关类型进行对应的调整,从而针对采用的开关设置对应的第一预设状态,在此不作限定。In the embodiment of the present invention, the first preset state may be correspondingly adjusted according to the switch type, so as to set a corresponding first preset state for the adopted switch, which is not limited herein.
可选的,本发明实施例中,在控制所述麦克风由语音接收模式切换至压力接收模式之后,还可以包括:获取所述压力传感器检测到的压力值;通过所述控制芯片将所述压力值转换成对应的音频,并将所述音频发送至与所述麦克风连接的输出设备。Optionally, in the embodiment of the present invention, after controlling the microphone to switch from the voice receiving mode to the pressure receiving mode, it may further include: acquiring the pressure value detected by the pressure sensor; The values are converted to corresponding audio, and the audio is sent to an output device connected to the microphone.
其中,可选的,所述通过所述控制芯片将所述压力值转换成对应的音频,并将所述音频发送至与所述麦克风连接的输出设备可以包括:根据预先建立的所述压力值与预设乐器的音频的对应关系,获得与检测到的压力值对应的音频,并将所述音频发送至与所述麦克风连接的输出设备。Wherein, optionally, converting the pressure value into corresponding audio through the control chip, and sending the audio to the output device connected to the microphone may include: according to the pre-established pressure value The corresponding relationship with the audio of the preset musical instrument is obtained, and the audio corresponding to the detected pressure value is obtained, and the audio is sent to the output device connected to the microphone.
其中,所述压力传感器可以设置在麦克风的顶部或者底部,所述压力传感器中的压力感应模块可以突出于麦克风的外部,以便于用户在压力传感器上施加不同的压力值。所述输出设备可以是对所述音频进行识别和处理的设备,如音箱、计算机等各类终端设备。Wherein, the pressure sensor can be arranged on the top or bottom of the microphone, and the pressure sensing module in the pressure sensor can protrude from the outside of the microphone, so that the user can apply different pressure values on the pressure sensor. The output device may be a device for identifying and processing the audio, such as various terminal devices such as speakers and computers.
此外,可选的,所述预先建立的所述压力值与预设乐器的音频的对应关系可以是预先依据所述压力值高低与所述预设乐器的音频的音量大小建立的对应关系,示例性的,所述预设乐器可以是各类打击乐器,例如,设所述预设乐器是鼓,则预先设置所述压力值高低对应打鼓时的音量的大小;所述预先建立的所述压力值与预设乐器的音频的对应关系还可以是预先依据所述压力值高低与所述预设乐器的音频的音调大小建立的对应关系,示例性的,所述预设乐器可以是吉他、口琴、钢琴等乐器,例如,设所述预设乐器是钢琴,则预先设置所述压力值高低对应弹钢琴时的音调的大小,如设置0-1N的压力值对应音阶的7个基本音级中的“do”音,设置1-2N的压力值对应“re”音,设置2-3N的压力值对应“mi”音等等。In addition, optionally, the pre-established correspondence between the pressure value and the audio of the preset musical instrument may be based on the pre-established correspondence between the pressure value and the audio volume of the preset musical instrument, for example Specifically, the preset musical instrument can be various percussion instruments, for example, if the preset musical instrument is a drum, the pressure value is preset to correspond to the volume of the drum; the pre-established pressure The corresponding relationship between the value and the audio frequency of the preset musical instrument can also be based on the corresponding relationship established in advance between the level of the pressure value and the tone of the audio frequency of the preset musical instrument. Exemplarily, the preset musical instrument can be a guitar, a harmonica , piano and other musical instruments, for example, if the preset musical instrument is a piano, then the pressure value is preset to correspond to the size of the tone when playing the piano, such as setting the pressure value of 0-1N corresponding to the 7 basic levels of the scale The "do" sound, set the pressure value of 1-2N to correspond to the "re" sound, set the pressure value of 2-3N to correspond to the "mi" sound and so on.
可选的,所述方法还可以包括:若检测到所述开关处于第二预设状态时,控制所述麦克风执行第一模式。Optionally, the method may further include: if it is detected that the switch is in the second preset state, controlling the microphone to execute the first mode.
本发明实施例中,所述第二预设状态可以与第一预设状态不同。示例性的,当所述开关处于第一预设状态是按键开关处于按下状态时,那么对应的,所述开关处于第二预设状态可以是按键开关处于未按下状态时。In the embodiment of the present invention, the second preset state may be different from the first preset state. Exemplarily, when the switch is in the first preset state when the key switch is pressed, then correspondingly, the switch is in the second preset state when the key switch is not pressed.
本发明实施例中,当所述麦克风启动后,通过所述控制芯片检测所述开关的状态;若检测到所述开关处于第一预设状态时,通过所述控制芯片关闭所述语音接收装置,并启动所述压力传感器,以控制所述麦克风由语音接收模式切换至压力接收模式。本发明实施例通过控制芯片检测所述开关的状态并控制所述麦克风的模式,可以使麦克风切换至压力接收模式,使得麦克风可以通过压力传感器获取用户的打击数据从而转换成对应的音频,使用户通过麦克风即可实现多种表演方式,如演唱、打击乐等,拓展了应用场景,用户体验较好,实用性和易用性较高。In the embodiment of the present invention, after the microphone is started, the state of the switch is detected by the control chip; if it is detected that the switch is in the first preset state, the voice receiving device is turned off by the control chip , and activate the pressure sensor to control the microphone to switch from the voice receiving mode to the pressure receiving mode. In the embodiment of the present invention, the control chip detects the state of the switch and controls the mode of the microphone, so that the microphone can be switched to the pressure receiving mode, so that the microphone can obtain the user's strike data through the pressure sensor and convert it into corresponding audio, so that the user can A variety of performance methods can be realized through the microphone, such as singing, percussion, etc., which expands the application scenarios, has better user experience, and has higher practicability and ease of use.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
图3是本发明实施例三提供的麦克风的示意图。为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 3 is a schematic diagram of a microphone provided by Embodiment 3 of the present invention. For ease of description, only parts related to the embodiments of the present invention are shown.
所述麦克风包括控制芯片31以及开关32,所述控制芯片31与所述开关32连接:The microphone includes a control chip 31 and a switch 32, and the control chip 31 is connected to the switch 32:
所述控制芯片31,用于在所述麦克风启动后,检测所述开关32的状态,并在检测到所述开关32处于第一预设状态时,控制所述麦克风由第一模式切换至第二模式。The control chip 31 is configured to detect the state of the switch 32 after the microphone is started, and control the microphone to switch from the first mode to the second mode when the switch 32 is detected to be in the first preset state. Two modes.
可选的,所述麦克风还包括语音接收装置和压力传感器,所述控制芯片31分别与所述语音接收装置和压力传感器连接;Optionally, the microphone also includes a voice receiving device and a pressure sensor, and the control chip 31 is connected to the voice receiving device and the pressure sensor respectively;
相应的,所述控制芯片31具体用于:Correspondingly, the control chip 31 is specifically used for:
若检测到所述开关32处于第一预设状态时,通过所述控制芯片31关闭所述语音接收装置,并启动所述压力传感器,以控制所述麦克风由语音接收模式切换至压力接收模式。If it is detected that the switch 32 is in the first preset state, the voice receiving device is turned off by the control chip 31 and the pressure sensor is activated to control the microphone to switch from the voice receiving mode to the pressure receiving mode.
可选的,所述控制芯片31具体还用于:Optionally, the control chip 31 is also specifically used for:
获取所述压力传感器检测到的压力值;Acquiring the pressure value detected by the pressure sensor;
将所述压力值转换成对应的音频,并将所述音频发送至与所述麦克风连接的输出设备。The pressure values are converted to corresponding audio and the audio is sent to an output device connected to the microphone.
可选的,所述控制芯片31具体用于:Optionally, the control chip 31 is specifically used for:
根据预先建立的所述压力值与预设乐器的音频的对应关系,获得与检测到的压力值对应的音频,并将所述音频发送至与所述麦克风连接的输出设备。According to the pre-established correspondence between the pressure value and the audio of the preset musical instrument, audio corresponding to the detected pressure value is obtained, and the audio is sent to an output device connected to the microphone.
可选的,所述控制芯片31具体还用于:Optionally, the control chip 31 is also specifically used for:
若检测到所述开关32处于第二预设状态时,控制所述麦克风执行第一模式。If it is detected that the switch 32 is in the second preset state, the microphone is controlled to execute the first mode.
本发明实施例中,所述麦克风还可以包括存储器以及存储在所述存储器中并可在所述控制芯片31上运行的计算机程序。所述存储器可以集成于所述控制芯片31中,也可以作为独立的部分设置与麦克风中。所述控制芯片31执行所述计算机程序时实现上述各个麦克风控制的方法实施例中的步骤,例如图1所示的步骤101至102。In the embodiment of the present invention, the microphone may further include a memory and a computer program stored in the memory and operable on the control chip 31 . The memory can be integrated in the control chip 31, or can be set in the microphone as an independent part. When the control chip 31 executes the computer program, it implements the steps in the above embodiments of the microphone control method, such as steps 101 to 102 shown in FIG. 1 .
示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述控制芯片31执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述麦克风中的执行过程。Exemplarily, the computer program can be divided into one or more modules/units, and the one or more modules/units are stored in the memory and executed by the control chip 31 to complete the present invention . The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the microphone.
本领域技术人员可以理解,图3仅仅是麦克风的示例,并不构成对麦克风的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述麦克风还可以包括输入输出设备、网络接入设备、总线等。Those skilled in the art can understand that FIG. 3 is only an example of a microphone, and does not constitute a limitation to the microphone. It may include more or less components than shown in the figure, or combine some components, or different components, such as the The microphone may also include input and output devices, network access devices, buses, and the like.
所述控制芯片31可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The control chip 31 can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
所述存储器可以是所述麦克风的内部存储单元,例如麦克风的硬盘或内存。所述存储器也可以是所述麦克风的外部存储设备,例如所述麦克风上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器还可以既包括所述麦克风的内部存储单元也包括外部存储设备。所述存储器用于存储所述计算机程序以及所述麦克风所需的其他程序和数据。所述存储器还可以用于暂时地存储已经输出或者将要输出的数据。The memory may be an internal storage unit of the microphone, such as a hard disk or a memory of the microphone. The memory may also be an external storage device of the microphone, such as a plug-in hard disk equipped on the microphone, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card ( Flash Card), etc. Further, the memory may also include both an internal storage unit of the microphone and an external storage device. The memory is used to store the computer program and other programs and data required by the microphone. The memory can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的麦克风和方法,可以通过其它的方式实现。例如,以上所描述的麦克风实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed microphone and method can be implemented in other ways. For example, the microphone embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元(如开关、控制芯片等)可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit (such as a switch, a control chip, etc.) in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one processing unit. in the unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still carry out the foregoing embodiments Modifications to the technical solutions recorded in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in within the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810387483.3A CN108540883A (en) | 2018-04-26 | 2018-04-26 | Microphone control method and microphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810387483.3A CN108540883A (en) | 2018-04-26 | 2018-04-26 | Microphone control method and microphone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108540883A true CN108540883A (en) | 2018-09-14 |
Family
ID=63479496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810387483.3A Pending CN108540883A (en) | 2018-04-26 | 2018-04-26 | Microphone control method and microphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108540883A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201509294U (en) * | 2009-09-04 | 2010-06-16 | 三朴实业有限公司 | Dual-function microphone earphone |
CN203813923U (en) * | 2014-04-04 | 2014-09-03 | 祁国祥 | Palm KTV microphone having electronic musical instrument function |
CN105489209A (en) * | 2016-01-19 | 2016-04-13 | 李元辉 | Electroacoustic musical instrument rhythm controllable method and improvement of karaoke thereof |
CN105635878A (en) * | 2016-02-03 | 2016-06-01 | 深圳市汇顶科技股份有限公司 | Switching method of earphone working modes and earphone |
-
2018
- 2018-04-26 CN CN201810387483.3A patent/CN108540883A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201509294U (en) * | 2009-09-04 | 2010-06-16 | 三朴实业有限公司 | Dual-function microphone earphone |
CN203813923U (en) * | 2014-04-04 | 2014-09-03 | 祁国祥 | Palm KTV microphone having electronic musical instrument function |
CN105489209A (en) * | 2016-01-19 | 2016-04-13 | 李元辉 | Electroacoustic musical instrument rhythm controllable method and improvement of karaoke thereof |
CN105635878A (en) * | 2016-02-03 | 2016-06-01 | 深圳市汇顶科技股份有限公司 | Switching method of earphone working modes and earphone |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021016899A1 (en) | Wireless earphone control method and apparatus, wireless earphone, and storage medium | |
CN108076226B (en) | Method for adjusting call quality, mobile terminal and storage medium | |
CN106210954B (en) | Headphone-based terminal device control method and headphone | |
CN101924971A (en) | Apparatus and method for outputting audio signal in portable terminal | |
CN105760154A (en) | Audio control method and device | |
US20160081595A1 (en) | System for hearing sensitivity testing and auto reinforcement | |
CN105611064A (en) | Mobile terminal mode switching method and device | |
CN105573522A (en) | Operation method of mobile terminal and mobile terminal | |
WO2020228226A1 (en) | Instrumental music detection method and apparatus, and storage medium | |
CN110491419A (en) | A kind of control method for playing back, system and terminal device | |
CN106488045A (en) | Control method and control device | |
CN106537933B (en) | Portable loudspeaker | |
US20120033835A1 (en) | System and method for modifying an audio signal | |
CN108540883A (en) | Microphone control method and microphone | |
CN105718165A (en) | A method and device for starting a terminal background application | |
CN105718773A (en) | Terminal unlocking method and device | |
WO2019061292A1 (en) | Noise reduction method for terminal and terminal | |
CN107948877A (en) | Microphone control method and system and microphone | |
CN103152669A (en) | Method for utilizing intelligent terminal to operate voice frequency effector | |
CN107889031A (en) | Audio control method, audio control device and electronic equipment | |
CN105516493B (en) | A kind of mobile terminal and its alarm clock control method | |
CN107945777A (en) | A kind of audio production method, mobile terminal and computer-readable recording medium | |
WO2019061287A1 (en) | Electronic apparatus and method and device for reducing power consumption | |
CN101930410A (en) | Input-output control unit and electronic musical instrument | |
CN111739496A (en) | Audio processing method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180914 |
|
RJ01 | Rejection of invention patent application after publication |