CN111182125B - Prompting method for playing tone quality of wireless earphone, mobile terminal and storage medium - Google Patents
Prompting method for playing tone quality of wireless earphone, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN111182125B CN111182125B CN201811348621.3A CN201811348621A CN111182125B CN 111182125 B CN111182125 B CN 111182125B CN 201811348621 A CN201811348621 A CN 201811348621A CN 111182125 B CN111182125 B CN 111182125B
- Authority
- CN
- China
- Prior art keywords
- earphone
- wireless
- packet loss
- signal intensity
- tone quality
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The application provides a prompting method of playing tone quality of a wireless earphone, a mobile terminal and a storage medium, which are applied to the mobile terminal, wherein the method comprises the following steps: acquiring the signal intensity of a wireless signal received by a wireless earphone and the data transmission rate of a currently played audio in real time; inputting the signal intensity and the data transmission rate into a pre-constructed packet loss rate database, and screening to obtain the current packet loss rate of the corresponding current playing audio; inputting the current packet loss rate into a pre-constructed tone quality database, and screening to obtain corresponding tone quality information; judging whether the tone quality information triggers a prompt function or not; and if the prompt function is triggered, outputting first prompt information to the wireless earphone. This application can obtain the tone quality information of wireless earphone broadcast audio frequency in real time according to the tone quality database who founds in advance to behind tone quality information trigger prompt facility, export first prompt message to wireless earphone, remind the user the high tone quality region of wireless earphone of having deviated, so that the user in time makes the correspondence, promotes user experience.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for prompting a playing tone quality of a wireless headset, a mobile terminal, and a storage medium.
Background
The wireless earphone applies the wireless communication technology to the hands-free earphone, so that the user can avoid the trouble of wires and easily listen to the audio in various ways. For example, a bluetooth headset is a wireless headset. When the Bluetooth headset and the mobile terminal are in wireless connection to play audio, the stability of signal transmission between the mobile terminal and the Bluetooth headset is reduced due to the fact that the amount of transmitted audio data is too large or the distance between the Bluetooth headset and the mobile terminal is increased. Therefore, the playing tone quality of the Bluetooth headset is reduced, and the listening experience of a user is influenced. If the user is in a state of random movement in the using process and fixes the mobile terminal at a place, the user cannot judge when the movement exceeds the signal range, so that the playing tone quality is reduced.
Disclosure of Invention
The application mainly aims to provide a prompting method for playing tone quality of a wireless earphone, a mobile terminal and a storage medium, and aims to solve the problem that when a user cannot judge that the playing tone quality is reduced due to the fact that the user exceeds a signal range during movement.
In order to achieve the above object, the present application provides a method for prompting a playing tone quality of a wireless headset, which is applied to a mobile terminal, where the mobile terminal is connected to the wireless headset through a wireless signal, and the method includes:
acquiring the signal intensity of a wireless signal received by the wireless earphone and the data transmission rate of the currently played audio in real time;
inputting the signal intensity and the data transmission rate into a pre-constructed packet loss rate database, and screening to obtain the current packet loss rate of the currently played audio corresponding to the signal intensity and the data transmission rate, wherein the packet loss rate database comprises a plurality of groups of data corresponding to the signal intensity, the data transmission rate and the packet loss rate one by one;
inputting the current packet loss rate into a pre-constructed tone quality database, and screening to obtain tone quality information corresponding to the current packet loss rate, wherein the tone quality database comprises multiple groups of data corresponding to the packet loss rate and the tone quality information one by one;
judging whether the tone quality information triggers a prompt function or not;
and if the prompt function is triggered, outputting first prompt information to the wireless earphone.
Further, after the step of outputting the first prompt message, the method includes:
acquiring the packet loss rate variation trend of the currently played audio in real time;
obtaining a relative motion trend between the wireless earphone and the mobile terminal according to the packet loss rate variation trend;
and outputting second prompt information corresponding to the relative motion trend to the wireless earphone according to a first preset rule.
Further, after the step of outputting the second prompt information corresponding to the relative movement trend to the wireless headset according to the first preset rule, the method includes:
judging whether the relative distance between the wireless earphone and the mobile terminal is continuously increased or not after the preset time of outputting the second prompt message is carried out in real time according to the packet loss rate variation trend;
if the increase continues, the transmit power is increased to increase the signal strength.
Further, after the step of determining whether the relative distance between the wireless headset and the mobile terminal continuously increases after the preset time of outputting the second prompt message according to the packet loss rate variation trend, the method includes:
and if the current audio frequency is continuously increased, reducing the data transmission rate of the current playing audio frequency.
Further, after the step of reducing the data transmission rate of the currently played audio, the method includes:
judging whether to start the automatic switching player function;
if the function of automatically switching players is started, judging whether at least one pre-associated player is detected, wherein each pre-associated player is a wireless player which is preset by a user and has a wireless connection relation with the mobile terminal;
and if at least one pre-associated player is detected, connecting the pre-associated players according to a second preset rule.
Further, the step of connecting the pre-associated players according to the second preset rule includes:
respectively acquiring relative distance values between the player and each pre-associated player;
and screening a designated player for connection, wherein the designated player is a pre-associated player corresponding to the minimum relative distance value.
Further, after the step of screening the designated player for connection, the method includes:
judging whether the specified player stores a fixed audio file corresponding to the currently played audio, wherein the fixed audio file is an audio file pre-stored in the specified player;
if the fixed audio file of the currently played audio is stored, acquiring the current playing time of the currently played audio;
and controlling the appointed player, adjusting the fixed audio file corresponding to the currently played audio to the current playing moment for playing, and simultaneously disconnecting the fixed audio file from the wireless earphone.
Further, the wireless headset includes a main headset and an auxiliary headset, the mobile terminal is connected with the main headset of the wireless headset through a wireless signal, the main headset performs data transmission with the auxiliary headset through a wireless signal, the main headset is a right channel headset or a left channel headset, the right channel headset and the left channel headset are both provided with a control module, the control module is used for controlling the right channel headset or the left channel headset to operate alone, and outputting the first prompt information to the wireless headset after the step, includes:
respectively obtaining right channel signal intensity and left channel signal intensity according to preset frequency, wherein the right channel signal intensity is the signal intensity of a wireless signal received by the right channel earphone, and the left channel signal intensity is the signal intensity of a wireless signal received by the left channel earphone;
judging whether the right channel signal intensity is greater than the left channel signal intensity;
and if the signal intensity of the left channel is greater than the signal intensity of the left channel, setting the right channel earphone as the main earphone, setting the left channel earphone as the auxiliary earphone, and receiving the currently played audio sent by the mobile terminal through the control module by the right channel earphone.
The application also provides a mobile terminal, which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor executes the computer program to realize the steps of the method.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the prompting method for the playing tone quality of the wireless earphone, the mobile terminal and the storage medium, the corresponding current packet loss rate is obtained by acquiring the signal intensity of a wireless signal received by the wireless earphone and the data transmission rate of the currently played audio in real time. And obtaining corresponding tone quality information according to the current packet loss rate, thereby judging whether to trigger a prompt function. The user can intuitively judge the range of the played tone quality in the process of using the wireless earphone, the tone quality of the user listening to the audio is guaranteed, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram illustrating a step of a method for prompting a sound quality played by a wireless headset according to an embodiment of the present application;
fig. 2 is a schematic overall flowchart illustrating a method for prompting a sound quality played by a wireless headset according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a method for playing sound quality of a wireless headset, including the following steps:
s1: acquiring the signal intensity of a wireless signal received by the wireless earphone and the data transmission rate of the currently played audio in real time;
s2: inputting the signal intensity and the data transmission rate into a pre-constructed packet loss rate database, and screening to obtain the current packet loss rate of the currently played audio corresponding to the signal intensity and the data transmission rate, wherein the packet loss rate database comprises a plurality of groups of data corresponding to the signal intensity, the data transmission rate and the packet loss rate one by one;
s3: inputting the current packet loss rate into a pre-constructed tone quality database, and screening to obtain tone quality information corresponding to the current packet loss rate, wherein the tone quality database comprises multiple groups of data corresponding to the packet loss rate and the tone quality information one by one;
s4: judging whether the tone quality information triggers a prompt function or not;
s5: and if the prompt function is triggered, outputting first prompt information to the wireless earphone.
The mobile terminal is a playing device with a wireless connection function, including but not limited to a mobile phone. The mobile terminal is connected with the wireless earphone through wireless signals. Wherein, the wireless signal can be bluetooth signal or WIFI signal, and the wireless headset includes but not limited to bluetooth headset. In this embodiment, a mobile phone is used as a mobile terminal, and a bluetooth headset is used as a wireless headset. When the mobile phone is connected with the Bluetooth headset and plays the audio, the mobile phone acquires the data transmission rate of the currently played audio transmitted to the Bluetooth headset by the mobile phone and the signal intensity of the wireless signal currently received by the Bluetooth headset in real time. Then, the mobile phone inputs the current data transmission rate and the signal strength into a packet loss rate database which is constructed in advance, and the current packet loss rate corresponding to the current data transmission rate and the signal strength is obtained through screening. The packet loss rate database comprises a plurality of groups of data corresponding to the data transmission rate, the signal intensity and the packet loss rate one to one, and the corresponding relation between the data transmission rate, the signal intensity and the packet loss rate is obtained by a developer through detection in advance and is sorted to form the database. For example, when the data transmission rate is 150KB/s and the signal strength is-50 dB, the packet loss rate is 0.05%; the data transmission rate is 600KB/s, and when the signal intensity is-50 dB, the packet loss rate is 0.1 percent; the data transmission rate is 150KB/s, and when the signal intensity is-100 dB, the packet loss rate is 0.1%. And after the mobile phone obtains the current packet loss rate, inputting the current packet loss rate into a pre-constructed tone quality database. The mobile phone compares the current packet loss rate with multiple groups of data stored in the tone quality database, and then tone quality information corresponding to the current packet loss rate, that is, tone quality information of currently played audio of the bluetooth headset, can be obtained. The voice quality database comprises a plurality of groups of data corresponding to packet loss rates and voice quality information one by one. The tonal information may include five levels, in order from low to high tonal: a first stage, a second stage, a third stage, a fourth stage, and a fifth stage. For example, when the packet loss rate is 0.1%, the corresponding tone quality information is of the first level. After the mobile phone obtains the tone quality information of the currently played audio of the Bluetooth headset, preset tone quality information of a preset trigger prompt function is called, so that whether the tone quality information triggers the prompt function is judged. And if the tone quality information of the currently played audio is consistent with or lower than the preset tone quality information, the mobile phone judges to trigger the prompt function. For example, the preset tone quality information is a third level, and when the tone quality information of the currently played audio is lower than the third level, the prompt function is triggered. The mobile phone outputs first prompt information to the Bluetooth headset to remind a user of deviating from a high-tone-quality area of the Bluetooth headset, so that the user can adjust the distance between the Bluetooth headset and the mobile phone in time according to the prompt information, and the playing tone quality of the Bluetooth headset is guaranteed.
Further, after the step of outputting the first prompt message, the method includes:
s6: acquiring the packet loss rate variation trend of the currently played audio in real time;
s7: obtaining a relative motion trend between the wireless earphone and the mobile terminal according to the packet loss rate variation trend;
s8: and outputting second prompt information corresponding to the relative motion trend to the wireless earphone according to a first preset rule.
In this embodiment, after the mobile phone outputs the first prompt message to the user through the bluetooth headset, the mobile phone will continue to obtain the packet loss rate of the currently played audio in real time, and obtain the change trend of the packet loss rate according to the time for obtaining the packet loss rate. And the mobile phone judges the relative motion trend between the mobile phone and the Bluetooth headset in real time according to the packet loss rate variation trend. For example, when the packet loss rate continues to increase, it is determined that the mobile phone and the bluetooth headset are away from each other; and when the packet loss rate continuously decreases, judging that the mobile phone and the Bluetooth headset are approaching to each other. If the mobile phone judges that the current mobile phone and the Bluetooth headset are approaching to each other, the mobile phone indicates that the moving direction is correct after the user receives the first prompt message. If the mobile phone judges that the current mobile phone and the Bluetooth headset are far away from each other, the mobile phone indicates that the moving direction is wrong after the user receives the first prompt message, and the playing tone quality of the Bluetooth headset is continuously reduced. At the moment, the mobile phone outputs second prompt information corresponding to the relative movement trend to the Bluetooth headset according to a first preset rule. The first preset rule is specifically as follows: the packet loss rate is continuously increased, and a user is reminded to move towards the mobile terminal; when the packet loss rate is continuously reduced, the user is reminded to keep the current movement direction so as to ensure the playing tone quality of the Bluetooth headset.
Further, after the step of outputting the second prompt information corresponding to the relative movement trend to the wireless headset according to the first preset rule, the method includes:
s9: judging whether the relative distance between the wireless earphone and the mobile terminal is continuously increased or not after the preset time of outputting the second prompt message is carried out in real time according to the packet loss rate variation trend;
s10: if the increase continues, the transmit power is increased to increase the signal strength.
In this embodiment, after the mobile phone outputs the second prompt message to the user through the bluetooth headset, the mobile phone will continue to obtain the packet loss rate variation trend of the current bluetooth transmission in real time. And then, after the preset time of outputting the second prompt message, the mobile phone judges whether the relative distance between the Bluetooth headset and the mobile phone is continuously increased according to the packet loss rate variation trend. If the mobile phone judges that the distance between the Bluetooth headset and the mobile phone is continuously increased, the fact that the user still needs to stay at the current position or move away from the mobile phone due to work or life needs after receiving the second prompt message is indicated. At the moment, the mobile phone increases the transmitting power of the Bluetooth signal so as to enhance the signal intensity and improve the playing tone quality of the Bluetooth headset. In the prior art, the bluetooth transmission power of a mobile phone is generally a fixed value, and according to a bluetooth communication protocol established by an official, the maximum bluetooth transmission power of the mobile phone cannot exceed the specified maximum transmission power, otherwise, a related bluetooth standard cannot be tested to pass. Meanwhile, under the condition that other conditions are the same, the larger the terminal Bluetooth transmitting power is, the longer the transmitting distance is, and the larger the effective distance of Bluetooth audio transmission is, so that the terminal Bluetooth transmitting power is improved to a certain extent, the packet loss rate of the Bluetooth audio transmission can be reduced, and the generation of the phenomenon of tone quality reduction is reduced. Furthermore, the increased Bluetooth transmitting power is set in the mobile phone not to exceed the maximum transmitting power specified by the protocol.
Further, after the step of determining whether the relative distance between the wireless headset and the mobile terminal continuously increases after the preset time of outputting the second prompt message according to the packet loss rate variation trend, the method includes:
s11: and if the current audio frequency is continuously increased, reducing the data transmission rate of the current playing audio frequency.
In this embodiment, after the mobile phone outputs the second prompt message to the user through the bluetooth headset, the mobile phone will continue to obtain the packet loss rate variation trend of the current bluetooth transmission in real time. And then, after the preset time of outputting the second prompt message, the mobile phone judges whether the relative distance between the Bluetooth headset and the mobile phone is continuously increased according to the packet loss rate variation trend. If the mobile phone judges that the distance between the Bluetooth headset and the mobile phone is continuously increased, the fact that the user still needs to stay at the current position or move away from the mobile phone due to work or life needs after receiving the second prompt message is indicated. At this time, the mobile phone reduces the data transmission rate of the current Bluetooth transmission audio. Experiments prove that a remarkable nonlinear relation exists between the data transmission rate and the packet loss rate. When the data transmission rate increases, the packet loss rate significantly increases. The mobile phone can improve the pause phenomenon in the Bluetooth transmission process by reducing the data transmission rate of the playing audio transmitted by the current Bluetooth, so that the problems of delay and pause in the playing of the audio by the Bluetooth headset are avoided, and the listening experience of a user is improved.
Further, after the step of reducing the data transmission rate of the currently played audio, the method includes:
s12: judging whether to start the automatic switching player function;
s13: if the function of automatically switching players is started, judging whether at least one pre-associated player is detected, wherein each pre-associated player is a wireless player which is preset by a user and has a wireless connection relation with the mobile terminal;
s14: and if at least one pre-associated player is detected, connecting the pre-associated players according to a second preset rule.
In this embodiment, after the data transmission rate of the currently played audio is reduced, the mobile phone determines whether to start the function of the auto-switching player. The automatic player switching function is started or closed by a user according to self requirements in advance. If the mobile phone monitors that the function of automatically switching the players is set to be started by the user, the mobile phone starts to judge whether at least one pre-associated player can be detected currently. The pre-associated player refers to a wireless player which is preset by a user and can automatically establish wireless connection with a mobile phone, such as a bluetooth sound box in a room. The mobile phone judges whether the pre-associated player can be detected or not by sending the connection signal and according to the feedback of the connection signal. And if the mobile phone detects that at least one pre-associated player exists, the mobile phone is connected with the pre-associated player according to a second preset rule. Wherein the second preset rule is specifically as follows: and the mobile phone selects one pre-associated player with the minimum relative distance to connect according to the current relative distance between the mobile phone and each pre-associated player so as to ensure the playing tone quality.
Further, the step of connecting the pre-associated players according to the second preset rule includes:
s1401: respectively acquiring relative distance values between the player and each pre-associated player;
s1402: and screening a designated player for connection, wherein the designated player is a pre-associated player corresponding to the minimum relative distance value.
In this embodiment, after the mobile phone detects that at least one pre-associated player exists, the mobile phone will respectively obtain the relative distance value between each pre-associated player and the mobile phone. The mobile phone can acquire the relative distance value by acquiring the signal strength of the received wireless signal when each pre-associated player is connected with the mobile phone. Specifically, the relative distance value and the signal strength are in an inverse correlation relationship, that is, the greater the signal strength of the wireless signal received by the pre-associated player is, the smaller the relative distance value between the pre-associated player and the mobile phone is, the closer the pre-associated player is to the mobile phone. Then, the mobile phone establishes wireless connection with the pre-associated player which is closest to the mobile phone, namely, the relative distance value is minimum, so that the stability of wireless transmission between the mobile phone and the pre-associated player is improved, the playing tone quality is improved, and the user experience is improved.
Further, after the step of screening the designated player for connection, the method includes:
s15: judging whether the specified player stores a fixed audio file corresponding to the currently played audio, wherein the fixed audio file is an audio file pre-stored in the specified player;
s16: if the fixed audio file of the currently played audio is stored, acquiring the current playing time of the currently played audio;
s17: and controlling the appointed player, adjusting the fixed audio file corresponding to the currently played audio to the current playing moment for playing, and simultaneously disconnecting the fixed audio file from the wireless earphone.
In this embodiment, after the wireless connection is established between the mobile phone and the closest pre-associated player, it is determined whether the pre-associated player stores a fixed audio file corresponding to the currently played audio. Fixed audio files refer to audio files pre-stored in the pre-associated player. If the mobile phone judges that the fixed audio file contains an audio file corresponding to the currently played audio, the mobile phone acquires the current playing time of the currently played audio and generates a control instruction according to the current playing time. And then, the mobile phone transmits the control instruction to the pre-associated player, and controls the pre-associated player to play the corresponding audio file in the fixed audio file from the current playing time. Due to the fact that the data volume of the control instruction is small, the user can avoid packet drop caused by large data volume of wireless transmission or unstable wireless transmission in the process of playing the audio by using the pre-associated player, the problem that delay and pause occur in playing of the audio file is avoided, and user experience is improved.
Further, the wireless headset includes a main headset and an auxiliary headset, the mobile terminal is connected with the main headset of the wireless headset through a wireless signal, the main headset performs data transmission with the auxiliary headset through a wireless signal, the main headset is a right channel headset or a left channel headset, the right channel headset and the left channel headset are both provided with a control module, the control module is used for controlling the right channel headset or the left channel headset to operate alone, and outputting the first prompt information to the wireless headset after the step, includes:
s18: respectively obtaining right channel signal intensity and left channel signal intensity according to preset frequency, wherein the right channel signal intensity is the signal intensity of a wireless signal received by the right channel earphone, and the left channel signal intensity is the signal intensity of a wireless signal received by the left channel earphone;
s19: judging whether the right channel signal intensity is greater than the left channel signal intensity;
s20: and if the signal intensity of the left channel is greater than the signal intensity of the left channel, setting the right channel earphone as the main earphone, setting the left channel earphone as the auxiliary earphone, and receiving the currently played audio sent by the mobile terminal through the control module by the right channel earphone.
In this embodiment, the bluetooth headset includes a main headset and an auxiliary headset, wherein the main headset is connected with the mobile phone through a bluetooth signal, and the auxiliary headset is connected with the main headset through a wireless signal. The main earphone receives the audio and the control command transmitted by the mobile phone, and the audio of the auxiliary earphone is transmitted by the main earphone. The main earphone can be a right channel earphone or a left channel earphone. The right channel earphone and the left channel earphone are both provided with control modules, the control modules in the right channel earphone and the left channel earphone can be used for receiving data and instructions sent by the mobile phone and controlling the right channel earphone or the left channel earphone to operate independently, namely the right channel earphone and the left channel earphone can operate independently. After the mobile phone outputs the first prompt information to the user through the bluetooth headset, the mobile phone respectively acquires the right channel signal intensity and the left channel signal intensity of the bluetooth headset at a preset frequency, such as 1 time/30S and 1 time/60S. The right channel signal strength refers to the signal strength of a wireless signal received by the right channel earphone, and the left channel signal strength refers to the signal strength of a wireless signal received by the left channel earphone. Then, the mobile phone judges whether the right channel signal intensity is greater than the left channel signal intensity. And if the mobile phone judges that the right channel signal intensity of the Bluetooth headset is greater than the left channel signal intensity, the right channel headset is set as a main headset, and Bluetooth connection is established between the mobile phone and a control module of the right channel headset. And the left channel earphone is set as an auxiliary earphone, and the left channel earphone is wirelessly connected to the right channel earphone. If the mobile phone judges that the left channel signal intensity of the Bluetooth headset is greater than the right channel signal intensity, the left channel headset is set as a main headset, Bluetooth connection is established between the mobile phone and a control module of the left channel headset, the right channel headset is set as an auxiliary headset, and the right channel headset is wirelessly connected to the left channel headset. The cell-phone can select the earphone that connects signal intensity preferred in a flexible way to connect, has guaranteed the broadcast tone quality, has promoted user experience.
In the method for prompting the playing tone quality of the wireless headset, the mobile terminal and the storage medium provided by the embodiment, the corresponding current packet loss rate is obtained by acquiring the signal intensity of the wireless signal received by the wireless headset and the data transmission rate of the currently played audio in real time. And obtaining corresponding tone quality information according to the current packet loss rate, thereby judging whether to trigger a prompt function. The user can intuitively judge the range of the played tone quality in the process of using the wireless earphone, the tone quality of the user listening to the audio is guaranteed, and the user experience is improved.
Referring to fig. 3, an embodiment of the present application further provides a mobile terminal including a processor, a memory, a network interface, and a database connected through a system bus. Wherein the processor of the mobile terminal is designed to provide computing and control capabilities. The memory of the mobile terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the mobile terminal is used for storing data such as audio files and the like. The network interface of the mobile terminal is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of avoiding audio playback delay of a wireless player.
The processor executes the prompting method of the sound quality played by the wireless earphone, and comprises the following steps:
acquiring the signal intensity of a wireless signal received by the wireless earphone and the data transmission rate of the currently played audio in real time;
inputting the signal intensity and the data transmission rate into a pre-constructed packet loss rate database, and screening to obtain the current packet loss rate of the currently played audio corresponding to the signal intensity and the data transmission rate, wherein the packet loss rate database comprises a plurality of groups of data corresponding to the signal intensity, the data transmission rate and the packet loss rate one by one;
inputting the current packet loss rate into a pre-constructed tone quality database, and screening to obtain tone quality information corresponding to the current packet loss rate, wherein the tone quality database comprises multiple groups of data corresponding to the packet loss rate and the tone quality information one by one;
judging whether the tone quality information triggers a prompt function or not;
and if the prompt function is triggered, outputting first prompt information to the wireless earphone.
Those skilled in the art will appreciate that the structure shown in fig. 3 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation of the mobile terminal to which the present application is applied.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for prompting a playing sound quality of a wireless headset, and specifically includes:
acquiring the signal intensity of a wireless signal received by the wireless earphone and the data transmission rate of the currently played audio in real time;
inputting the signal intensity and the data transmission rate into a pre-constructed packet loss rate database, and screening to obtain the current packet loss rate of the currently played audio corresponding to the signal intensity and the data transmission rate, wherein the packet loss rate database comprises a plurality of groups of data corresponding to the signal intensity, the data transmission rate and the packet loss rate one by one;
inputting the current packet loss rate into a pre-constructed tone quality database, and screening to obtain tone quality information corresponding to the current packet loss rate, wherein the tone quality database comprises multiple groups of data corresponding to the packet loss rate and the tone quality information one by one;
judging whether the tone quality information triggers a prompt function or not;
and if the prompt function is triggered, outputting first prompt information to the wireless earphone.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only for the preferred embodiment of the present application and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.
Claims (8)
1. A method for prompting the playing tone quality of a wireless earphone is applied to a mobile terminal, wherein the mobile terminal is connected with the wireless earphone through a wireless signal, and the method comprises the following steps:
acquiring the signal intensity of a wireless signal received by the wireless earphone and the data transmission rate of the currently played audio in real time;
inputting the signal intensity and the data transmission rate into a pre-constructed packet loss rate database, and screening to obtain the current packet loss rate of the currently played audio corresponding to the signal intensity and the data transmission rate, wherein the packet loss rate database comprises a plurality of groups of data corresponding to the signal intensity, the data transmission rate and the packet loss rate one by one;
inputting the current packet loss rate into a pre-constructed tone quality database, and screening to obtain tone quality information corresponding to the current packet loss rate, wherein the tone quality database comprises multiple groups of data corresponding to the packet loss rate and the tone quality information one by one;
judging whether the tone quality information triggers a prompt function or not;
if the prompt function is triggered, outputting first prompt information to the wireless earphone;
after the step of outputting the first prompt message, the method includes:
acquiring the packet loss rate variation trend of the currently played audio in real time;
obtaining a relative motion trend between the wireless earphone and the mobile terminal according to the packet loss rate variation trend;
outputting second prompt information corresponding to the relative motion trend to the wireless earphone according to a first preset rule;
after the step of outputting the second prompt information corresponding to the relative motion trend to the wireless headset according to the first preset rule, the method includes:
judging whether the relative distance between the wireless earphone and the mobile terminal is continuously increased or not after the preset time of outputting the second prompt message is carried out in real time according to the packet loss rate variation trend;
if the increase continues, the transmit power is increased to increase the signal strength.
2. The method for prompting playing sound quality of a wireless earphone according to claim 1, wherein the step of determining whether the relative distance between the wireless earphone and the mobile terminal continuously increases after the preset time for outputting the second prompting message according to the packet loss rate variation trend comprises:
and if the current audio frequency is continuously increased, reducing the data transmission rate of the current playing audio frequency.
3. The method for prompting playing sound quality of a wireless earphone according to claim 2, wherein the step of reducing the data transmission rate of the currently playing audio is followed by:
judging whether to start the automatic switching player function;
if the function of automatically switching players is started, judging whether at least one pre-associated player is detected, wherein each pre-associated player is a wireless player which is preset by a user and has a wireless connection relation with the mobile terminal;
and if at least one pre-associated player is detected, connecting the pre-associated players according to a second preset rule.
4. The method for prompting playing sound quality of a wireless earphone according to claim 3, wherein the step of connecting the pre-associated player according to the second preset rule comprises:
respectively acquiring relative distance values between the player and each pre-associated player;
and screening a designated player for connection, wherein the designated player is a pre-associated player corresponding to the minimum relative distance value.
5. The method for prompting playing sound quality of a wireless earphone according to claim 4, wherein the step of selecting the designated player for connection comprises:
judging whether the specified player stores a fixed audio file corresponding to the currently played audio, wherein the fixed audio file is an audio file pre-stored in the specified player;
if the fixed audio file of the currently played audio is stored, acquiring the current playing time of the currently played audio;
and controlling the appointed player, adjusting the fixed audio file corresponding to the currently played audio to the current playing moment for playing, and simultaneously disconnecting the fixed audio file from the wireless earphone.
6. The method for prompting playing sound quality of a wireless earphone according to claim 1, wherein the wireless earphone comprises a main earphone and an auxiliary earphone, the mobile terminal is connected with the main earphone of the wireless earphone through a wireless signal, the main earphone performs data transmission with the auxiliary earphone through a wireless signal, the main earphone is a right channel earphone or a left channel earphone, both the right channel earphone and the left channel earphone are provided with a control module, the control module is used for controlling the right channel earphone or the left channel earphone to operate independently, and after the step of outputting the first prompting information to the wireless earphone, the method comprises:
respectively obtaining right channel signal intensity and left channel signal intensity according to preset frequency, wherein the right channel signal intensity is the signal intensity of a wireless signal received by the right channel earphone, and the left channel signal intensity is the signal intensity of a wireless signal received by the left channel earphone;
judging whether the right channel signal intensity is greater than the left channel signal intensity;
and if the signal intensity of the left channel is greater than the signal intensity of the left channel, setting the right channel earphone as the main earphone, setting the left channel earphone as the auxiliary earphone, and receiving the currently played audio sent by the mobile terminal through the control module by the right channel earphone.
7. A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 6.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811348621.3A CN111182125B (en) | 2018-11-13 | 2018-11-13 | Prompting method for playing tone quality of wireless earphone, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811348621.3A CN111182125B (en) | 2018-11-13 | 2018-11-13 | Prompting method for playing tone quality of wireless earphone, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111182125A CN111182125A (en) | 2020-05-19 |
CN111182125B true CN111182125B (en) | 2021-07-30 |
Family
ID=70622283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811348621.3A Active CN111182125B (en) | 2018-11-13 | 2018-11-13 | Prompting method for playing tone quality of wireless earphone, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111182125B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116193311A (en) * | 2021-01-22 | 2023-05-30 | 深圳市睿耳电子有限公司 | Sound quality optimization method of wireless earphone, related equipment, medium and program product |
CN112954575A (en) * | 2021-01-28 | 2021-06-11 | 歌尔科技有限公司 | Wireless earphone fault detection method, fault detection equipment and wireless earphone |
CN113114852B (en) * | 2021-03-11 | 2022-04-15 | 厦门亿联网络技术股份有限公司 | Audio transmission method, earphone and base station |
CN113573202A (en) * | 2021-09-23 | 2021-10-29 | 深圳市外星人创新电子有限公司 | Data transmission control method and system of Bluetooth headset |
CN114302444A (en) * | 2021-12-30 | 2022-04-08 | 上海移远通信技术股份有限公司 | Debugging prompting method and device of wireless access terminal, terminal and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243662B (en) * | 2013-06-07 | 2020-09-01 | 中兴通讯股份有限公司 | Terminal prompt mode adjusting method and terminal |
CN104270499B (en) * | 2014-09-01 | 2018-01-16 | 广东欧珀移动通信有限公司 | A kind of monitoring method of bluetooth earphone state, device and mobile terminal |
US20170195811A1 (en) * | 2015-12-30 | 2017-07-06 | Knowles Electronics Llc | Audio Monitoring and Adaptation Using Headset Microphones Inside User's Ear Canal |
CN105872654B (en) * | 2016-03-22 | 2019-05-31 | Oppo广东移动通信有限公司 | Bluetooth connection switching method, apparatus and system in audio frequency broadcast system |
US10063959B1 (en) * | 2017-03-13 | 2018-08-28 | Plantronics, Inc. | Headset system with acoustic safety incident detection |
-
2018
- 2018-11-13 CN CN201811348621.3A patent/CN111182125B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111182125A (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111182125B (en) | Prompting method for playing tone quality of wireless earphone, mobile terminal and storage medium | |
CN110996405B (en) | Earphone connection method, terminal, earphone box and computer readable storage medium | |
US10182138B2 (en) | Smart way of controlling car audio system | |
KR20100004111A (en) | Dynamic volume adjusting and band-shifting to compensate for hearing loss | |
CN106448672B (en) | Sound system and control method | |
CN104243662B (en) | Terminal prompt mode adjusting method and terminal | |
US20080161034A1 (en) | Mobile Phone, State Switching Method for Use in Mobile Phone, and Transmitter | |
CN104980411B (en) | Video call control method, server, terminal and video call system | |
JP5796127B2 (en) | Electronics | |
US8401532B2 (en) | Method for simulating network hold | |
CN105763936A (en) | Method and apparatus for playing audio | |
CN109511041B (en) | Earphone starting setting method and device and earphone | |
CN103944983A (en) | Error correction method and system for voice control instruction | |
CN104660197B (en) | A kind of method for controlling volume and playback equipment | |
CN107621933B (en) | Audio playing method and device and related medium product | |
CN107145323A (en) | A kind of method for controlling volume and device and terminal | |
CN113225647A (en) | Cooperative working method of multiple intelligent sound boxes | |
CN107726539A (en) | Terminal operating parameter regulation means, device and computer-readable recording medium | |
CN104867296B (en) | A kind of volume adjusting method and device | |
CN105679350A (en) | Audio playing method and device | |
CN114040373A (en) | Audio service processing method and device, electronic equipment and storage medium | |
CN111988770A (en) | Control method and system of wireless equipment | |
US10178482B2 (en) | Audio transmission system and audio processing method thereof | |
CN111580781A (en) | Mobile terminal audio output method and mobile terminal | |
CN105679342B (en) | A kind of control method and device of playback equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210527 Address after: 518000 Building 405A, 01B, Zone E, Zhiheng Industrial Park, Nantou Street, Nanshan District, Shenzhen City, Guangdong Province Applicant after: SHENZHEN ZHIYING TECHNOLOGY Co.,Ltd. Address before: 518000 1-10 Floor, Building A2, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province Applicant before: QIKU INTERNET TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |