Processing method and processing device
By obtaining the interference signal strength when the electronic device transmits audio, dynamically adjusting the audio encoding rate, the problem of the inability to adjust the encoding rate according to environmental changes in the prior art is solved, and the stability and quality of audio transmission are improved.
Patent Information
- Application Number
- CN202411748562.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-18
AI Technical Summary
The prior art cannot dynamically adjust the encoding rate according to environmental changes in the audio transmission of electronic devices, resulting in the impact of the stability and quality of the audio transmission.
By obtaining the interference signal strength between the target electronic device and the target output module, the audio encoding rate is intelligently adjusted to adapt to environmental changes.
It realizes dynamic adjustment of audio encoding rate according to environmental interference, improves the stability and quality of audio transmission, and ensures a high-quality audio experience under different environmental conditions.
Smart Images

Figure CN119649830A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to but is not limited to the field of computer technology, and in particular to a processing method and a processing device. Background Art
[0002] In the related art, regardless of whether the electronic device supports a high encoding rate, the audio is adjusted at a fixed encoding rate by default. When the environment in which the electronic device is located changes, it is impossible to set a suitable encoding rate according to the environmental changes. Summary of the invention
[0003] In view of this, the embodiments of the present application at least provide a processing method and a processing device.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a processing method, the method comprising: if the target audio output by the target electronic device through the target output module meets the audio condition, in response to a change in the environment in which the target connection between the target electronic device and the target output module is located, obtaining the interference signal strength of the target audio transmitted by the target electronic device to the target output module; based on the interference signal strength, adjusting the audio coding rate of the target audio transmitted between the target electronic device and the target output module; the audio coding rate represents the amount of audio information contained in the target audio transmitted per unit time; wherein, the target output module and the target electronic device are connected via a wireless channel.
[0006] In a second aspect, an embodiment of the present application provides a processing device, the device comprising:
[0007] A first acquisition module is configured to acquire, if the target audio output by the target electronic device through the target output module meets the audio condition, in response to a change in the environment where the target connection between the target electronic device and the target output module is located, an interference signal strength of the target audio transmitted by the target electronic device to the target output module;
[0008] An adjustment module, configured to adjust an audio coding rate of the target audio transmitted between the target electronic device and the target output module based on the interference signal strength; the audio coding rate represents an amount of audio information contained in the target audio transmitted per unit time;
[0009] Wherein, the target output module is connected to the target electronic device via a wireless channel.
[0010] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0012] Figure 1 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 1 ;
[0013] Figure 2 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 2 ;
[0014] Figure 3 A schematic diagram of an implementation flow of a method for adaptive high-resolution encoding and decoding rate based on environmental interference provided in an embodiment of the present application;
[0015] Figure 4 A schematic diagram of the structure of a processing device provided in an embodiment of the present application;
[0016] Figure 5 A hardware entity schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0018] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0019] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are merely to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0020] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the general understanding of those skilled in the art in the field to which the embodiments of the present application belong. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0021] In the related art, regardless of whether the electronic device supports a high coding rate, the audio will be adjusted at a fixed coding rate by default. When the environment in which the electronic device is located changes, it is impossible to set a suitable coding rate according to the environmental changes. For example, when a Bluetooth headset is set to high-resolution mode, it will be able to improve the sound quality at a higher coding rate (e.g., 192Khz / 900Kbps). However, even if the Bluetooth headset supports a coding rate of 192Khz / 900Kbps (i.e., the above-mentioned audio coding rate), the mobile phone will still select a lower coding rate (e.g., 48Khz / 500Kbps) by default, thereby affecting the stability and quality of audio transmission.
[0022] The embodiment of the present application provides a processing method, according to the interference signal strength under the change of the environment in which the target electronic device and the target output module are connected, the audio coding rate of the target audio transmitted between the target electronic device and the target output module is intelligently adjusted. For example, in an environment where the interference signal strength is small, the audio coding rate can be appropriately increased to transmit more audio information; and in an environment where the interference signal strength is large, the audio coding rate can be reduced to ensure the continuity and audibility of the audio. The method provided by the embodiment of the present application can be performed by an electronic device, wherein the electronic device can be a laptop, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other various types of terminals, and can also be implemented as a server. The server can be an independent physical server, or a server cluster or distributed electronic device composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0023] Figure 1 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 1 ,like Figure 1 As shown, the processing method includes the following steps S101 to S102, wherein:
[0024] Step S101, if the target audio output by the target electronic device through the target output module meets the audio condition, in response to a change in the environment in which the target connection between the target electronic device and the target output module is located, obtaining the interference signal strength of the target audio transmitted by the target electronic device to the target output module;
[0025] Here, the target electronic device can be an electronic device that generates and transmits the target audio, for example, a smart phone, a tablet computer, a desktop computer, a music player, etc. The target electronic device usually has a wireless audio transmission function, and the target audio can be sent to other devices. The target output module can be a wireless audio receiving device that receives and plays the target electronic device, for example, a Bluetooth headset, a wireless speaker, etc. Since the target output module is connected to the target electronic device via a wireless channel, the target electronic device can transmit the target audio to the target output module via a wireless channel (for example, Bluetooth, WiFi, etc.).
[0026] Here, the target audio may be audio generated by the target electronic device and intended to be played through the target output module. The target audio may be any type of audio content, such as music, voice calls, video sounds, etc. The audio condition may be a series of requirements or standards that the target audio needs to meet. The audio condition may involve multiple aspects such as sound quality, format, volume, etc. Only audio that meets these conditions will be considered as the target audio.
[0027] Here, the change in the environment of the target connection between the target electronic device and the target output module may be the physical movement of the target electronic device, the physical movement of the target output module, the addition of other devices wirelessly connected to the target electronic device, etc.
[0028] In some embodiments, the interference signal strength may be a measure of the interference from the surrounding environment when the target audio is wirelessly transmitted between the target electronic device and the target output module. For example, the interference signal strength of the target audio transmitted from the target electronic device to the target output module may come from factors such as a change in the distance between the target electronic device and the target output module, and the emergence of a new wireless interference source in the surrounding area.
[0029] Next, the target electronic device is a smart phone and the target output module is a Bluetooth headset.
[0030] In some embodiments, when a smartphone outputs music that meets the audio condition through a Bluetooth headset, if the smartphone moves from indoors to outdoors, the electronic device detects that the environment in which the target connection between the smartphone and the Bluetooth headset is located has changed, and in response to the environmental change, obtains the interference signal strength encountered when the smartphone transmits music to the Bluetooth headset. This interference signal strength reflects the interference level in the current wireless transmission environment and is an important basis for determining whether it is necessary to adjust the audio coding rate of the target audio transmitted between the target electronic device and the target output module in the future.
[0031] It should be noted that for the same target output module, if the reasons for the change in the target connection environment between the target electronic device and the target output module are different, the resulting interference signal strength will also be different. That is, when the smartphone moves from indoors to outdoors, the interference signal strength of the smartphone transmitting music to the Bluetooth headset may be 55; and when the wireless speaker is connected to the smartphone, the interference signal strength of the smartphone transmitting music to the Bluetooth headset may be 70.
[0032] Step S102, adjusting the audio coding rate of the target audio transmitted between the target electronic device and the target output module based on the interference signal strength;
[0033] Here, the audio coding rate represents the amount of audio information contained in the target audio transmitted per unit time, and determines the compression degree and sound quality of the target audio. The higher the audio coding rate, the more audio information is transmitted per unit time, and the better the sound quality. Conversely, the lower the audio coding rate, the less audio information is transmitted per unit time, and the worse the sound quality.
[0034] In some embodiments, while ensuring the stability of audio transmission, the electronic device dynamically adjusts the audio coding rate of the target audio transmitted between the target electronic device and the target output module according to the strength of the interference signal, so as to provide a high-quality sound quality experience as much as possible.
[0035] In some implementations, if the interference signal strength is large, it means that the current wireless transmission environment is poor and there may be more interference. In this case, the electronic device may reduce the audio coding rate to sacrifice some sound quality to maintain the stability of audio transmission and reduce the error rate.
[0036] In some implementations, if the interference signal strength is small, it means that the current wireless transmission environment is good and there may be less interference. In this case, the electronic device may increase the audio coding rate to provide a better sound quality experience.
[0037] In the embodiment of the present application, the audio coding rate of the target audio transmitted between the target electronic device and the target output module is intelligently adjusted according to the interference signal strength under the change of the environment in which the connection between the target electronic device and the target output module is located. For example, in an environment with a small interference signal strength, the audio coding rate can be appropriately increased to transmit more audio information; and in an environment with a large interference signal strength, the audio coding rate can be reduced to ensure the continuity and audibility of the audio.
[0038] In some embodiments, if the interference signal strength is a first interference strength, the audio coding rate is a first audio coding rate; if the interference signal strength is a second interference strength, the audio coding rate is a second audio coding rate; wherein the first audio coding rate is different from the second audio coding rate.
[0039] In some embodiments, the electronic device presets a correspondence between different interference signal strengths and audio coding rates. The first audio coding rate and the second audio coding rate are different, and they correspond to different sound qualities. By adjusting the audio coding rate, the electronic device can minimize the sound quality problems caused by environmental interference while ensuring the continuity and audibility of the audio.
[0040] In some embodiments, when the interference signal strength is a first interference strength (i.e., the interference signal strength is relatively small), the electronic device will choose to use a first audio coding rate (i.e., a higher audio coding rate) to adjust the audio coding rate of the target audio transmitted between the target electronic device and the target output module to provide a better sound quality experience.
[0041] In some embodiments, when the interference signal strength is the second interference strength (ie, the interference signal strength is larger), the electronic device will select the second audio coding rate (ie, the audio coding rate is lower) to sacrifice some sound quality to maintain the stability of audio transmission and reduce the error rate.
[0042] In the embodiment of the present application, by adjusting the audio coding rate according to the strength of the interference signal, the sound quality loss caused by environmental interference can be minimized while ensuring the continuity and audibility of the audio. When the interference signal strength is small, the electronic device can select a higher audio coding rate to provide richer audio details and higher sound quality; and when the interference signal strength is large, the electronic device can select a lower audio coding rate to sacrifice some sound quality to maintain the stability of audio transmission and reduce the error rate.
[0043] In some embodiments, the target audio satisfies the audio condition, which indicates that the delay duration of the target output module outputting the target audio is lower than the target delay duration.
[0044] Here, the delay time can be the time difference between when the target electronic device starts to send the target audio and when the target output module actually plays the audio. The target delay time is a preset threshold used to measure whether the delay time meets the requirements. The target delay time can be 5s (seconds), 6s, 7s, etc. Next, the target delay time of 6s is used as an example for explanation.
[0045] In some embodiments, if the time difference between the target electronic device starting to send the target audio and the target output module actually playing the audio is 5s, that is, the delay time of 5s is less than the target delay time of 6s; then, the electronic device will perceive the change of the connection environment between the target electronic device and the target output module in real time, and obtain the interference signal strength of the target electronic device transmitting the target audio to the target output module. This is done to prepare to intelligently adjust the audio coding rate of the target audio transmitted between the target electronic device and the target output module according to the degree of interference signals, so as to ensure the stability and quality of audio transmission.
[0046] In the embodiment of the present application, the target audio output by the target electronic device through the target output module needs to meet a specific audio condition, that is, the delay time of the target output module outputting the target audio is lower than a preset target delay time. This is usually to ensure the real-time nature of audio transmission and the quality of user experience. If the delay time is too high, it may cause problems such as jamming and asynchrony in audio playback, affecting the user's auditory experience.
[0047] In some embodiments, the target audio satisfying the audio condition indicates that the state of the playback source of the target audio changes.
[0048] Here, the playback source may be a device or software that generates the target audio. The state change of the playback source may include the playback source starting to play, pausing to play, switching audio files, etc.
[0049] In some embodiments, when the audio output by the target electronic device through the target output module meets the audio condition, this indicates that the playback source state of the target audio has changed. This change can be that the playback source starts playing audio, stops playing audio (enters a paused state), or switches the audio file being played under the same playback source. The electronic device will perceive the change in the connection environment between the target electronic device and the target output module in real time, and obtain the interference signal strength of the target audio transmitted by the target electronic device to the target output module. This is done to prepare to intelligently adjust the audio coding rate of the target audio transmitted between the target electronic device and the target output module according to the degree of interference signal, so as to ensure the stability and quality of audio transmission.
[0050] In an embodiment of the present application, the target audio output by the target electronic device through the target output module needs to meet a specific audio condition, that is, the state of the playback source of the target audio changes (for example, the playback source starts playing, pauses playing, switches audio files, etc.), and the changes in the playback source can be monitored in real time. When there is a problem with audio transmission, by monitoring changes in the environment of the target connection between the target electronic device and the target output module, it can be quickly determined whether it is caused by equipment failure or environmental factors.
[0051] In some embodiments, the change in the state of the target audio playback source includes one of the following: the target audio playback source enters the playback state; the target audio playback source enters the pause state from the playback state; the audio file played by the target audio playback source changes.
[0052] In some embodiments, the playback source entering the playback state may mean that the playback source may be static (for example, in an unplayed state or a paused state) before, and now starts to play audio. The playback source entering the paused state from the playback state may mean that the playback source changes from a state of playing audio to a state of pausing the audio. The change of the audio file played by the playback source may mean that, in the case of the same playback source, switching from one audio file to another audio file. For example, jumping from one song to the next in a playlist, or the user manually selecting a different audio file.
[0053] In some embodiments, if the playback source of the target audio enters the playback state from the non-playing state, or changes from the state of playing audio to the state of pausing audio, or switches from one audio file to another audio file, the state of the playback source of the target audio changes. The electronic device will perceive the change of the connection environment between the target electronic device and the target output module in real time, and obtain the interference signal strength of the target electronic device transmitting the target audio to the target output module. This is done to prepare to intelligently adjust the audio coding rate of the target audio transmitted between the target electronic device and the target output module according to the degree of interference signal, so as to ensure the stability and quality of audio transmission.
[0054] In an embodiment of the present application, changes in the state of the target audio playback source (for example, the playback source starts playing, pauses playing, switches audio files) enable the electronic device to more flexibly respond to different playback requirements, provide more stable and higher-quality audio playback services, and thus enhance the user experience.
[0055] Figure 2 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 2 ,like Figure 2 As shown, the processing method may further include the following steps S201 to S202, wherein:
[0056] Step S201, if the state of the playback source of the target audio changes, obtaining the receiving strength corresponding to the signal received by the target output module;
[0057] Here, the receiving strength is an important parameter to measure the quality of the received signal, which reflects the attenuation of the received signal during the transmission process. If the receiving strength is high, it means that the received signal transmission quality is good; if the receiving strength is low, it means that the received signal has encountered attenuation or interference during the transmission process.
[0058] In some embodiments, when the state of the playback source of the target audio changes (for example, from a stop state to a play state, from a play state to a pause state, from playing one audio file to another, etc.), the electronic device monitors the receiving strength corresponding to the received signal when it reaches the target output module from the playback source through a transmission medium (for example, a wireless signal), so as to evaluate the quality of the transmitted audio according to the receiving strength, and take corresponding measures to ensure the normal playback of the audio.
[0059] Step S202: determining, based on the reception strength, the interference signal strength of the target electronic device transmitting the target audio to the target output module.
[0060] Here, the interference signal strength may be the strength of the interference signal that affects the normal transmission of the target audio, and these interference signals may come from other electronic devices, wireless signals, physical obstacles, etc.
[0061] In some embodiments, the electronic device uses the received signal strength to infer or calculate the interference signal strength that the target electronic device may encounter when transmitting the target audio to the target output module. The purpose of determining the interference signal strength is to evaluate the quality of the current audio transmission environment and take corresponding measures to optimize the audio transmission. For example, if the interference signal strength is small, the audio coding rate can be appropriately increased to transmit more audio information; if the interference signal strength is large, the audio coding rate can be reduced to ensure the continuity and audibility of the audio.
[0062] In the embodiment of the present application, when the playback source state of the target audio changes, the electronic device can determine the interference signal strength according to the reception strength of the signal received by the target output module, so that the electronic device can evaluate the quality of the current audio transmission environment and take corresponding measures to optimize the audio transmission. For example, in application scenarios with high requirements for sound quality (for example, music playback, audiobook reading, etc.), the audio coding rate can be appropriately increased to transmit more audio information, which helps to improve user satisfaction.
[0063] In some embodiments, the implementation of step S202 “determining, based on the reception strength, the interference signal strength of the target electronic device transmitting the target audio to the target output module” may include the following step S2021, wherein:
[0064] Step S2021: if the receiving strength is greater than the strength threshold, determine the interference signal strength as a first interference strength;
[0065] Here, the strength threshold may be a standard for determining whether the received signal is seriously interfered with. The strength threshold may be 55, 60, 65, etc. Next, the strength threshold of 60 is taken as an example for description.
[0066] In some embodiments, if the receiving strength of 70 is greater than the strength threshold of 60, the electronic device believes that the target electronic device encounters a smaller interference signal when transmitting the target audio to the target output module. At this time, the strength of the interference signal is determined as the first interference strength.
[0067] The audio coding rate includes a sampling rate and a data transmission rate. The implementation of step S102 "adjusting the audio coding rate of the target audio transmitted between the target electronic device and the target output module based on the interference signal strength" may include the following step S1021, wherein:
[0068] Step S1021, based on the first interference intensity, respectively adjust the first sampling rate and the first data transmission rate corresponding to the target audio in the target electronic device, and the second sampling rate and the second data transmission rate corresponding to the target audio in the target output module.
[0069] Here, the audio coding rate includes two important parameters: sampling rate and data transmission rate. The sampling rate can be the number of times the audio is sampled per second, which determines the frequency range of the audio, and thus affects the sound quality and clarity of the audio. The data transmission rate can be the amount of data of the target audio transmitted per second, which determines the transmission rate of the target audio and the required bandwidth, and thus affects the fluency and stability of the audio.
[0070] In some embodiments, the electronic device not only adjusts the audio coding rate (including the first sampling rate and the first data transmission rate) of the target audio in the target electronic device according to the first interference intensity, but also adjusts the audio coding rate (including the second sampling rate and the second data transmission rate) of the target audio in the target output module, which helps to ensure the quality and stability of the audio during the transmission process.
[0071] In some embodiments, based on the first interference intensity, the sampling rate of the target audio in the target electronic device is adjusted to the highest sampling rate that the target electronic device can support for the target audio, and the data transmission rate of the target audio in the target electronic device is adjusted to the highest data transmission rate that the target electronic device can support for the target audio; at the same time, the sampling rate of the target audio in the target output module is adjusted to the highest sampling rate that the target output module can support for the target audio, and the data transmission rate of the target audio in the target output module is adjusted to the highest data transmission rate that the target output module can support for the target audio, which helps to ensure the quality and stability of the audio during the transmission process.
[0072] In the embodiment of the present application, by detecting the receiving strength and adjusting the audio coding rate (including sampling rate and data transmission rate) according to the interference signal strength, the electronic device can dynamically adapt to different communication environments. If the communication environment is good (i.e., the receiving strength is greater than the strength threshold), the electronic device improves the audio quality by increasing the sampling rate and data transmission rate, providing the user with a better auditory experience.
[0073] In some embodiments, the implementation of step S202 “determining, based on the reception strength, the interference signal strength of the target electronic device transmitting the target audio to the target output module” may include the following step S2022, wherein:
[0074] Step S2022: if the receiving strength is less than or equal to the strength threshold, determine the interference signal strength as a second interference strength;
[0075] In some embodiments, if the receiving strength of 50 is less than the strength threshold of 60, the electronic device believes that the target electronic device encounters a large interference signal when transmitting the target audio to the target output module. At this time, the strength of the interference signal is determined as the second interference strength.
[0076] The implementation of step S102 "adjusting the audio coding rate of the target audio transmitted between the target electronic device and the target output module based on the interference signal strength" may include the following steps S1022 to S1023, wherein:
[0077] Step S1022, obtaining a delay value for communication between the target output module and the target electronic device;
[0078] Here, the delay value may be the time required for the audio to be transmitted from the sender (ie, the target electronic device) to the receiver (ie, the target output module).
[0079] In some implementations, when a target electronic device communicates with a target output module, the electronic device detects a delay value of communication between the target output module and the target electronic device.
[0080] Step S1023, if the delay value is greater than the preset delay threshold, based on the second interference intensity, adjust the first sampling rate and the first data transmission rate corresponding to the target audio in the target electronic device, and the second sampling rate and the second data transmission rate corresponding to the target audio in the target output module.
[0081] Here, the preset delay threshold may be a value preset in the audio transmission electronic device, used to evaluate whether the communication delay is within an acceptable range. When the actual communication delay value is greater than the preset delay threshold, the electronic device considers that the current communication environment is poor.
[0082] In some embodiments, if the delay value is greater than a preset delay threshold, the electronic device will not only adjust the audio coding rate of the target audio in the target electronic device (including a first sampling rate and a first data transmission rate) according to the interference signal strength, but will also adjust the audio coding rate of the target audio in the target output module (including a second sampling rate and a second data transmission rate), which helps to ensure the quality and stability of the audio during the transmission process.
[0083] In some embodiments, if the delay value is greater than a preset delay threshold, based on the second interference intensity, the sampling rate of the target audio in the target electronic device is adjusted to the minimum sampling rate that the target electronic device can support for the target audio, and the data transmission rate of the target audio in the target electronic device is adjusted to the minimum data transmission rate that the target electronic device can support for the target audio; at the same time, the sampling rate of the target audio in the target output module is adjusted to the minimum sampling rate that the target output module can support for the target audio, and the data transmission rate of the target audio in the target output module is adjusted to the minimum data transmission rate that the target output module can support for the audio, so as to reduce audio delay.
[0084] In the embodiment of the present application, by detecting the receiving strength and the delay value, if the delay value is greater than the preset delay threshold, the electronic device adjusts the audio coding rate (including the sampling rate and the data transmission rate) according to the interference signal strength, and the electronic device can dynamically adapt to different communication environments. If the communication environment is poor (that is, the receiving strength is less than or equal to the strength threshold), the electronic device reduces the sampling rate and the data transmission rate to ensure the continuity and audibility of the audio.
[0085] In some embodiments, the processing method may further include: if the delay value is less than or equal to the preset delay threshold, based on the second interference intensity, keeping the first sampling rate, the first data transmission rate, the second sampling rate and the second data transmission rate unchanged.
[0086] In some implementations, when the actual communication delay value is less than or equal to the preset delay threshold, the electronic device believes that the current communication environment is good and the actual communication delay value will not significantly affect the audio transmission quality. Therefore, in this case, the electronic device may choose to keep the current audio coding rate (including sampling rate and data transmission rate) unchanged to ensure the stability and quality of audio transmission.
[0087] In an embodiment of the present application, when the communication delay is less than or equal to the preset delay threshold and the interference intensity is large, keeping the audio coding rate unchanged can ensure the stability of audio transmission and help avoid problems such as sound quality fluctuations or transmission interruptions that may be caused by frequent adjustments to the coding rate.
[0088] The following describes the application of the processing method provided in the embodiment of the present application in an actual scenario, taking the target electronic device being a mobile phone and the target output module being a Bluetooth headset as an example.
[0089] In the related art, regardless of whether the electronic device supports a high coding rate, the audio will be adjusted at a fixed coding rate by default. When the environment in which the electronic device is located changes, it is impossible to set a suitable coding rate according to the environmental changes. For example, when a Bluetooth headset is set to high-resolution mode, it will be able to improve the sound quality at a higher coding rate (e.g., 192Khz / 900Kbps). However, even if the Bluetooth headset supports a coding rate of 192Khz / 900Kbps (i.e., the above-mentioned audio coding rate), the mobile phone will still select a lower coding rate (e.g., 48Khz / 500Kbps) by default, thereby affecting the stability and quality of audio transmission.
[0090] The embodiment of the present application provides a processing method, which intelligently adjusts the audio coding rate of the target audio transmitted between the target electronic device and the target output module according to the interference signal strength under the change of the environment in which the connection between the target electronic device and the target output module is located. For example, in an environment with low interference signal strength, the audio coding rate can be appropriately increased to transmit more audio information; and in an environment with high interference signal strength, the audio coding rate can be reduced to ensure the continuity and audibility of the audio.
[0091] Since the higher the coding rate, the greater the dependence on the environment, in the process of setting the appropriate coding rate according to the environmental interference, it is necessary to solve the problem that the audio stream is paused when the coding rate of the mobile phone or Bluetooth headset is switched, and the mobile phone does not know the interference level of the environment where the headset is located at that time.
[0092] Based on this, the embodiment of the present application proposes an adaptive high-resolution encoding and decoding rate method based on environmental interference, such as Figure 3 As shown, it includes the following steps S301 to S306, wherein:
[0093] Step S301, if the state of the target audio playback source changes, obtain the received signal strength (RSSI) corresponding to the Bluetooth headset receiving signal and the delay value of the communication between the Bluetooth headset and the mobile phone;
[0094] In some embodiments, whenever the state of the playback source changes (for example, the playback source starts playing, pauses playing, switches audio files, etc.), the mobile phone checks the reception strength corresponding to the signal received by the Bluetooth headset to determine the environmental state of the target connection between the mobile phone and the Bluetooth headset, and then selects an appropriate high-resolution codec rate according to the environmental state.
[0095] Step S302, determine whether the receiving strength is greater than -60;
[0096] Here, if yes, that is, the receiving strength is greater than -60, the process goes to step S303; if no, that is, the receiving strength is less than or equal to -60, the process goes to step S304.
[0097] Step S303, the mobile phone sets the current codec rate to 192Khz / 900Kbps;
[0098] In some implementations, if the reception strength is greater than -60, it indicates that the environmental interference is low, and the mobile phone will set the current codec rate to 192Khz / 900Kbps to provide better sound quality for the user.
[0099] Step S304, determining whether the delay value is greater than a preset delay threshold;
[0100] Here, if yes, that is, the delay value is greater than the preset delay threshold, the process goes to step S305; if no, that is, the delay value is less than or equal to the preset delay threshold, the process goes to step S306.
[0101] Step S305, the mobile phone sets the current codec rate to 48Khz / 500Kbps;
[0102] In some implementations, if the reception strength is less than or equal to -60 and the delay value is greater than a preset delay threshold, it means that the environmental interference is severe and the mobile phone will set the current codec rate to 48Khz / 500Kbps to avoid audio delay.
[0103] Step S306: The mobile phone keeps the current encoding and decoding rate unchanged.
[0104] In some implementations, if the receiving strength is less than or equal to -60 and the delay value is less than or equal to a preset delay threshold, the mobile phone maintains the current encoding and decoding rate unchanged.
[0105] Based on the above embodiments, the present application provides a processing device. Figure 4 A schematic diagram of the structure of a processing device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the processing device 400 includes: a first acquisition module 410 and an adjustment module 420, wherein:
[0106] A first acquisition module 410 is configured to acquire, if the target audio output by the target electronic device through the target output module satisfies the audio condition, an interference signal strength of the target audio transmitted by the target electronic device to the target output module in response to a change in the environment in which the target connection between the target electronic device and the target output module is located;
[0107] The adjustment module 420 is used to adjust the audio coding rate of the target audio transmitted between the target electronic device and the target output module based on the interference signal strength; the audio coding rate represents the amount of audio information contained in the target audio transmitted per unit time; wherein the target output module and the target electronic device are connected via a wireless channel.
[0108] In some embodiments, if the interference signal strength is a first interference strength, the audio coding rate is a first audio coding rate; if the interference signal strength is a second interference strength, the audio coding rate is a second audio coding rate; wherein the first audio coding rate is different from the second audio coding rate.
[0109] In some implementations, the target audio satisfying the audio condition indicates that the delay duration of the target output module outputting the target audio is lower than the target delay duration.
[0110] In some implementations, the target audio satisfying the audio condition indicates that a state of a playback source of the target audio has changed.
[0111] In some embodiments, the change in the state of the target audio playback source includes one of the following: the target audio playback source enters the playback state; the target audio playback source enters the pause state from the playback state; the audio file played by the target audio playback source changes.
[0112] In some embodiments, the processing device 400 also includes: a second acquisition module, which is used to obtain the receiving strength corresponding to the signal received by the target output module if the state of the playback source of the target audio changes; and a determination module, which is used to determine the interference signal strength of the target electronic device transmitting the target audio to the target output module based on the receiving strength.
[0113] In some embodiments, the determination module is used to determine the interference signal strength as a first interference strength if the receiving strength is greater than a strength threshold; the audio coding rate includes a sampling rate and a data transmission rate, and the adjustment module 420 is used to adjust the first sampling rate and the first data transmission rate corresponding to the target audio in the target electronic device, and the second sampling rate and the second data transmission rate corresponding to the target audio in the target output module based on the first interference strength.
[0114] In some embodiments, a determination module is used to determine the interference signal strength as a second interference strength if the receiving strength is less than or equal to a strength threshold; an adjustment module 420 is used to obtain a delay value for communication between the target output module and the target electronic device; if the delay value is greater than a preset delay threshold, based on the second interference strength, respectively adjust the first sampling rate and the first data transmission rate corresponding to the target audio in the target electronic device, as well as the second sampling rate and the second data transmission rate corresponding to the target audio in the target output module.
[0115] In some embodiments, the processing device 400 also includes: a maintaining module, which is used to keep the first sampling rate, the first data transmission rate, the second sampling rate and the second data transmission rate unchanged based on the second interference intensity if the delay value is less than or equal to the preset delay threshold.
[0116] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0117] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.
[0118] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0119] Figure 5 A hardware entity diagram of an electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the hardware entity of the electronic device 500 includes: a communication interface 501, a memory 502 and a processor 503, wherein:
[0120] The communication interface 501 is used to connect the target output module with the target electronic device through a wireless channel;
[0121] The memory 502 is used to store instructions and applications executable by the processor 503, and can also cache data to be processed or processed by the processor 503 and various modules in the electronic device 500 (for example, image data, audio data, voice communication data and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM);
[0122] The processor 503 is used to obtain the interference signal strength of the target audio transmitted by the target electronic device to the target output module in response to a change in the environment of the target connection between the target electronic device and the target output module if the target audio output by the target electronic device through the target output module meets the audio condition; based on the interference signal strength, adjust the audio coding rate of the target audio transmitted between the target electronic device and the target output module; the audio coding rate represents the amount of audio information contained in the target audio transmitted per unit time.
[0123] The communication interface 501 , the memory 502 and the processor 503 may perform data transmission via a bus 504 .
[0124] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the above method when executed by a processor. The computer-readable storage medium may be transient or non-transient.
[0125] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.
[0126] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0127] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0128] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0129] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0130] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0131] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0132] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0133] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0134] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A processing method, the method comprising: If the target audio output by the target electronic device through the target output module meets the audio condition, in response to a change in the environment of the target connection between the target electronic device and the target output module, obtaining the interference signal strength of the target audio transmitted by the target electronic device to the target output module; Based on the interference signal strength, adjusting the audio coding rate of the target audio transmitted between the target electronic device and the target output module; the audio coding rate represents the amount of audio information contained in the target audio transmitted per unit time; Wherein, the target output module is connected to the target electronic device via a wireless channel.
2. The method according to claim 1, if the interference signal strength is a first interference strength, the audio coding rate is a first audio coding rate; if the interference signal strength is a second interference strength, the audio coding rate is a second audio coding rate; wherein, The first audio encoding rate is different from the second audio encoding rate.
3. According to the method described in claim 1, the target audio satisfies the audio condition, which indicates that the delay duration of the target output module outputting the target audio is lower than the target delay duration.
4. According to the method of claim 1, the target audio satisfies the audio condition, which indicates that the state of the playback source of the target audio changes.
5. According to the method of claim 1, the change in the state of the playback source of the target audio comprises one of the following: The playback source of the target audio enters a playback state; The playback source of the target audio enters a pause state from a playback state; The audio file played by the playback source of the target audio changes.
6. The method according to any one of claims 1 to 5, further comprising: If the state of the playback source of the target audio changes, obtaining the receiving strength corresponding to the signal received by the target output module; Based on the receiving strength, determine the interference signal strength of the target electronic device transmitting the target audio to the target output module.
7. The method according to claim 6, wherein determining, based on the reception strength, the interference signal strength of the target electronic device transmitting the target audio to the target output module comprises: If the received strength is greater than a strength threshold, determining the interference signal strength as a first interference strength; The audio coding rate includes a sampling rate and a data transmission rate. The adjusting, based on the interference signal strength, the audio coding rate of the target audio transmitted between the target electronic device and the target output module includes: Based on the first interference intensity, a first sampling rate and a first data transmission rate corresponding to the target audio in the target electronic device, and a second sampling rate and a second data transmission rate corresponding to the target audio in the target output module are adjusted respectively.
8. The method according to claim 6, wherein determining, based on the reception strength, the interference signal strength of the target electronic device transmitting the target audio to the target output module comprises: If the received strength is less than or equal to the strength threshold, determining the interference signal strength as a second interference strength; The adjusting, based on the interference signal strength, the audio coding rate of the target audio transmitted between the target electronic device and the target output module comprises: Acquiring a delay value for communication between the target output module and the target electronic device; If the delay value is greater than a preset delay threshold, based on the second interference intensity, the first sampling rate and the first data transmission rate corresponding to the target audio in the target electronic device, and the second sampling rate and the second data transmission rate corresponding to the target audio in the target output module are adjusted respectively.
9. The method according to claim 8, further comprising: If the delay value is less than or equal to the preset delay threshold, based on the second interference intensity, the first sampling rate, the first data transmission rate, the second sampling rate and the second data transmission rate are kept unchanged.
10. A processing device, comprising: A first acquisition module is configured to acquire, if the target audio output by the target electronic device through the target output module meets the audio condition, in response to a change in the environment where the target connection between the target electronic device and the target output module is located, an interference signal strength of the target audio transmitted by the target electronic device to the target output module; An adjustment module, configured to adjust an audio coding rate of the target audio transmitted between the target electronic device and the target output module based on the interference signal strength; the audio coding rate represents an amount of audio information contained in the target audio transmitted per unit time; Wherein, the target output module is connected to the target electronic device via a wireless channel.
Citation Information
Cited By
5G portable WiFi signal enhancement method and system
CN120111511A