Control method, electronic equipment and output equipment
By analyzing the device identifier of the audio task and output device, generating adapted audio parameters and sending them to the output device, the problem of personalized noise reduction processing for different output devices in the prior art is solved, and the audio quality improvement and system adaptability enhancement are achieved.
Patent Information
- Application Number
- CN202510239101.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-27
AI Technical Summary
In the prior art, when electronic devices perform audio tasks, personalized noise reduction processing cannot be performed on the hardware characteristics of different output devices, resulting in the audio quality not reaching the optimal performance of the output device.
By parsing the audio task and the device identification of the output device indicated in the obtained instructions, audio parameters adapted to the audio task are generated and sent to the output device to process the audio data based on the optimized audio parameters.
It realizes optimized noise reduction processing for the hardware characteristics of different output devices, improves the processing quality of audio data, and enhances the system's adaptability to different models of output devices, thereby improving the user's audio experience.
Smart Images

Figure CN120044862A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular, to a control method, an electronic device, and an output device. Background Art
[0002] When an electronic device performs an audio task, environmental noise will affect the audio quality. Existing technologies usually use preset audio parameters to perform noise reduction processing on audio data to eliminate noise. However, due to different hardware characteristics of different output devices, using preset audio parameters cannot specifically meet the noise reduction requirements of different output devices. Summary of the Invention
[0003] In view of this, the present disclosure provides a control method, an electronic device, and an output device.
[0004] According to a first aspect of the present disclosure, a control method is provided, the method comprising:
[0005] Responding to obtaining a first instruction, parsing the audio task and the device identifier of the output device indicated by the first instruction;
[0006] Generating audio parameters adapted to the audio task based on the device identifier;
[0007] Generating a second instruction based on the audio parameters;
[0008] Sending the second instruction to the output device, so that the output device processes the audio data of the audio task based on the audio parameters.
[0009] According to the embodiments of the present disclosure, the audio tasks indicated by different first instructions are different, the audio parameters adapted to different audio tasks are different, and for performing different audio tasks, the output device processes the audio data of the audio task based on the audio parameters in different ways.
[0010] According to the embodiments of the present disclosure, the method further comprises:
[0011] In the case of performing a call task, responding to obtaining a third instruction, the audio task indicated by the third instruction being a recording task;
[0012] Performing noise reduction on the audio data of the call task based on first audio parameters, the first audio parameters being audio parameters adapted to the call task;
[0013] Generating a fourth instruction for instructing the output device to switch the noise reduction parameters of the audio data from the first audio parameters to second audio parameters, the second audio parameters being audio parameters adapted to the recording task;
[0014] Send the fourth instruction to the output device.
[0015] According to an embodiment of the present disclosure, after parsing the audio task indicated by the first instruction and the device identifier of the output device, the method further includes:
[0016] Set the access permission corresponding to the device identifier to the target application;
[0017] Send the first instruction to the target application, so that the target application starts the audio task indicated by the first instruction based on the access permission.
[0018] According to an embodiment of the present disclosure, the first instruction further includes a control value, and the types of control values corresponding to different audio tasks are different, and the control value is used to indicate the execution status or execution parameters of the audio task.
[0019] According to an embodiment of the present disclosure, the method further includes:
[0020] Respond to obtaining a fifth instruction;
[0021] Parse the type of the control value corresponding to the audio task indicated by the fifth instruction;
[0022] If the type of the control value corresponding to the audio task indicated by the fifth instruction is different from the marked type, ignore the fifth instruction.
[0023] A second aspect of the present disclosure provides another control method, the method includes:
[0024] Send a first instruction to the electronic device, the first instruction is used to indicate an audio task and the device identifier of the output device;
[0025] Respond to obtaining a second instruction, the second instruction is an instruction generated by the electronic device based on audio parameters, and the audio parameters are parameters generated based on the device identifier and adapted to the audio task;
[0026] Process the audio data of the audio task based on the audio parameters indicated by the second instruction.
[0027] According to an embodiment of the present disclosure, the method further includes:
[0028] In the case of executing a call task, send a third instruction to the electronic device, the audio task indicated by the third instruction is a recording task, and is used to instruct the electronic device to perform noise reduction on the audio parameters of the call task based on the first audio parameters, and the first audio parameters are audio parameters adapted to the call task;
[0029] In response to a fourth instruction sent by the electronic device, switch the noise reduction parameter of the audio data from the first audio parameter to a second audio parameter, where the second audio parameter is an audio parameter adapted to the recording task.
[0030] A third aspect of the present disclosure provides an electronic device, including:
[0031] A communication device, configured to establish a wireless connection channel with an output device;
[0032] One or more processors, configured to, in response to obtaining a first instruction, parse the audio task and the device identifier of the output device indicated by the first instruction; generate an audio parameter adapted to the audio task based on the device identifier; generate a second instruction based on the audio parameter; and send the second instruction to the output device, so that the output device processes the audio data of the audio task based on the audio parameter.
[0033] A fourth aspect of the present disclosure provides an output device, including:
[0034] A communication device, configured to establish a wireless connection channel with an electronic device
[0035] One or more processors, configured to send a first instruction to the electronic device, where the first instruction is used to indicate an audio task and the device identifier of the output device; in response to obtaining a second instruction, where the second instruction is an instruction generated by the electronic device based on an audio parameter, and the audio parameter is generated based on the device identifier and is adapted to the audio task; and process the audio data of the audio task based on the audio parameter indicated by the second instruction.
[0036] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, the above and other objects, features, and advantages of the present disclosure will become clearer. In the drawings:
[0038] Figure 1 Schematically shows a signaling interaction diagram for performing an audio task in the related art;
[0039] Figure 2 Schematically shows a flowchart of a control method provided by an embodiment of the present disclosure;
[0040] Figure 3 Schematically shows a signaling interaction diagram corresponding to a control method provided by an embodiment of the present disclosure;
[0041] Figure 4 Schematically shows a signaling interaction diagram corresponding to another control method provided by an embodiment of the present disclosure;
[0042] Figure 5 Schematically shows a signaling interaction diagram corresponding to yet another control method provided by an embodiment of the present disclosure;
[0043] Figure 6 Schematically shows a flowchart of another control method provided by an embodiment of the present disclosure;
[0044] Figure 7 Schematically shows a block diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0045] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, obviously, one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present disclosure.
[0046] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0047] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0048] In the case of using expressions such as "at least one of A, B, and C", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0049] In the embodiments of the present disclosure, in aspects such as the collection, update, analysis, processing, use, transmission, provision, disclosure, and storage of the involved data (for example, including but not limited to user personal information), all comply with the provisions of relevant laws and regulations, are used for legal purposes, and do not violate public order and good customs. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and to safeguard user personal information security, network security, and national security.
[0050] The embodiments of the present disclosure provide a control method, an electronic device, and a control device. Before introducing the technical solutions provided by the embodiments of the present disclosure, the related technologies involved in the present disclosure will be described first.
[0051] In the related art, an output device sends control instructions for related audio tasks to an electronic device through the Audio / Video Remote Control Profile (AVRCP) protocol. The electronic device converts the instruction into a key event and distributes it to all application programs. After the application program monitors the key event, it starts recording. There are problems to be solved in many aspects in the above process.
[0052] First of all, as a general system event, a key event only contains operation information for triggering an audio task and does not carry specific information about the initiating device. When the electronic device receives a control instruction, it cannot identify which output device sent the instruction. In an application scenario where multiple output devices are connected simultaneously, the electronic device cannot associate the audio task with a specific output device.
[0053] Furthermore, since the specific output device cannot be identified, the application program cannot select appropriate audio parameters according to the hardware characteristics of different models of output devices. Different models of output devices have differences in microphone performance, audio processing capabilities, etc., and different audio parameters are required to achieve the best audio effect. However, on the premise that the output device cannot be identified, the existing technical solutions can only use preset audio parameters, resulting in the audio quality not reaching the optimal performance of the output device.
[0054] On this basis, when performing an audio task, only preset audio parameters can be used. This way of parameter reuse ignores the different requirements of different audio tasks. For example, a call may require stronger real-time performance and noise reduction effects, while recording may pay more attention to the restoration degree of sound quality. Using the same audio parameters for the output device will inevitably result in less than ideal audio effects for one or both tasks.
[0055] Figure 1 Schematically shows a signaling interaction diagram for performing an audio task in the related art. The above process includes operations S101 to S107.
[0056] Operation S101: The mobile phone simultaneously establishes wireless connection channels with the first earphone and the second earphone;
[0057] Operation S102: The mobile phone conducts a call task with the first earphone;
[0058] Operation S103: The first earphone initiates a first recording instruction through the wireless connection channel;
[0059] Operation S104: The second earphone initiates a second recording instruction through the wireless connection channel;
[0060] Operation S105: The mobile phone simultaneously responds to the first recording instruction and the second recording instruction;
[0061] Operation S106: The mobile phone cannot identify which earphone sent the recording instruction;
[0062] Operation S107: The mobile phone recording program conflicts.
[0063] It can be seen from Figure 1 that when multiple earphones simultaneously send recording instructions, since the recording instructions are converted into general key events, the mobile phone cannot distinguish the sending source of the recording instructions. This makes it impossible for the mobile phone to establish a corresponding relationship between the recording task and a specific earphone, affecting the system's management of audio tasks initiated by different earphones.
[0064] Secondly, in the case where the second earphone is performing a call task and occupying the audio channel, if an earphone initiates a recording instruction, since the mobile phone cannot identify the specific device that sent the recording instruction, it will not be able to reasonably handle the allocation of the audio channel. This may cause interference to the ongoing call task or the new recording task cannot be executed normally.
[0065] Thirdly, although the mobile phone is simultaneously connected to multiple earphones that may have different hardware characteristics, since it cannot identify the specific earphone that sent the recording instruction, the mobile phone can only adopt unified preset audio parameters for all earphones. This parameter configuration method cannot be optimized according to the characteristics of different earphones, reducing the execution effect of audio tasks.
[0066] Finally, when performing different audio tasks (such as call tasks and recording tasks) on the same earphone, since it cannot identify the specific device that initiated the task, it is also impossible to configure different audio parameters for different tasks. This way of parameter reuse ignores the specific requirements of different audio tasks, resulting in an unsatisfactory task execution effect.
[0067] Based on this, embodiments of the present disclosure provide a control method, including: in response to obtaining a first instruction, parsing the audio task and the device identifier of the output device indicated by the first instruction; generating audio parameters adapted to the audio task based on the device identifier; generating a second instruction based on the audio parameters; and sending the second instruction to the output device so that the output device processes the audio data of the audio task based on the audio parameters.
[0068] By implementing the embodiments of the present disclosure, the electronic device can parse the audio task and the device identifier of the output device from the obtained first instruction, enabling the electronic device to accurately identify the specific output device initiating the audio task, thereby breaking through the technical limitation in the prior art that only key events can be obtained and the sending source cannot be identified.
[0069] Based on this, the electronic device can generate audio parameters adapted to the audio task based on the device identifier, thereby being able to select the most suitable parameter configuration according to the hardware characteristics of different models of output devices, avoiding the limitation in the prior art that only unified preset parameters can be used.
[0070] Furthermore, the electronic device sends the second instruction generated based on the audio parameters to the output device, enabling the output device to use these optimized audio parameters to process the audio data of the audio task, thereby ensuring that the audio task is executed optimally.
[0071] The electronic device in the embodiments of the present disclosure refers to a terminal device with audio processing functions. Such electronic devices include mobile terminals such as smart phones, tablet computers, laptop computers, handheld computers, in-vehicle electronic devices, and mobile Internet devices, as well as intelligent devices such as augmented reality / virtual reality devices, robots, and wearable devices. In addition, portable computing devices such as ultra-mobile personal computers, netbooks, and personal digital assistants, as well as computing devices such as servers, network attached storage devices, and personal computers, also belong to the category of electronic devices described in the embodiments of the present disclosure. At the same time, display devices such as televisions, teller machines, and self-service terminals are also within the application scope of the embodiments of the present disclosure.
[0072] It should be noted that the devices listed above are only exemplary, and any device capable of executing the control method described in the embodiments of the present disclosure can be used as the electronic device in the embodiments of the present disclosure.
[0073] The output device in the embodiments of the present disclosure refers to a peripheral device with audio collection and / or playback functions. Such output devices include personal audio devices such as Bluetooth headsets, true wireless stereo headsets, and wired headsets, as well as speaker devices such as portable speakers, smart speakers, and car stereos. In addition, professional audio devices such as wireless microphones, conference omnidirectional microphones, and lapel microphones with audio collection functions also belong to the scope of the output devices described in the embodiments of the present disclosure. At the same time, input / output devices such as game pads, wireless keyboards, and multimedia remote controls with audio processing capabilities are also within the application scope of the embodiments of the present disclosure.
[0074] It should be noted that the devices listed above are only exemplary, and any device that can establish a wireless connection with an electronic device and execute audio tasks can be used as the output device in the embodiments of the present disclosure.
[0075] Next, Figures 2 to 6 a control method of the embodiments of the present disclosure will be described in detail.
[0076] Figure 2 A flowchart of a control method provided by the embodiments of the present disclosure is schematically shown.
[0077] As Figure 2 shown, the control method of this embodiment may include operation S201 to operation S203.
[0078] Operation S201: In response to obtaining a first instruction, parse the audio task and the device identifier of the output device indicated by the first instruction;
[0079] Operation S202: Generate audio parameters adapted to the audio task based on the device identifier;
[0080] Operation S203: Generate a second instruction based on the audio parameters;
[0081] Operation S204: Send the second instruction to the output device so that the output device processes the audio data of the audio task based on the audio parameters.
[0082] In operation S201, a wireless connection channel needs to be established first between the electronic device and the output device to achieve the transmission of control instructions and audio data. Considering that different output devices may adopt different communication protocols, the wireless connection channel in this embodiment can be established based on the Bluetooth protocol, the Wi-Fi protocol, or other short-range wireless communication protocols.
[0083] Taking the Bluetooth protocol as an example, an electronic device and an output device can establish an Asynchronous Connection-oriented Logical Transport (ACL) link and a Synchronous Connection Oriented (SCO) link through the Hands Free Profile (HFP). Among them, the ACL link is used as a control link to transmit control instructions. This link has a high transmission rate but low latency requirements and is suitable for transmitting communication commands. The SCO link is used as an audio link to transmit audio data. This link has high latency requirements and is suitable for the real-time transmission of call audio data. It should be noted that since only one connection can be established on the SCO link at the same time, in the scenario where multiple output devices are connected simultaneously, the allocation of the SCO link needs to be reasonably managed.
[0084] In addition, the electronic device and the output device can also establish an audio transmission channel based on the ACL link through the Advanced Audio Distribution Profile (A2DP) for transmitting high-quality audio data. This link has a high transmission rate and is suitable for transmitting multimedia audio data.
[0085] After establishing the wireless connection channel, the first instruction refers to the control instruction sent by the output device to the electronic device through this wireless connection channel. In the embodiments of the present disclosure, it can be understood as an AT command defined based on the extended Hands Free Profile (HFP) protocol. This AT command carries audio task information and device identification information of the output device. This first instruction is used to indicate to the electronic device the audio task that needs to be executed and the specific output device that initiates this audio task.
[0086] Among them, the audio task refers to an operation that the output device needs to perform and involves audio data processing. In the embodiments of the present disclosure, it can be understood as the task type of transmitting and processing audio data through the wireless connection channel. This audio task is used to determine the processing method of audio data and the corresponding audio parameter configuration.
[0087] Exemplarily, the audio tasks include but are not limited to: call tasks, recording tasks, music playback tasks, speech recognition tasks, video call tasks, audio conference tasks, game voice tasks, etc. Among them, the call task involves the collection and transmission of real-time audio data; the recording task involves the collection and storage of high-fidelity audio data; the music playback task involves the decoding and playback of audio data; the speech recognition task involves the semantic analysis of audio data; the video call task involves the synchronous processing of audio and video data; the audio conference task involves the mixing processing of multiple audio data; the game voice task involves the transmission of low-latency audio data, etc.
[0088] It should be noted that the above-listed audio tasks are only exemplary, and any operations involving audio data acquisition, transmission, processing, or playback can be used as the audio tasks in the embodiments of the present disclosure. Different audio tasks may require different audio parameter configurations to meet their specific performance requirements.
[0089] Meanwhile, the device identifier of the output device refers to the identity information used to uniquely identify the output device. In the embodiments of the present disclosure, it can be understood as the hardware serial number preset when the output device leaves the factory, the MAC address of the Bluetooth device, the device ID assigned by the system, or the device name customized by the user, etc. This device identifier is used in the scenario where multiple output devices are connected simultaneously, enabling the electronic device to accurately identify the specific output device that initiates the audio task and accordingly select the audio parameters adapted to this output device.
[0090] It should be noted that the above-listed forms of device identifiers are only exemplary, and any identifier information that can uniquely distinguish different output devices in the multi-device connection scenario can be used as the device identifier in the embodiments of the present disclosure.
[0091] In operation S202, the audio parameters refer to the various configuration information used to control the audio data processing process. In the embodiments of the present disclosure, it can be understood as the noise reduction processing parameters for the output device, including but not limited to: parameter values such as the environmental noise suppression coefficient, the echo cancellation threshold, and the speech enhancement ratio. The audio parameters are used to guide the output device to perform noise reduction processing on the collected audio data, thereby improving the audio quality.
[0092] Specifically, when implementing, the electronic device determines the specific output device model that initiates the audio task through the parsed device identifier, and generates the audio parameters adapted to the audio task according to the hardware characteristics of this model.
[0093] Among them, different models of output devices have differences in audio acquisition and processing capabilities. For example, performance indicators such as the sensitivity, signal-to-noise ratio, and frequency response of the microphone may all be different. In order to fully utilize the hardware performance of each output device, appropriate audio parameters need to be configured for it.
[0094] In a feasible implementation manner, the electronic device can locally store the parameter configuration templates of different models of output devices. When the specific output device is identified, the audio parameters adapted to the current audio task are selected from the corresponding template. Each parameter configuration template contains the hardware characteristic information of the output device of this model and the corresponding optimal audio parameter configuration. These templates can be preset at the factory or optimized through online updates.
[0095] In another feasible implementation, the electronic device can obtain audio parameters from the cloud server according to the device identifier. The cloud server stores richer parameter configuration data and can continuously optimize the parameter configuration based on the usage data of a large number of users. After the electronic device sends the device identifier to the cloud server, the server returns the optimized audio parameters for the output device of this model.
[0096] In yet another feasible implementation, the electronic device can dynamically generate audio parameters through an AI algorithm. The AI algorithm automatically adjusts the noise reduction parameters to adapt to the current usage environment and scenario by analyzing the audio data characteristics of the output device in real time and combining the basic parameter configuration corresponding to the device identifier.
[0097] In operation S203, the second instruction refers to the control instruction sent by the electronic device to the output device for configuring audio parameters. In the embodiments of the present disclosure, it can be understood as an AT command defined based on the extended HFP protocol. This AT command includes audio parameter configuration information and related control identifiers. These AT commands are used to instruct the output device to process audio data using specific audio parameters. The configuration information of the audio parameters includes parameter types, parameter values, control identifiers, etc. It should be noted that the AT command is only an exemplary implementation method, and any control instruction capable of transmitting audio parameter configuration information can be used as the second instruction in the embodiments of the present disclosure.
[0098] In operation S204, the electronic device sends the second instruction to the output device through the established wireless connection channel. Since the second instruction contains the optimized audio parameters, after receiving the instruction, the output device can configure its audio processing module according to the parameter types and parameter values in the instruction. The output device will perform processing such as environmental noise suppression and echo cancellation on the collected audio data based on the audio parameters.
[0099] Exemplarily, in the implementation method based on the HFP protocol, the electronic device sends the second instruction in the format of an AT command to the output device through the SCO link. After the output device parses the AT command, it can obtain the specific audio parameter configuration. Through the above audio parameter distribution mechanism, the output device can use the audio parameters most suitable for its hardware characteristics to process audio data, thereby obtaining the best noise reduction effect when performing audio tasks.
[0100] On the basis of Figure 2 , please refer to Figure 3 , Figure 3 which schematically shows a signaling interaction diagram corresponding to a control method provided by the embodiments of the present disclosure. As Figure 3 shown, this signaling interaction can include operation S301 to operation S310.
[0101] Operation S301, the electronic device establishes a wireless connection channel with the output device;
[0102] Operation S302, the output device sends a first instruction to the electronic device through the wireless connection channel;
[0103] Operation S303, the electronic device responds to obtain the first instruction and parses the audio task and the device identifier of the output device indicated by the first instruction;
[0104] Operation S304, the electronic device generates audio parameters adapted to the audio task based on the device identifier;
[0105] Operation S305, the electronic device generates a second instruction based on the audio parameters;
[0106] Operation S306, the electronic device sends the second instruction to the output device through the wireless connection channel;
[0107] Operation S307, the output device responds to obtain the second instruction;
[0108] Operation S308, the electronic device starts the audio task;
[0109] Operation S309, the electronic device establishes an audio channel with the output device;
[0110] Operation S310, the output device processes the audio data of the audio task based on the audio parameters indicated by the second instruction.
[0111] By implementing the embodiments of the present disclosure, the electronic device can generate audio parameters adapted to the audio task based on the device identifier of the output device, breaking through the technical limitation that the output device can only use general preset parameters in the prior art, improving the processing quality of audio data, enhancing the adaptability of the system to different models of output devices, and thus enhancing the user's audio experience.
[0112] In practical applications, the output device may need to execute various different types of audio tasks, such as call tasks and recording tasks, etc. Due to the differences in their application scenarios and performance requirements, different audio tasks need to use different audio parameters to process audio data. For example, call tasks require stronger real-time performance and noise reduction effects to ensure the clarity of speech during a call; while recording tasks pay more attention to the restoration of sound quality and need to retain the detailed information of the audio while reducing noise. Therefore, the electronic device needs to configure differentiated audio parameters for the output device according to the specific audio task type indicated by the first instruction.
[0113] Based on the above embodiments, as an alternative embodiment, the audio tasks indicated by different first instructions are different, the audio parameters adapted to different audio tasks are different, and for performing different audio tasks, the output device processes the audio data of the audio task based on the audio parameters in different ways.
[0114] In a feasible implementation manner, the electronic device and the output device can execute an audio task simultaneously. For example, in a call task, noise reduction processing can be selected to be performed by the electronic device or the output device. When the electronic device performs noise reduction, the output device is only responsible for collecting and transmitting the original audio data; when the output device performs noise reduction, the electronic device is only responsible for receiving and playing the audio data.
[0115] The above processing method of single-ended noise reduction avoids the problems of audio distortion and echo that may be caused by double noise reduction. In the recording task, the noise reduction processing is only performed by the output device, and the electronic device is only responsible for receiving and storing the processed audio data, so as to ensure the restoration degree of the recorded audio.
[0116] In another feasible implementation manner, the electronic device and the output device can execute multiple audio tasks simultaneously. For example, when a recording task is executed during a call, the noise reduction processing of the call task is performed by the electronic device, while the noise reduction processing of the recording task is performed by the output device. Through this task allocation mechanism, the problem of repeated noise reduction processing of the same audio data is avoided, and at the same time, it is ensured that different audio tasks can obtain the best noise reduction effect.
[0117] In yet another feasible implementation manner, multiple output devices can be connected to the electronic device simultaneously and execute different audio tasks. At this time, the electronic device will configure independent audio parameters for each output device according to the device identifier of each output device, and clarify the execution end of the noise reduction processing to avoid repeated processing. The above way of multiple output devices working together can thus reasonably allocate audio processing tasks.
[0118] In an actual application scenario, the user may need to execute a recording task during a call. Since there are differences in the requirements for audio processing between the call task and the recording task, if the same audio parameters are used for processing, the execution effect of a certain task may be affected. To solve this problem, this embodiment provides a control method for executing a recording task during a call.
[0119] Based on the above embodiments, as an alternative embodiment, the control method may further include the following operations:
[0120] Operation S401, in the case of executing a call task, in response to obtaining a third instruction, the audio task indicated by the third instruction is a recording task;
[0121] Operation S402, performing noise reduction on audio data of a call task based on a first audio parameter, where the first audio parameter is an audio parameter adapted for the call task;
[0122] Operation S403, generating a fourth instruction, the fourth instruction is used to instruct the output device to switch the noise reduction parameter of the audio data from the first audio parameter to the second audio parameter, the second audio parameter being an audio parameter adapted for the recording task;
[0123] Operation S404: sending a fourth instruction to an output device.
[0124] In operation S401, the output device can send a third instruction to the electronic device through the wireless connection channel while executing the call task. The third instruction is based on the extended HFP protocol definition and is used to indicate to the electronic device that a recording task needs to be performed. Similar to the first instruction, the third instruction also contains audio task information and device identification information of the output device, so that the electronic device can accurately identify the specific output device that initiated the recording request. When the electronic device responds to the third instruction, it can be determined by parsing the instruction content that a new recording task needs to be added on the basis of the call task.
[0125] In operation S402, the first audio parameter refers to a set of noise reduction processing parameters optimized specifically for electronic devices and call tasks. In the disclosed embodiment, it can be understood as a noise reduction parameter configuration adapted to the call scenario executed by the electronic device. The first audio parameter is used to guide the electronic device to perform real-time noise reduction processing on the collected call audio data.
[0126] In operation S403, the fourth instruction refers to a control instruction for switching audio parameters sent by the electronic device to the output device. In the embodiment of the present disclosure, it can be understood as an AT command defined based on the extended HFP protocol, and the AT command contains switching information of noise reduction parameters, including but not limited to: original parameter identification, target parameter identification, switching timing and other control data. The fourth instruction is used to instruct the output device to switch the noise reduction parameters of the audio data from the first audio parameter adapted for the call task to the second audio parameter adapted for the recording task.
[0127] Similarly, the second audio parameter refers to a set of noise reduction processing parameters optimized specifically for the output device and the recording task. In the disclosed embodiment, it can be understood as a noise reduction parameter configuration adapted to the recording scene executed by the output device. The second audio parameter is used to guide the output device to perform noise reduction processing on the collected recording audio data.
[0128] On this basis, please refer to Figure 4 , Figure 4 FIG. 2 schematically shows a signaling interaction diagram corresponding to another control method provided in an embodiment of the present disclosure. Figure 4As shown, the signaling interaction may include operations S404 to S412.
[0129] Operation S404, the electronic device conducts a call task with the output device through an audio link;
[0130] Operation S405, the output device reduces the noise of the audio data of the call task using the first audio parameter;
[0131] Operation S406, the output device sends a third instruction to the electronic device through a wireless connection channel, and the audio task indicated by the third instruction is a recording task;
[0132] Operation S407, the electronic device responds to obtain the third instruction;
[0133] Operation S408, the electronic device reduces the noise of the audio parameter of the call task based on the first audio parameter;
[0134] Operation S409, the electronic device generates a fourth instruction;
[0135] Operation S410, the electronic device sends the fourth instruction to the output device through a wireless connection channel;
[0136] Operation S411, the output device responds to the fourth instruction;
[0137] Operation S412, the output device switches the noise reduction parameter of the recording task from the first audio parameter to the second audio parameter.
[0138] By implementing the embodiments of the present disclosure, the electronic device uses the first audio parameter to reduce the noise of the audio data of the call task. This parameter is specifically optimized for the processing ability of the electronic device and the call scenario, and can effectively eliminate environmental noise and echo during the call, ensuring the real-time performance and clarity of the call. At the same time, the noise reduction parameter of the output device is switched from the first audio parameter to the second audio parameter through the fourth instruction, enabling the output device to use the noise reduction parameter adapted to its hardware characteristics and recording requirements to process the recorded audio data, thereby retaining more audio detail information while reducing noise and improving the reduction degree of the recording.
[0139] The above-mentioned differential noise reduction scheme based on device characteristics and task requirements gives full play to the processing advantages of the electronic device in call noise reduction and the hardware characteristics of the output device in recording noise reduction, enabling the system to ensure the optimal audio effects of both the call and recording tasks simultaneously, thereby enhancing the user experience in multi-task scenarios.
[0140] In practical application scenarios, in order to ensure the security and controllability of audio tasks, it is necessary to manage the permissions of application programs that can respond to control instructions sent by output devices. After the electronic device parses out the device identifier, the access permission corresponding to the identifier needs to be assigned to the specified target application program, so that only the authorized application program can execute the corresponding audio task.
[0141] Based on the above embodiments, as an alternative embodiment, the above control method may further include the following operations:
[0142] Operation S501, set the access permission corresponding to the device identifier to the target application program;
[0143] Operation S502, send the first instruction to the target application program, so that the target application program starts the audio task indicated by the first instruction based on the access permission.
[0144] Among them, the target application program refers to the application software running on the electronic device and used to process specific audio tasks. In the embodiments of the present disclosure, it can be understood as a dedicated application program pre-installed on the electronic device and optimized for different audio tasks, such as a call application program for call tasks, a recording application program for recording tasks, a multimedia application program for music playback, etc. The target application programs are respectively used to receive, process, and start their corresponding audio tasks, and perform corresponding operations such as acquisition, processing, and storage of audio data according to the task type.
[0145] In a feasible implementation manner, different target application programs can listen to and respond to control instructions sent by the output device by registering a system broadcast receiver, and determine whether to execute the audio task indicated by the instruction according to the obtained access permission. For example, when the output device sends a recording instruction, the recording application program will verify whether it has the access permission to this device, and only start the recording task when the permission verification passes.
[0146] In another feasible implementation manner, the electronic device can allocate access permissions based on the functional characteristics of the application program. For example, application programs with professional audio processing capabilities are granted higher-level access permissions, enabling them to respond to more types of audio tasks; while for basic audio application programs, their execution of simple audio tasks is restricted.
[0147] In yet another feasible implementation manner, the electronic device can select a suitable target application program according to the model of the output device. For example, for output devices that support advanced audio functions, the system will direct their control instructions to professional application programs with corresponding processing capabilities; while for basic model output devices, the system default audio application program is preferentially selected to process their audio tasks.
[0148] In yet another feasible embodiment, the electronic device can dynamically manage the access permissions of target applications. When a new output device is detected to be connected, the system will automatically scan the applications installed on the device and allocate corresponding access permissions according to the declared functional characteristics and processing capabilities of the applications. This dynamic authorization mechanism ensures that the new device can quickly establish an association with the appropriate application, improving the scalability and usability of the system.
[0149] By implementing the embodiments of the present disclosure, the electronic device can set the access permissions corresponding to the device identifier to the target application, establishing a corresponding relationship between the output device and the application. This permission-based access control mechanism ensures that only authorized applications can respond to the control instructions of specific output devices, avoiding the situation where unauthorized applications intercept and process control instructions, and enhancing the security of audio task execution.
[0150] At the same time, since different audio tasks can be processed by dedicated target applications, the system can select the most suitable application to execute the audio task according to the task type, giving full play to the advantages of each application in a specific audio processing field.
[0151] In an actual application scenario, a call task may need to control the on / off state of the microphone, and a recording task may also need to set parameters such as the sampling rate and bit rate. To achieve this differential task control, a control value is added to the first instruction in this embodiment.
[0152] Based on the above embodiments, as an optional embodiment, the first instruction further includes a control value, and the types of control values corresponding to different audio tasks are different. The control value is used to indicate the execution status or execution parameters of the audio task.
[0153] Among them, the control value refers to the configuration data used to control and adjust the execution process of the audio task. In the embodiments of the present disclosure, it can be understood as the AT command format control field embedded in the first instruction. The control value is used to transmit the execution status or execution parameter information of the audio task to the electronic device, enabling the electronic device to adjust the operation of the audio task according to this information.
[0154] To achieve precise control of the audio task, the control value mainly includes two types of information: execution status and execution parameters. Among them, the execution status of the audio task refers to the working status identifier during the task operation. In the embodiments of the present disclosure, it can be understood as a Boolean type value that controls the state transitions such as starting, pausing, resuming, or stopping of the audio task.
[0155] For example, the recording task is started by the instruction "AT+MOTOROLA=RECORD=1".
[0156] Corresponding to the execution state are the execution parameters of the audio task, which refer to the specific configuration parameters that affect the audio data processing effect. In the embodiments of the present disclosure, it can be understood as a numerical type value that controls various technical indicators during the audio acquisition, processing, and playback processes.
[0157] For example, the volume size is set through the instruction "AT+MOTOROLA=VOLUME=5";
[0158] The noise reduction level is set through the instruction "AT+MOTOROLA=NOISE=3".
[0159] Due to the differences in their characteristics and requirements, different audio tasks require different combinations of execution states and execution parameters. For example, the control values for a call task need to include, but are not limited to: call status, volume size, noise reduction level, etc., to ensure call quality; the control values for a recording task include, but are not limited to: recording status, sampling rate, bit depth, number of channels, etc., to ensure recording effect; the control values for a music playback task mainly include playback status, volume size, equalizer parameters, etc., to optimize the playback experience.
[0160] Furthermore, the first instruction can adopt a fixed AT command format to ensure the standardization and parsability of the instruction. Such as the form of "AT+MOTOROLA=TASK=VALUE".
[0161] Among them, "AT+" is used as a command prefix to identify the instruction type, "MOTOROLA" is used as a manufacturer identifier to distinguish different device manufacturers, the "TASK" field represents the specific audio task type, and the "VALUE" field carries the corresponding control value information. This unified instruction format facilitates the electronic device to perform instruction parsing and processing, and at the same time provides a standard instruction interface for output devices of different manufacturers.
[0162] On this basis, as an optional embodiment, the control method may further include the following operations:
[0163] Operation S501, responding to obtaining the fifth instruction;
[0164] Operation S502, parsing the type of the control value corresponding to the audio task indicated by the fifth instruction;
[0165] Operation S503, if the type of the control value corresponding to the audio task indicated by the fifth instruction is different from the marked type, then ignore the fifth instruction.
[0166] In specific implementation, after receiving the fifth instruction, the electronic device first analyzes the type of control value corresponding to the audio task indicated by the instruction, and compares it with the preset marker type. When it is found that the control value type does not match the marker type, the electronic device will directly ignore the instruction to avoid executing an audio task that does not meet expectations.
[0167] On this basis, please refer to Figure 5 , Figure 5 which schematically shows a signaling interaction diagram corresponding to another control method provided by an embodiment of the present disclosure. As Figure 4 shown, the signaling interaction may include operations S504 to S514.
[0168] Operation S504, the electronic device establishes a wireless connection channel with the first output device and the second output device respectively;
[0169] Operation S505, the first output device initiates the fifth instruction through the wireless connection channel;
[0170] Operation S506, the electronic device responds to obtain the fifth instruction and analyzes the type of control value corresponding to the audio task indicated by the fifth instruction;
[0171] Operation S507, the electronic device determines that the type of control value corresponding to the audio task indicated by the fifth instruction is different from the marker type and ignores the fifth instruction;
[0172] Operation S508, the second output device initiates the fifth instruction through the wireless connection channel;
[0173] Operation S509, the electronic device responds to obtain the fifth instruction and analyzes the type of control value corresponding to the audio task indicated by the fifth instruction;
[0174] Operation S510, the electronic device determines that the type of control value corresponding to the audio task indicated by the fifth instruction is the same as the marker type and responds to the fifth instruction;
[0175] Operation S511, the electronic device analyzes the recording task and the device identifier of the output device indicated by the first instruction;
[0176] Operation S512, the electronic device sets the access permission corresponding to the device identifier to the recording application;
[0177] Operation S513, the electronic device sends the fifth instruction to the recording application;
[0178] Operation S514, the recording application of the electronic device starts the audio task indicated by the fifth instruction based on the access permission.
[0179] By implementing the embodiments of the present disclosure, interference of abnormal instructions or illegal instructions to the system is effectively prevented. When the system is executing a specific audio task, irrelevant instructions sent by other devices can be filtered out through the check of the control value type, ensuring the normal progress of the current task.
[0180] Meanwhile, this instruction verification method also provides a reliable control means for multi-device collaborative work, enabling the system to accurately identify and respond to control instructions of specific devices, and improving the stability and reliability of audio task execution.
[0181] Figure 6 The flowchart of another control method provided by the embodiments of the present disclosure is schematically shown.
[0182] As Figure 6 shown, the control method of this embodiment may include operation S601 to operation S603.
[0183] Operation S601, sending a first instruction to the electronic device, the first instruction being used to indicate the audio task and the device identifier of the output device;
[0184] Operation S602, responding to obtain a second instruction, the second instruction being an instruction generated by the electronic device based on audio parameters, the audio parameters being parameters generated based on the device identifier and adapted to the audio task;
[0185] Operation S603, processing the audio data of the audio task based on the audio parameters indicated by the second instruction.
[0186] On the basis of the above embodiments, as an optional embodiment, the above control method may further include the following operations:
[0187] Operation S604, in the case of executing a call task, sending a third instruction to the electronic device, the audio task indicated by the third instruction being a recording task, for instructing the electronic device to perform noise reduction on the audio parameters of the call task based on the first audio parameters, the first audio parameters being audio parameters adapted to the call task;
[0188] Operation S605, responding to the fourth instruction sent by the electronic device, switching the noise reduction parameters of the audio data from the first audio parameters to the second audio parameters, the second audio parameters being audio parameters adapted to the recording task.
[0189] It should be noted that the execution subject of the above operations S601 to S605 is the output device. When implementing the control method, its basic implementation principle and process are generally the same as those of the electronic device, and the relevant embodiments with the electronic device as the execution subject in the above embodiments can be referred to.
[0190] The embodiments of the present disclosure also disclose an electronic device, including:
[0191] A communication device for establishing a wireless connection channel with an output device;
[0192] One or more processors for responding to obtaining a first instruction, parsing the audio task and the device identifier of the output device indicated by the first instruction; generating audio parameters adapted to the audio task based on the device identifier; generating a second instruction based on the audio parameters; and sending the second instruction to the output device so that the output device processes the audio data of the audio task based on the audio parameters.
[0193] Based on the above embodiments, as an optional embodiment, the processor is further configured to, when executing a call task, respond to obtaining a third instruction, and the audio task indicated by the third instruction is a recording task;
[0194] Perform noise reduction on the audio data of the call task based on the first audio parameter, where the first audio parameter is the audio parameter adapted to the call task;
[0195] Generate a fourth instruction for instructing the output device to switch the noise reduction parameter of the audio data from the first audio parameter to the second audio parameter, where the second audio parameter is the audio parameter adapted to the recording task;
[0196] Send the fourth instruction to the output device.
[0197] Based on the above embodiments, as an optional embodiment, the processor is further configured to set the access permission corresponding to the device identifier to a target application;
[0198] Send the first instruction to the target application so that the target application starts the audio task indicated by the first instruction based on the access permission.
[0199] Based on the above embodiments, as an optional embodiment, the processor is further configured to respond to obtaining a fifth instruction;
[0200] Parse the type of the control value corresponding to the audio task indicated by the fifth instruction;
[0201] If the type of the control value corresponding to the audio task indicated by the fifth instruction is different from the marked type, then ignore the fifth instruction.
[0202] The embodiments of the present disclosure also disclose an output device, including:
[0203] A communication device for establishing a wireless connection channel with an electronic device
[0204] One or more processors for sending a first instruction to an electronic device, the first instruction being used to indicate an audio task and the device identifier of an output device; in response to obtaining a second instruction, the second instruction being an instruction generated by the electronic device based on audio parameters, the audio parameters being parameters generated based on the device identifier and adapted to the audio task; and processing audio data of the audio task based on the audio parameters indicated by the second instruction.
[0205] Based on the above embodiments, as an alternative embodiment, the processor is further configured to, when executing a call task, send a third instruction to the electronic device, the audio task indicated by the third instruction being a recording task, for instructing the electronic device to perform noise reduction on the audio parameters of the call task based on first audio parameters, the first audio parameters being audio parameters adapted to the call task;
[0206] In response to a fourth instruction sent by the electronic device, switch the noise reduction parameter of the audio data from the first audio parameters to second audio parameters, the second audio parameters being audio parameters adapted to the recording task.
[0207] Figure 7 Schematically shows a block diagram of an electronic device provided by an embodiment of the present disclosure. Figure 7 The shown electronic device is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.
[0208] As Figure 7 shown, the electronic device 700 according to an embodiment of the present disclosure includes a communication device (not shown in the figure), a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a memory 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), and so on. The processor 701 may further include on-board memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present disclosure.
[0209] In the RAM 703, various programs and data required for the operation of the electronic device 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. The processor 701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 702 and / or the RAM 703. It should be noted that the program can also be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 can also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.
[0210] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, and the input / output (I / O) interface 705 is also connected to the bus 704. The system 700 may further include one or more of the following components connected to the input / output (I / O) interface 705: an input device 706 including a keyboard, a mouse, etc.; an output device 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), a display screen, etc. and a speaker, etc.; a memory 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output (I / O) interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read from it can be installed into the memory 708 as needed.
[0211] According to an embodiment of the present disclosure, the method flow according to the embodiments of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system according to the embodiments of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described system, device, apparatus, module, unit, etc. can be implemented by computer program modules.
[0212] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the methods according to the embodiments of the present disclosure are implemented.
[0213] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
[0214] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the above-described ROM 702 and / or RAM 703 and / or one or more memories other than ROM 702 and RAM 703.
[0215] Embodiments of the present disclosure also include a computer program product, which includes a computer program containing program code for executing the methods provided by the embodiments of the present disclosure. When the computer program product runs on an electronic device, the program code is used to cause the electronic device to implement the methods provided by the embodiments of the present disclosure.
[0216] When the computer program is executed by the processor 701, the above functions defined in the system / apparatus of the embodiments of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described systems, apparatuses, modules, units, etc. may be implemented by computer program modules.
[0217] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code included in the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0218] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments and / or claims of the present disclosure may be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure may be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.
[0219] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present disclosure.
Claims
1. A control method, the method comprising: In response to obtaining the first instruction, parsing the audio task and device identification of the output device indicated by the first instruction; Generate an audio parameter adapted to the audio task based on the device identifier; generating a second instruction based on the audio parameter; The second instruction is sent to the output device, so that the output device processes the audio data of the audio task based on the audio parameters.
2. The method according to claim 1, wherein: Different first instructions indicate different audio tasks, different audio tasks are adapted to different audio parameters, and when executing different audio tasks, the output device processes the audio data of the audio tasks in different ways based on the audio parameters.
3. The method according to claim 2, further comprising: In the case of executing a call task, in response to obtaining a third instruction, the audio task indicated by the third instruction is a recording task; Performing noise reduction on the audio data of the call task based on a first audio parameter, where the first audio parameter is an audio parameter adapted to the call task; Generate a fourth instruction, the fourth instruction is used to instruct the output device to switch the noise reduction parameter of the audio data from the first audio parameter to a second audio parameter, where the second audio parameter is an audio parameter adapted to the recording task; The fourth instruction is sent to the output device.
4. The method according to any one of claims 1 to 3, after parsing the audio task indicated by the first instruction and the device identification of the output device, further comprising: Set the access rights corresponding to the device identification to the target application; The first instruction is sent to the target application, so that the target application starts the audio task indicated by the first instruction based on the access permission.
5. According to the method according to any one of claims 1-3, the first instruction also includes a control value, different audio tasks correspond to different types of control values, and the control value is used to indicate the execution state or execution parameters of the audio task.
6. The method according to claim 5, further comprising: Responding to obtaining a fifth instruction; parsing the type of the control value corresponding to the audio task indicated by the fifth instruction; If the type of the control value corresponding to the audio task indicated by the fifth instruction is different from the tag type, the fifth instruction is ignored.
7. A control method, the method comprising: Sending a first instruction to the electronic device, wherein the first instruction is used to indicate an audio task and a device identifier of the output device; In response to obtaining a second instruction, the second instruction is an instruction generated by the electronic device based on an audio parameter, and the audio parameter is a parameter generated based on the device identification and adapted to the audio task; The audio data of the audio task is processed based on the audio parameters indicated by the second instruction.
8. The method according to claim 7, further comprising: In the case of executing a call task, sending a third instruction to the electronic device, where the audio task indicated by the third instruction is a recording task, and is used to instruct the electronic device to perform noise reduction on the audio parameters of the call task based on the first audio parameters, where the first audio parameters are audio parameters adapted to the call task; In response to a fourth instruction sent by the electronic device, a noise reduction parameter of the audio data is switched from the first audio parameter to a second audio parameter, where the second audio parameter is an audio parameter adapted to the recording task.
9. An electronic device, comprising: A communication device, used to establish a wireless connection channel with an output device; One or more processors, configured to, in response to obtaining a first instruction, parse the audio task and device identification of the output device indicated by the first instruction; Generate an audio parameter adapted to the audio task based on the device identifier; generate a second instruction based on the audio parameter; and send the second instruction to the output device so that the output device processes the audio data of the audio task based on the audio parameter.
10. An output device comprising: Communication device, used to establish a wireless connection channel with electronic equipment One or more processors, configured to send a first instruction to an electronic device, wherein the first instruction is configured to indicate an audio task and a device identification of the output device; In response, a second instruction is obtained, where the second instruction is an instruction generated by the electronic device based on audio parameters, where the audio parameters are parameters generated based on the device identification and adapted to the audio task; and the audio data of the audio task is processed based on the audio parameters indicated by the second instruction.
Citation Information
Cited By
Multimedia communication method and communication device
CN121984950A