Method, device and medium for playing audio with a speaker
By obtaining the coil temperature parameters in the speaker and playing the set sound source for preheating, the problem of the speaker being damaged in extremely low temperature environments is solved, and normal use and service life are extended in low temperature environments are achieved.
Patent Information
- Application Number
- CN202010457093.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-26
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-05-26
AI Technical Summary
When the speaker is used in extremely low temperature environments, changes in the diaphragm material characteristics may cause damage to the device. The prior art cannot obtain the speaker's own temperature in real time by detecting the ambient temperature, which affects the output quality.
By receiving the playback command, the speaker coil temperature-related parameters are obtained. If it is lower than the set temperature, the set sound source (frequency is greater than the set frequency) will be played until the coil temperature rises to the set temperature or the playback reaches the set time, and then the playback stops after the set time is reached. Preheating of speaker coils.
Effectively prevent the speaker from being damaged in low-temperature environments, extend the service life, and accurately obtain the speaker's own temperature to avoid functional dysfunction caused by low ambient temperature.
Smart Images

Figure CN113727248B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a method, device and medium for playing audio with a speaker. Background Art
[0002] At present, speakers have been widely used in a variety of electronic devices, such as various smart terminals. As the application of smart terminals becomes more and more widespread, the application scenarios of smart terminals are increasing. For example, users sometimes use smart terminals in some extreme environments, such as in some extremely low temperature (below zero degrees). This requires speakers to be used in these extremely low temperatures.
[0003] The speaker diaphragm is a composite material. In a low-temperature environment, the material properties of some of the materials will change. Therefore, if the speaker directly operates in a low-temperature environment, it may cause damage to the device. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a method, device and medium for playing audio by a speaker.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for playing audio with a speaker is provided, the method comprising:
[0006] After receiving the play instruction, obtaining parameters related to the coil temperature of the speaker;
[0007] When it is determined according to the parameters that the coil of the speaker is lower than the set temperature, a set sound source is played, and the signal frequency of the set sound source is greater than the set frequency;
[0008] When it is determined that the temperature of the speaker coil rises to a set temperature or the playing of the set sound source reaches a set time, the playing of the set sound source is stopped;
[0009] Based on the play instruction, the corresponding audio is played.
[0010] The parameter related to the coil temperature of the speaker is the coil resistance value or the coil temperature value of the speaker.
[0011] Wherein, when the parameter is the coil temperature value, the acquiring of the parameter related to the coil temperature of the speaker includes:
[0012] Obtaining a coil resistance value of the speaker;
[0013] The coil temperature value is determined based on the coil resistance value.
[0014] The set sound source is an audio signal including one frequency or an audio signal including multiple frequencies.
[0015] Wherein, the set sound source is an ultrasonic signal.
[0016] According to a second aspect of an embodiment of the present disclosure, a device for playing audio with a speaker is provided, the device comprising:
[0017] A receiving module, configured to receive a play instruction;
[0018] An acquisition module, configured to acquire parameters related to the coil temperature of the speaker after receiving a play instruction;
[0019] The playing module is configured to play a set sound source when it is determined that the coil temperature is lower than a set temperature, and the signal frequency of the set sound source is greater than a set frequency; stop playing the set sound source when it is determined that the coil temperature rises to a set temperature or the playing of the set sound source reaches a set time; and after stopping playing the set sound source, play the corresponding audio based on the playing instruction.
[0020] The parameter related to the coil temperature of the speaker is the coil resistance value or the coil temperature value of the speaker.
[0021] Wherein, the acquisition module is further configured to:
[0022] Obtaining a coil resistance value of the speaker;
[0023] The coil temperature value is determined based on the coil resistance value.
[0024] The set sound source is an audio signal including one frequency or an audio signal including multiple frequencies.
[0025] Wherein, the set sound source is an ultrasonic signal.
[0026] According to a third aspect of an embodiment of the present disclosure, a device for playing audio with a speaker is provided, characterized in that it includes:
[0027] processor;
[0028] a memory for storing processor-executable instructions;
[0029] The processor is configured to implement the following steps when executing the executable instructions:
[0030] After receiving the play instruction, obtaining parameters related to the coil temperature of the speaker;
[0031] When it is determined according to the parameters that the coil of the speaker is lower than the set temperature, a set sound source is played, and the signal frequency of the set sound source is greater than the set frequency;
[0032] When it is determined that the temperature of the speaker coil rises to a set temperature or the playing of the set sound source reaches a set time, stop playing the set sound source;
[0033] Based on the play instruction, the corresponding audio is played.
[0034] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a device, the device is enabled to perform a method for playing audio by a speaker, the method comprising:
[0035] After receiving the play instruction, obtaining parameters related to the coil temperature of the speaker;
[0036] When it is determined according to the parameters that the coil of the speaker is lower than the set temperature, a set sound source is played, and the signal frequency of the set sound source is greater than the set frequency;
[0037] When it is determined that the temperature of the speaker coil rises to a set temperature or the playing of the set sound source reaches a set time, stop playing the set sound source;
[0038] Based on the play instruction, the corresponding audio is played.
[0039] According to the method disclosed in the present invention, after receiving a speaker play instruction, a parameter related to the coil temperature of the speaker is obtained, and the coil temperature of the speaker is judged to be lower than the set temperature according to the parameter. If it is lower than the set temperature, a set sound source is played, and the frequency of the set sound source is greater than the set frequency. In the process of obtaining the parameters related to the coil temperature of the speaker, if it is judged that the coil temperature of the speaker rises to the set temperature or the playing of the set sound source reaches the set time, the playing of the set sound source is stopped. After the playing of the set sound source is stopped, the corresponding audio is played based on the playing instruction. According to this method, when the temperature of the speaker is too low, the speaker coil is preheated by playing a sound source that does not damage it. When the coil temperature of the speaker reaches the temperature threshold, the specified audio starts to play. The speaker according to this method can be used in a low temperature environment without causing damage to the speaker, thereby extending the service life of the speaker.
[0040] Furthermore, the method can accurately obtain the temperature of the speaker itself, thereby avoiding the problem that the speaker itself has reached the normal playback requirement but still cannot be used normally due to the low ambient temperature.
[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0043] Figure 1 The figure is a flowchart of a method for playing audio by a speaker according to an exemplary embodiment.
[0044] Figure 2 The present invention is a flowchart of a method for playing audio by a speaker according to an exemplary embodiment.
[0045] Figure 3 The present invention is a block diagram of a device for playing audio with a speaker according to an exemplary embodiment.
[0046] Figure 4 It is a block diagram of a device according to an exemplary embodiment.
[0047] Figure 5 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0049] In order to prevent the speaker from being damaged by low temperature during use, the operating temperature of the speaker is usually controlled. When the ambient temperature of the speaker is detected to be too low, the output of the speaker is reduced or stopped. Currently, low temperature protection for the speaker is carried out by detecting the ambient temperature (detecting the actual chip temperature), and the temperature of the speaker itself will rise after working for a period of time, so that the local temperature of the speaker body can reach the normal operating temperature. However, the chip temperature does not rise as quickly as the speaker body temperature, so the chip temperature detection method cannot obtain the status of the speaker in real time, which affects the actual speaker output.
[0050] The present disclosure provides a method for playing audio with a speaker, in which after receiving a speaker playing instruction, a parameter related to the coil temperature of the speaker is obtained, and the coil temperature of the speaker is judged to be lower than a set temperature according to the parameter. If it is lower than the set temperature, a set sound source is played, and the frequency of the set sound source is greater than the set frequency. In the process of obtaining the parameters related to the coil temperature of the speaker, if it is judged that the coil temperature of the speaker rises to the set temperature or the playing of the set sound source reaches the set time, the playing of the set sound source is stopped. After the playing of the set sound source is stopped, the corresponding audio is played based on the playing instruction. With this method, when the temperature of the speaker is too low, the speaker coil is preheated by playing a sound source that does not damage it. When the coil temperature of the speaker reaches the temperature threshold, the specified audio starts to be played. The speaker according to this method can be used in a low temperature environment without causing damage to the speaker, thereby extending the service life of the speaker.
[0051] The speaker here may be a speaker arranged in a smart terminal, such as a mobile phone, a PAD, a wearable device, etc., or a speaker arranged in other electronic devices.
[0052] Figure 1 is a flowchart of a speaker playing audio according to an exemplary embodiment. Figure 1 As shown, the method comprises the following steps:
[0053] Step 101, after receiving a play instruction, obtaining parameters related to the coil temperature of the speaker;
[0054] Step 102, when it is determined according to the parameters that the coil of the speaker is lower than a set temperature, a set sound source is played, and the signal frequency of the set sound source is greater than a set frequency;
[0055] Step 103, when it is determined that the temperature of the speaker coil has risen to a set temperature or the playing of the set sound source has reached a set time, the playing of the set sound source is stopped;
[0056] Step 104: Play the corresponding audio based on the play instruction.
[0057] Here, a speaker arranged in a mobile phone is taken as an example for description, and speakers arranged in other electronic devices adopt the same working method.
[0058] In step 101, for example, when the user wants to play audio, a play command is sent to the mobile phone. When the speaker receives the play command, it first determines whether it is in a low temperature environment that is harmful to the audio playback, that is, whether the coil temperature meets the set requirements. When judging whether the coil temperature meets the set requirements, the judgment can be made through parameters related to the coil temperature. The parameters related to the coil temperature can be the coil temperature value and the coil resistance value.
[0059] This method is different from the prior art method of detecting the ambient temperature of the speaker, but uses a method of detecting the temperature of the speaker coil, which can accurately obtain the temperature of the speaker itself, avoiding the problem that the speaker itself has reached the normal playback requirement, but still cannot be used normally due to the low ambient temperature.
[0060] In step 102, when it is determined according to the above parameters that the coil of the speaker is lower than the set temperature, that is, when it is judged that the temperature of the speaker coil is too low, it is necessary to preheat the speaker coil to increase its temperature. Here, preheating the speaker coil is achieved by playing a set sound source. It should be noted that when preheating the speaker by playing a set sound source, it is required that the speaker plays the set sound source in a low temperature environment without causing damage to the speaker.
[0061] Through a large number of experiments, it is found that when the signal frequency of the set sound source is greater than the set frequency, the above requirement of not causing damage to the speaker when playing in a low temperature environment can be met. The set frequency here can be 2KHz. Specifically, the specific value of the set frequency can be set based on different speaker models, speaker conditions, and hardware system conditions.
[0062] In addition, the set temperature can be set to -10°C to -20°C. In specific implementation, it can be set according to the parameters of the speaker and the requirements of the system.
[0063] In step 103, in the process of obtaining the parameters related to the coil temperature, if it is determined based on the parameters that the speaker coil temperature rises to the set temperature, or the set sound source is played for a set time, the preheating of the speaker is stopped, that is, the playing of the set sound source is stopped. Here, the playing of the set sound source is stopped by playing the set sound source for a set time in order to prevent the preheating time from being too long and making the user wait for a long time, so as to improve the user's experience.
[0064] In step 104, when it is determined that the temperature of the speaker itself reaches the requirement, the audio specified in the received play instruction can be played.
[0065] By adopting this method, when the temperature of the speaker is too low, the speaker plays a sound source that does not harm the speaker to achieve the effect of preheating the speaker coil. When the temperature of the speaker coil reaches the temperature threshold, the specified audio starts to be played. The speaker according to this method can be used in a low temperature environment without causing damage to the speaker, thereby extending the service life of the speaker.
[0066] In an optional implementation manner, the parameter related to the coil temperature of the speaker is a coil resistance value or a coil temperature value of the speaker.
[0067] Here, the coil resistance value is used to determine whether the coil temperature meets the requirements because the coil resistance value and the coil temperature value of the speaker satisfy a certain functional relationship. Therefore, when determining whether the coil temperature meets the requirements, it is also possible not to obtain the final coil temperature value, but to determine the relationship between the coil temperature value and the set temperature by judging the relationship between the coil resistance value and the resistance threshold value through the functional relationship between the coil resistance value and the coil temperature value.
[0068] The functional relationship between the coil resistance value and the coil temperature value can be known by those skilled in the art through relevant technical knowledge, and will not be described in detail here. In addition, the method for obtaining the coil resistance value can also be known by those skilled in the art through relevant technical knowledge, and will not be described in detail here.
[0069] In an optional implementation manner, when the parameter is the coil temperature value, the acquiring the parameter related to the coil temperature of the speaker includes:
[0070] Obtaining a coil resistance value of the speaker;
[0071] The coil temperature value is determined based on the coil resistance value.
[0072] Based on the above description, when the parameter related to the coil temperature is the coil temperature value, the coil resistance value of the speaker can be obtained in real time, and the coil temperature value can be calculated according to the functional relationship between the coil resistance value and the coil temperature value.
[0073] Two parameter selection methods are given here: after obtaining the coil resistance value, directly determine the relationship between the resistance value and the set resistance; or after obtaining the coil resistance value, calculate the temperature value based on the resistance value, and then determine the relationship between the temperature value and the set temperature. It should be noted that both parameter selection methods here can be adopted and are essentially the same.
[0074] In an optional implementation manner, the set sound source is an audio signal including one frequency or an audio signal including multiple frequencies.
[0075] In the present disclosure, the selection of the set sound source is very important, because it is required that the set sound source played in a low temperature environment should not cause damage to the speaker. Through a large number of experiments, it is found that when the set sound source meets the frequency requirements, the set sound source can include one frequency or multiple frequencies. This set sound source can be generated by a high-frequency signal, or it can be generated by filtering out the low-frequency components of a signal that do not meet the frequency requirements.
[0076] In an optional implementation, the set sound source is an ultrasonic signal.
[0077] In addition, the sound source may also be an ultrasonic signal. As known to those skilled in the art, when an ultrasonic signal is played, software and hardware support of the mobile phone system is required.
[0078] In addition, for high-frequency signals (signals with frequencies greater than 2KHz), their amplitudes are relatively small, so when the speaker plays a set sound source, the playback volume will be relatively low, so it will not have a significant impact on the user.
[0079] It should be noted that, if after receiving a speaker play instruction, if it is determined that the parameter related to the coil temperature of the speaker is greater than or equal to the corresponding parameter threshold, there is no need to perform a preheating process, and the relevant audio is played directly based on the play instruction.
[0080] The following describes a specific embodiment of the present disclosure in conjunction with a specific application scenario. In this embodiment, a speaker is set on a PAD, and a user plays audio through an application on the PAD. The temperature threshold is set to -15°C, and the set frequency is set to 2KHz. Figure 2 As shown, the method in this embodiment includes the following steps:
[0081] Step 201: Receive a speaker play instruction from a user
[0082] Step 202, obtaining the coil resistance value of the speaker in real time.
[0083] Step 203: obtaining the coil temperature value of the speaker based on the functional relationship between the resistance value and the temperature value.
[0084] Step 204, determining whether the coil temperature is less than -15°C.
[0085] Step 205: If it is less than, play the set sound source with a frequency of 3000KHz to preheat the speaker.
[0086] Step 206, in the process of playing the set sound source, the coil resistance value is obtained in real time and the corresponding coil temperature value is obtained.
[0087] Step 207: If it is determined that the coil temperature value obtained in real time is greater than or equal to -15°C, then stop playing the set sound source.
[0088] Step 208: Play the audio in the speaker play instruction.
[0089] The method in this embodiment is used to monitor the coil temperature in real time, and when the temperature is low, the coil is preheated. Once the coil is preheated to a temperature that meets the normal playback requirements, the coil preheating stops, and the audio in the user's playback instruction is played. This method is simple to operate, easy to implement, and does not require additional components. At the same time, it achieves the purpose of protecting the speaker and prolongs the service life of the speaker and related equipment.
[0090] The present disclosure also provides a device for playing audio with a speaker, such as Figure 3 As shown, the device comprises:
[0091] The receiving module 301 is configured to receive a play instruction;
[0092] An acquisition module 302 is configured to acquire parameters related to the coil temperature of the speaker after receiving a play instruction;
[0093] The playing module 303 is configured to play a set sound source when it is determined that the coil temperature is lower than a set temperature, and the signal frequency of the set sound source is greater than a set frequency; stop playing the set sound source when it is determined that the coil temperature rises to a set temperature or the playing of the set sound source reaches a set time; and after stopping playing the set sound source, play the corresponding audio based on the playing instruction.
[0094] In an optional implementation manner, the parameter related to the coil temperature of the speaker is a coil resistance value or a coil temperature value of the speaker.
[0095] In an optional implementation manner, the acquisition module 302 is further configured to:
[0096] Obtaining a coil resistance value of the speaker;
[0097] The coil temperature value is determined based on the coil resistance value.
[0098] In an optional implementation manner, the set sound source is an audio signal including one frequency or an audio signal including multiple frequencies.
[0099] In an optional implementation, the set sound source is an ultrasonic signal.
[0100] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0101] According to the method disclosed in the present invention, after receiving a speaker play instruction, a parameter related to the coil temperature of the speaker is obtained, and the coil temperature of the speaker is judged to be lower than the set temperature according to the parameter. If it is lower than the set temperature, a set sound source is played, and the frequency of the set sound source is greater than the set frequency. In the process of obtaining the parameters related to the coil temperature of the speaker, if it is judged that the coil temperature of the speaker rises to the set temperature or the playing of the set sound source reaches the set time, the playing of the set sound source is stopped. After the playing of the set sound source is stopped, the corresponding audio is played based on the playing instruction. According to this method, when the temperature of the speaker is too low, the speaker coil is preheated by playing a sound source that does not damage it. When the coil temperature of the speaker reaches the temperature threshold, the specified audio starts to play. The speaker according to this method can be used in a low temperature environment without causing damage to the speaker, thereby extending the service life of the speaker.
[0102] Furthermore, the method can accurately obtain the temperature of the speaker itself, thereby avoiding the problem that the speaker itself has reached the normal playback requirement but still cannot be used normally due to the low ambient temperature.
[0103] Figure 4 It is a block diagram of a device 400 for playing audio through a speaker according to an exemplary embodiment.
[0104] Reference Figure 4 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0105] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0106] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0107] The power component 406 provides power to the various components of the device 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.
[0108] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0109] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0110] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0111] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0112] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0113] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0114] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0115] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a method for playing audio with a speaker, the method comprising: after receiving a play instruction, obtaining parameters related to the coil temperature of the speaker; when it is determined according to the parameters that the coil of the speaker is lower than a set temperature, playing a set sound source, the signal frequency of the set sound source being greater than a set frequency; when it is determined that the coil temperature of the speaker rises to a set temperature or the playing of the set sound source reaches a set time, stopping the playing of the set sound source; based on the play instruction, playing the corresponding audio.
[0116] Figure 5 is a block diagram of a device 500 for playing audio with a speaker according to an exemplary embodiment. For example, the device 500 may be provided as a server. Figure 5 , the device 500 includes a processing component 522, which further includes one or more processors, and a memory resource represented by a memory 532, for storing instructions that can be executed by the processing component 522, such as an application. The application stored in the memory 532 may include one or more modules, each of which corresponds to a set of instructions. In addition, the processing component 522 is configured to execute instructions to perform the above method: after receiving a play instruction, obtain parameters related to the coil temperature of the speaker; when it is determined according to the parameters that the coil of the speaker is lower than the set temperature, play a set sound source, and the signal frequency of the set sound source is greater than the set frequency; when it is determined that the coil temperature of the speaker rises to the set temperature or the playing of the set sound source reaches the set time, stop playing the set sound source; based on the play instruction, play the corresponding audio.
[0117] The device 500 may also include a power supply component 526 configured to perform power management of the device 500, a wired or wireless network interface 550 configured to connect the device 500 to a network, and an input / output (I / O) interface 558. The device 500 may operate based on an operating system stored in the memory 532, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0118] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0119] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for playing audio with a speaker, characterized in that: The method comprises: After receiving the play instruction, obtaining parameters related to the coil temperature of the speaker; When it is determined according to the parameters that the coil temperature of the speaker is lower than the set temperature, a set sound source is played, the signal frequency of the set sound source is greater than the set frequency, wherein the set sound source is an ultrasonic signal; When it is determined that the temperature of the speaker coil rises to a set temperature or the playing of the set sound source reaches a set time, the playing of the set sound source is stopped; Based on the play instruction, the corresponding audio is played.
2. The method according to claim 1, characterized in that The parameter related to the coil temperature of the speaker is the coil resistance value or the coil temperature value of the speaker.
3. The method according to claim 2, characterized in that When the parameter is the coil temperature value, the acquiring the parameter related to the coil temperature of the speaker includes: Obtaining a coil resistance value of the speaker; The coil temperature value is determined based on the coil resistance value.
4. The method according to claim 1, characterized in that The set sound source is an audio signal including one frequency or an audio signal including multiple frequencies.
5. The method according to claim 1, characterized in that The set sound source is an ultrasonic signal.
6. A device for playing audio with a speaker, characterized in that: The device comprises: A receiving module, configured to receive a play instruction; An acquisition module, configured to acquire parameters related to the coil temperature of the speaker after receiving a play instruction; The playing module is configured to play a set sound source when it is determined that the coil temperature is lower than a set temperature, and the signal frequency of the set sound source is greater than the set frequency; stop playing the set sound source when it is determined that the coil temperature rises to a set temperature or the playing of the set sound source reaches a set time; and after stopping playing the set sound source, play corresponding audio based on the playing instruction, wherein the set sound source is an ultrasonic signal.
7. The device according to claim 6, characterized in that The parameter related to the coil temperature of the speaker is the coil resistance value or the coil temperature value of the speaker.
8. The device according to claim 7, characterized in that The acquisition module is also configured to: Obtaining a coil resistance value of the speaker; The coil temperature value is determined based on the coil resistance value.
9. The device according to claim 6, characterized in that The set sound source is an audio signal including one frequency or an audio signal including multiple frequencies.
10. The device according to claim 6, characterized in that The set sound source is an ultrasonic signal.
11. A device for playing audio with a loudspeaker, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the following steps when executing the executable instructions: After receiving the play instruction, obtaining parameters related to the coil temperature of the speaker; When it is determined according to the parameters that the coil of the speaker is lower than a set temperature, a set sound source is played, the signal frequency of the set sound source is greater than the set frequency, wherein the set sound source is an ultrasonic signal; When it is determined that the temperature of the speaker coil rises to a set temperature or the playing of the set sound source reaches a set time, the playing of the set sound source is stopped; Based on the play instruction, the corresponding audio is played.
12. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device, enables the device to perform a method for playing audio with a speaker, the method comprising: After receiving the play instruction, obtaining parameters related to the coil temperature of the speaker; When it is determined according to the parameters that the coil of the speaker is lower than a set temperature, a set sound source is played, the signal frequency of the set sound source is greater than the set frequency, wherein the set sound source is an ultrasonic signal; When it is determined that the temperature of the speaker coil rises to a set temperature or the playing of the set sound source reaches a set time, the playing of the set sound source is stopped; Based on the play instruction, the corresponding audio is played.
