CN116996810A - Audio processing method, device, equipment and storage medium of oral care equipment - Google Patents

Audio processing method, device, equipment and storage medium of oral care equipment Download PDF

Info

Publication number
CN116996810A
CN116996810A CN202310958145.1A CN202310958145A CN116996810A CN 116996810 A CN116996810 A CN 116996810A CN 202310958145 A CN202310958145 A CN 202310958145A CN 116996810 A CN116996810 A CN 116996810A
Authority
CN
China
Prior art keywords
target audio
target
audio data
oral care
motor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310958145.1A
Other languages
Chinese (zh)
Inventor
张致诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Stars Pulse Co Ltd
Original Assignee
Guangzhou Stars Pulse Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Stars Pulse Co Ltd filed Critical Guangzhou Stars Pulse Co Ltd
Priority to CN202310958145.1A priority Critical patent/CN116996810A/en
Publication of CN116996810A publication Critical patent/CN116996810A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61CDENTISTRY; APPARATUS OR METHODS FOR ORAL OR DENTAL HYGIENE
    • A61C17/00Devices for cleaning, polishing, rinsing or drying teeth, teeth cavities or prostheses; Saliva removers; Dental appliances for receiving spittle
    • A61C17/16Power-driven cleaning or polishing devices
    • A61C17/22Power-driven cleaning or polishing devices with brushes, cushions, cups, or the like
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61CDENTISTRY; APPARATUS OR METHODS FOR ORAL OR DENTAL HYGIENE
    • A61C17/00Devices for cleaning, polishing, rinsing or drying teeth, teeth cavities or prostheses; Saliva removers; Dental appliances for receiving spittle
    • A61C17/02Rinsing or air-blowing devices, e.g. using fluid jets or comprising liquid medication
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61CDENTISTRY; APPARATUS OR METHODS FOR ORAL OR DENTAL HYGIENE
    • A61C17/00Devices for cleaning, polishing, rinsing or drying teeth, teeth cavities or prostheses; Saliva removers; Dental appliances for receiving spittle
    • A61C17/16Power-driven cleaning or polishing devices
    • A61C17/22Power-driven cleaning or polishing devices with brushes, cushions, cups, or the like
    • A61C17/221Control arrangements therefor
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Dentistry (AREA)
  • Epidemiology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The application discloses an audio processing method, device and equipment of oral care equipment and a storage medium. Wherein the oral care device comprises a control unit, a motor drive and a motor; the control unit is used for decoding the audio file and comprises a storage block for storing decoded data; the method comprises the following steps: acquiring a target audio file; decoding a first target audio fragment in the target audio file to obtain first target audio data; storing the first target audio data into a storage block; based on the first target audio data in the storage block, outputting a corresponding first target pulse modulation signal to the motor driving part, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal, thereby reducing the requirement on the storage space of the oral care equipment, playing the audio and improving the fluency of audio synchronous playing through the pre-stored decoded audio data.

Description

Audio processing method, device, equipment and storage medium of oral care equipment
Technical Field
The present application relates to the field of care technologies, and in particular, to an audio processing method, apparatus, device, and storage medium for an oral care device.
Background
In the related art, the storage space in the electric toothbrush is small, and if the decoded audio file is plugged into the storage chip of the electric toothbrush at one time, the storage chip is exploded up immediately. For example, for a 15s audio file, the mp3 lossy format is 10kB in size, the wav file is 100kB in size, and the decoded array file size will reach 1000kB. Therefore, in the process of playing audio while brushing teeth, the processing of audio files cannot be efficiently and stably realized.
Disclosure of Invention
The embodiment of the application provides an audio processing method, device, equipment and storage medium of oral care equipment, which not only reduce the requirement on the storage space of the oral care equipment, but also enable the oral care equipment to efficiently and stably process audio files through pre-stored decoded audio data while playing audio, thereby improving the fluency of synchronous playing of the audio.
In a first aspect, embodiments of the present application provide an audio processing method of an oral care device including a control unit, a motor driver, and a motor; the control unit is used for decoding the audio file; the control unit comprises a storage block for storing decoded data; the method comprises the following steps:
Acquiring a target audio file;
decoding the first target audio fragment in the target audio file to obtain first target audio data;
storing the first target audio data into the storage block;
and outputting a corresponding first target pulse modulation signal to the motor driving part based on the first target audio data in the storage block, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal.
In one possible implementation manner, after the outputting, by the motor driver, the corresponding first target pulse modulation signal based on the first target audio data in the storage block, the method further includes:
after the first target audio data in the storage block is output, decoding a second target audio segment in the target audio file to obtain second target audio data; the second target audio fragment is a fragment played after the first target audio fragment;
storing the second target audio data into the storage block;
Outputting a second target pulse modulation signal corresponding to the second target audio data in the storage block to the motor driving part based on the second target audio data, so that the motor driving part drives the motor to output a second target audio corresponding to the second target audio data through swinging based on the second target pulse modulation signal;
and updating the first target audio data into the second target audio data, and executing the second target audio segment in the target audio file after the output of the first target audio data in the storage block is completed again to obtain second target audio data, wherein the second target audio segment in the target audio file is decoded until the oral care work of the oral care equipment is finished or the decoding of the target audio file is finished.
In one possible implementation manner, after the outputting, by the motor driver, the corresponding first target pulse modulation signal based on the first target audio data in the storage block, and before the storing, by the motor driver, the second target audio data in the storage block, the method further includes:
and deleting the first target audio data in the storage block after the first target audio data in the storage block is output.
In one possible implementation manner, the target audio data corresponding to each target audio segment in the target audio file is smaller than or equal to the storage amount of the storage block.
In one possible implementation, the control unit includes a plurality of memory blocks;
after the target audio file is acquired, the method further includes:
decoding the previous multiple target audio fragments in the target audio file, and sequentially storing a plurality of target audio data obtained after decoding into the plurality of storage blocks;
outputting a corresponding first target pulse modulation signal to the motor driver based on first target audio data corresponding to a first target audio segment in the previous multi-segment target audio segments stored in a first storage block of the plurality of storage blocks;
after the output of the first target audio data in the first storage block is completed, outputting a corresponding second target pulse modulation signal to the motor driver based on a second target audio data corresponding to a second target audio segment in the previous multi-segment target audio segment stored in a second storage block in the plurality of storage blocks, deleting the first target audio data in the first storage block, decoding a next target audio segment in the previous multi-segment target audio segment in the target audio file, and storing the next target audio data obtained after decoding in the first storage block;
And so on until the end of the oral care effort of the above-described oral care device or the end of the above-described decoding of the target audio file.
In one possible implementation, the oral care device outputs the second target pulse modulated signal and outputs the first target pulse modulated signal during an oral care session.
In one possible implementation manner, the method further includes:
if the output of the target audio corresponding to the target audio file is completed but the oral care operation of the oral care device is not finished, outputting a target cleaning driving signal to the motor driving part based on the control unit so that the motor driving part drives the motor to continue the oral care operation based on the target cleaning driving signal;
or
And if the target audio corresponding to the target audio file is output, but the oral care work of the oral care equipment is not finished, re-executing the step of acquiring the target audio file based on the control unit.
In one possible implementation manner, the method further includes:
and stopping outputting the target cleaning driving signal based on the control unit to stop swinging the motor if the target audio corresponding to the target audio file is output.
In one possible implementation, the first target audio data includes a first target audio driving signal;
the outputting, to the motor driver, a corresponding first target pulse modulation signal based on the first target audio data in the memory block, includes:
superposing the first target audio driving signal and the target cleaning driving signal in the storage block to obtain a first target pulse modulation signal;
and outputting the first target pulse modulation signal to the motor driving part, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data and perform oral care work corresponding to the target cleaning driving signal through swinging based on the first target pulse modulation signal.
In a possible implementation manner, the first target audio driving signal includes a first target music driving signal and/or a first target voice driving signal; the first target music driving signal is used for driving the motor to output corresponding first target music through swinging; the first target voice driving signal is used for driving the motor to output corresponding first target prompt voice through swinging.
In one possible implementation, the first target audio data includes a signal obtained by superimposing the first target audio driving signal and the target cleaning driving signal.
In one possible implementation, the memory block includes a ring buffer.
In a second aspect, an embodiment of the present application provides an audio processing apparatus of an oral care device, the oral care device including a motor, the audio processing apparatus of the oral care device including:
the acquisition module is used for acquiring the target audio file;
the first decoding module is used for decoding the first target audio fragment in the target audio file to obtain first target audio data;
a first storage module for storing the first target audio data into the storage block;
and the first output module is used for outputting a corresponding first target pulse modulation signal to the motor driving part based on the first target audio data in the storage block so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal.
In one possible implementation manner, the first decoding module is further configured to: after the first target audio data in the storage block is output, decoding a second target audio segment in the target audio file to obtain second target audio data; the second target audio fragment is a fragment played after the first target audio fragment;
The first storage module is further configured to: storing the second target audio data into the storage block;
the first output module is further configured to: outputting a second target pulse modulation signal corresponding to the second target audio data in the storage block to the motor driving part based on the second target audio data, so that the motor driving part drives the motor to output a second target audio corresponding to the second target audio data through swinging based on the second target pulse modulation signal;
the audio processing device of the above oral care apparatus further comprises:
and the updating module is used for updating the first target audio data into the second target audio data, and executing the step of decoding the second target audio segment in the target audio file after the output of the first target audio data in the storage block is completed again to obtain the second target audio data until the oral care work of the oral care equipment is finished or the decoding of the target audio file is finished.
In one possible implementation, the audio processing device of the oral care device further includes:
and the deleting module is used for deleting the first target audio data in the storage block after the first target audio data in the storage block is output.
In one possible implementation manner, the target audio data corresponding to each target audio segment in the target audio file is smaller than or equal to the storage amount of the storage block.
In one possible implementation, the control unit includes a plurality of memory blocks;
the audio processing device of the above oral care apparatus further comprises:
the second decoding module is used for decoding the front multi-section target audio fragments in the target audio file;
the second storage module is used for sequentially storing the plurality of target audio data obtained after decoding into the plurality of storage blocks;
the second output module is used for outputting a corresponding first target pulse modulation signal to the motor driving piece based on first target audio data corresponding to a first target audio segment in the front multi-segment target audio segments stored in a first storage block in the plurality of storage blocks;
the circulation module is used for outputting a second target pulse modulation signal corresponding to second target audio data corresponding to a second target audio segment in the front multi-segment target audio segment stored in a second storage block in the plurality of storage blocks to the motor driver after the first target audio data in the first storage block is output, deleting the first target audio data in the first storage block, decoding a next target audio segment in the front multi-segment target audio segment in the target audio file, and storing the next target audio data obtained after decoding in the first storage block;
And so on until the end of the oral care effort of the above-described oral care device or the end of the above-described decoding of the target audio file.
In one possible implementation, the oral care device outputs the second target pulse modulated signal and outputs the first target pulse modulated signal during an oral care session.
In one possible implementation, the audio processing device of the oral care device further includes:
a third output module, configured to output a target cleaning driving signal to the motor driver based on the control unit if the target audio corresponding to the target audio file is output but the oral care operation of the oral care device is not finished, so that the motor driver drives the motor to continue the oral care operation based on the target cleaning driving signal;
or
The acquisition module is further configured to: and if the target audio corresponding to the target audio file is output, but the oral care work of the oral care equipment is not finished, re-executing the step of acquiring the target audio file based on the control unit.
In one possible implementation, the audio processing device of the oral care device further includes:
and a fourth output module, configured to stop outputting a target cleaning driving signal based on the control unit to stop swinging the motor if the target audio corresponding to the target audio file is output.
In one possible implementation, the first target audio data includes a first target audio driving signal;
the first output module includes:
a signal superposition unit, configured to superimpose the first target audio driving signal and the target cleaning driving signal in the storage block, to obtain a first target pulse modulation signal;
and the output unit is used for outputting the first target pulse modulation signal to the motor driving part so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data and perform oral care work corresponding to the target cleaning driving signal through swinging based on the first target pulse modulation signal.
In a possible implementation manner, the first target audio driving signal includes a first target music driving signal and/or a first target voice driving signal; the first target music driving signal is used for driving the motor to output corresponding first target music through swinging; the first target voice driving signal is used for driving the motor to output corresponding first target prompt voice through swinging.
In one possible implementation, the first target audio data includes a signal obtained by superimposing the first target audio driving signal and the target cleaning driving signal.
In one possible implementation, the memory block includes a ring buffer.
In a third aspect, embodiments of the present application provide an oral care device comprising: a processor and a memory;
the memory is adapted to store a computer program adapted to be loaded by the processor and to perform the steps of the method provided by the first aspect of the embodiments or any one of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method provided by the first aspect or any one of the possible implementations of the first aspect of the embodiments of the present application.
In the embodiment of the application, the first target audio data is obtained by decoding the first target audio fragment in the target audio file, the first target audio data is stored in the storage block, and finally, the corresponding first target pulse modulation signal is output to the motor driving part based on the first target audio data in the storage block, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal, thereby avoiding the problem that the storage chip in the control unit is fully exploded to influence the audio playing effect due to the control unit of the next sub-plug inlet cavity nursing device after the target audio file is decoded, reducing the requirement on the storage space of the oral cavity nursing device, and enabling the oral cavity nursing device to efficiently and stably process the audio file in the process of playing the audio while carrying out oral cavity nursing through the pre-stored decoded audio data, and improving the smoothness of the synchronous playing of the audio of the oral cavity nursing device.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic block diagram of an audio processing system of an oral care device according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a method of audio processing for an oral care device according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of an implementation of an audio processing method of an oral care device according to an exemplary embodiment of the present application;
FIG. 4 is a flow chart of another method of audio processing of an oral care device according to an exemplary embodiment of the present application;
FIG. 5 is a schematic illustration of an implementation of an audio processing method of another oral care device according to an exemplary embodiment of the present application;
FIG. 6 is a flow chart of another method of audio processing for an oral care device according to an exemplary embodiment of the present application;
FIG. 7 is a schematic diagram of an implementation of an audio processing method of another oral care device according to an exemplary embodiment of the present application;
fig. 8 is a schematic structural view of an audio processing device of an oral care apparatus according to an exemplary embodiment of the present application;
fig. 9 is a schematic structural view of an oral care device according to an exemplary embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
The terms first, second, third and the like in the description and in the claims and in the above drawings, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Referring next to fig. 1, a schematic diagram of an audio processing system of an oral care device according to an embodiment of the present application is shown. As shown in fig. 1, the audio processing system of the oral care device may include: control unit, motor drive and motor. Wherein:
the control unit can be a micro control unit (Microcontroller Unit, MCU), also called a single-chip microcomputer or a single-chip microcomputer, which properly reduces the frequency and specification of a central processing unit (Central Process Unit, CPU), integrates peripheral interfaces such as a memory, a counter, USB, A/D conversion, UART, PLC, DMA and the like, and even LCD driving circuits on a single chip to form a chip-level computer, and performs different combination control for different application occasions.
Specifically, the control unit is used for decoding the audio file. The control unit comprises a flash memory space and a memory block. The flash memory space is a nonvolatile memory medium and is used for storing target audio files, and the flash memory space has high reliability, high reading and writing speed and low power consumption. The memory block may be, but is not limited to, a random access memory within the control unit, and may be, but is not limited to, a ring buffer for storing decoded data. A circular buffer, also called circular buffer, circular queue, circular buffer, is a data structure representing a fixed size, end-to-end buffer, suitable for buffering data streams.
Specifically, after the control unit obtains the target audio file, in order to avoid the problem that the storage chip in the control unit is full and affects the audio playing effect caused by the control unit of the inlet cavity nursing device at a time after the decoding of the target audio file is completed, one target audio fragment in the target audio file can be intercepted first to perform decoding processing to obtain corresponding target audio data, the decoded target audio data are stored in an annular buffer zone of the storage block, and finally, a corresponding target pulse modulation signal is output to the motor driving part based on the target audio data in the annular buffer zone of the storage block, so that the motor driving part drives the motor to output target audio corresponding to the target audio data in a bone conduction mode through swinging based on the target pulse modulation signal. After the output of the target audio data in the annular buffer zone of the storage block is completed, the next target audio segment in the target audio file can be intercepted for decoding processing to obtain corresponding target audio data, the target audio data obtained after the next target audio segment is decoded is stored in the annular buffer zone of the storage block again, and finally, a corresponding target pulse modulation signal is output to the motor driver based on the target audio data in the annular buffer zone of the storage block.
Optionally, in order to save the storage space in the annular buffer of the storage block and reduce the requirement for the storage space, after the output of the target audio data in the annular buffer of the storage block is completed, the target audio data in the annular buffer of the storage block is deleted, and then the target audio data decoded by the next target audio segment in the target audio file is stored in the annular buffer of the storage block.
It will be appreciated that the control unit may include one or more memory blocks, and embodiments of the present application are not limited in this regard. The target audio file may be, but is not limited to, an mp3 audio file, a wav audio file, or the like.
Optionally, after the control unit obtains the target audio file, the control unit may decode the target audio file first, store the target audio data obtained after decoding in a ring buffer area of the storage block in a segmented manner, and finally sequentially output corresponding target pulse modulation signals to the motor driver based on each segment of target audio data in the ring buffer area of the storage block, so that the motor driver drives the motor to output target audio corresponding to the target audio data in a bone conduction manner through swinging based on the target pulse modulation signals.
The motor driver may be a motor driver chip, and the motor may be, but not limited to, an acoustic motor. The motor driving piece is used for driving the motor to swing, and then playing audio in a bone conduction mode through the motor swing, or realizing oral care and the like through the motor swing.
It will be appreciated that the audio processing system of the above-described oral care device may be applied to oral care devices capable of oral care, such as, but not limited to, electric toothbrushes, mouthwashes, etc., to enable the oral care device to play audio. The oral care device may also, but is not limited to, be mounted with one or more indicators, one or more keys, a speaker, a motor, etc.
Next, an audio processing method of an oral care device according to an exemplary embodiment of the present application will be described with reference to fig. 1. Referring specifically to fig. 2, a flowchart of an audio processing method of an oral care device according to an embodiment of the present application is shown. As shown in fig. 2, the audio processing method of the oral care device includes the following steps:
s201, acquiring a target audio file.
Optionally, the oral care device may, but is not limited to, generate a corresponding target audio play instruction based on the target oral care information or a target oral care operation trigger of the user during oral care. After the oral care device acquires the target audio playing instruction, the oral care device can directly call out the corresponding target audio file from a plurality of audio files stored in advance. The target oral care operation may be, but not limited to, clicking, long pressing, short pressing, etc., and the target oral care information may be, but not limited to, including a total oral care time period longer than a preset total time period, a current oral care time period longer than a preset time period corresponding to a current oral care position, a current oral care pressure greater than a preset pressure, a current oral care amplitude greater than a preset amplitude, a current oral care mode being a music playing mode, etc. The preset total time period may be, but not limited to, 3 minutes or 2 minutes, 30 seconds, etc., and the preset time period may be, but not limited to, 30 seconds or 45 seconds, etc.
Alternatively, the oral care device may establish a connection with the terminal and, upon receiving the target audio play instruction, obtain a corresponding target audio file from the terminal in response to the target audio play instruction.
It can be appreciated that the target oral care mode currently corresponding to the oral care device is different, and the obtained target audio file is different; and/or the target oral care information corresponding to the oral care equipment is different, and the obtained target audio files are different. According to the embodiment of the application, the corresponding target audio file can be acquired aiming at different current oral care modes or different current oral care information, so that the oral care equipment can realize personalized playing of the audio, the oral care effect of a user can be ensured, and the user can know the current corresponding oral care information in the process of oral care through playing the audio to a certain extent.
S202, decoding the first target audio fragment in the target audio file to obtain first target audio data.
Specifically, after the target audio file is obtained, the oral care device may intercept a target audio segment, i.e., a first target audio segment, from the target audio file before playing the audio, and decode the first target audio segment to obtain corresponding target audio data,
And S203, storing the first target audio data into a storage block.
Specifically, a section of memory space (memory block) is divided first in the initialization stage of the program of the oral care device to store the decoded array file. After the first target audio fragment in the target audio file is decoded, the first target audio data obtained after decoding can be stored in the storage block, so that the cache of the target audio data obtained after decoding the target audio file is realized, and the requirement on the storage space of the oral care equipment is reduced.
It can be understood that, in order to ensure the smoothness of decoding and audio playing of the target audio file, the target audio data corresponding to each target audio segment in the target audio file should be smaller than or equal to the storage amount of the storage block, so as to avoid the problem that the decoding storage efficiency is affected by the overlarge target audio data corresponding to each target audio segment in the target audio file.
S204, outputting a corresponding first target pulse modulation signal to the motor driving part based on the first target audio data in the storage block, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal.
For example, after the oral care device acquires the target audio file, the oral care device may decode the first second audio segment of the target audio file, store the decoded first second audio data in a storage block opened in advance, and output a corresponding first target pulse modulation signal to the motor driver based on the first second audio data in the storage block, so that the motor driver drives the motor to output the first second audio corresponding to the first second audio data through swinging based on the first target pulse modulation signal.
In the embodiment of the application, the first target audio data is obtained by decoding the first target audio fragment in the target audio file, the first target audio data is stored in the storage block, and finally, the corresponding first target pulse modulation signal is output to the motor driving part based on the first target audio data in the storage block, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal, thereby avoiding the problem that the storage chip in the control unit is fully exploded to influence the audio playing effect due to the control unit of the next sub-plug inlet cavity nursing device after the target audio file is decoded, reducing the requirement on the storage space of the oral cavity nursing device, and enabling the oral cavity nursing device to efficiently and stably process the audio file in the process of playing the audio while carrying out oral cavity nursing through the pre-stored decoded audio data, and improving the smoothness of the synchronous playing of the audio of the oral cavity nursing device.
Alternatively, the first target audio data may include a signal obtained by superimposing the first target audio driving signal and the target cleaning driving signal. That is, the data in the target audio file may be a signal obtained by overlapping the target audio driving signal and the target cleaning driving signal in advance, that is, after the oral care device obtains the target audio file, no additional signal overlapping operation is required, and synchronous playing of the audio of the oral care device can be efficiently and smoothly realized while oral care is performed.
Alternatively, the first target audio data may include a first target audio driving signal. As shown in fig. 3, after decoding a first target audio segment in a target audio file and storing first target audio data obtained after decoding in a storage block, outputting a corresponding first target pulse modulation signal to a motor driver based on the first target audio data in the storage block may include: firstly, superposing a first target audio driving signal and a target cleaning driving signal in a storage block to obtain a first target pulse modulation signal; and then, outputting the first target pulse modulation signal to the motor driving part, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data and perform oral care work corresponding to the target cleaning driving signal through swinging based on the first target pulse modulation signal. In the embodiment of the application, the first target pulse modulation signal is obtained by superposing the first target audio driving signal and the target cleaning driving signal in the storage block and is output to the motor driving piece, so that the oral care equipment can play audio while carrying out oral care. In addition, the first target audio driving signal decoded in the storage block and the target cleaning driving signal can be overlapped and output to the motor driving piece, so that the audio is output at intervals in the oral care process, reminding or guiding a user to better perform oral care is realized, and the audio driving signal output at intervals also enables the oral care equipment to have more sufficient decoding and buffering time.
Further, the first target audio driving signal includes a first target music driving signal and/or a first target voice driving signal; the first target music driving signal is used for driving the motor to output corresponding first target music through swinging; the first target voice driving signal is used for driving the motor to output corresponding first target prompt voice through swinging. According to the embodiment of the application, the audio data after decoding stored in advance can be realized based on the music driving signal, so that the oral care equipment can smoothly play music while oral care is performed, and the audio data after decoding stored in advance can be realized based on the voice driving signal, so that the oral care equipment can smoothly play prompt voice while oral care is performed.
Referring next to fig. 4, a flowchart of another audio processing method of an oral care device according to an embodiment of the present application is shown. As shown in fig. 4, the audio processing method of the oral care device includes the following steps:
s401, acquiring a target audio file.
Specifically, S401 corresponds to S201, and will not be described here.
S402, decoding the first target audio segment in the target audio file to obtain first target audio data.
Specifically, S402 corresponds to S202, and will not be described here.
S403, storing the first target audio data in the storage block.
Specifically, S403 corresponds to S203, and will not be described here.
S404, outputting a corresponding first target pulse modulation signal to the motor driving part based on the first target audio data in the storage block, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal.
Specifically, S404 corresponds to S204, and will not be described here.
S405, after the output of the first target audio data in the storage block is completed, decoding the second target audio segment in the target audio file to obtain second target audio data, wherein the second target audio segment is a segment played after the first target audio segment.
Specifically, after the output of the first target audio data in the storage block is completed, a next target audio segment, namely a second target audio segment, may be cut out from the target audio file, and the second target audio segment is decoded to obtain corresponding second target audio data. The second target audio segment is a segment played after the first target audio segment.
It will be appreciated that, in order to ensure smoothness and continuity of playing of audio data in the target audio file, the second target audio clip is an audio clip that is played after and continuous with the first target audio clip.
And S406, storing the second target audio data into a storage block.
Specifically, the implementation process of S406 is similar to the implementation process of S203, and will not be described herein.
And S407, outputting a corresponding second target pulse modulation signal to the motor driving part based on the second target audio data in the storage block, so that the motor driving part drives the motor to output second target audio corresponding to the second target audio data through swinging based on the second target pulse modulation signal.
Specifically, the implementation process of S407 is similar to the implementation process of S204, and will not be described here again.
Optionally, the oral care device outputs the second target pulse modulation signal and outputs the first target pulse modulation signal during oral care operation, and the target time interval may be, but is not limited to, 30 seconds or 10 seconds, etc., so as to provide sufficient time for the decoding buffer of the audio file by outputting the audio at a certain time interval, such as, for example, outputting the audio once every 30 seconds.
Optionally, after the first target audio data in the storage block is output, the second target pulse modulation signal may be output, but not limited to, when the current oral care pressure of the oral care device is greater than a preset pressure, that is, the current oral care pressure is too great, or when the current oral care duration of the oral care device reaches a preset duration, that is, the current oral care duration reaches the standard, so as to provide sufficient time for decoding and buffering the audio file, and also prompt the user of the current oral care condition of the oral care device through the second target pulse modulation signal output based on the decoded second target audio data, for example, prompt that the current oral care pressure of the user is too great or the current oral care duration reaches the standard, and so on, so as to improve the oral care effect of the oral care device.
S408, it is determined whether the oral care work of the oral care device is ended or whether the decoding of the target audio file is ended.
Specifically, after the second target audio data in the storage block is output, it may be further determined whether the oral care work of the oral care device is finished or whether the target audio file is decoded, thereby determining whether the oral care device still needs to continue audio processing.
And S409, if not, updating the first target audio data into the second target audio data.
Specifically, if the oral care operation of the oral care device is not finished, for example, but not limited to, that the oral care time length of the oral care device reaches the preset time length, or the target audio file is not finished in decoding, for example, but not limited to, that the target audio file still has the audio data that is not decoded, the first target audio data may be updated to the second target audio data, and the above S405 is executed again, after the output of the first target audio data in the storage block is finished, the decoding process is performed on the second target audio segment in the target audio file, so as to obtain the second target audio data, until the oral care operation of the oral care device is finished or after the decoding of the target audio file is finished, the audio processing of the oral care device is determined to be finished.
And S410, if so, determining that the audio processing of the oral care equipment is finished.
In the embodiment of the application, after the output of the first target audio data in the storage block is completed, the second target audio fragment played after the first target audio fragment in the target audio file is further decoded, the decoded second target audio data is stored in the storage block, finally, the corresponding second target pulse modulation signal is output to the motor driving part based on the second target audio data in the storage block, the motor driving part drives the motor to output the second target audio corresponding to the second target audio data through swinging based on the second target pulse modulation signal, and the like, and the audio processing of the oral care equipment is determined to be finished until the oral care work of the oral care equipment is finished or the target audio file is finished, so that the problem that the audio playing effect is influenced due to the fact that a storage chip in the control unit is fully exploded by a control unit of the oral care equipment is avoided after the decoding of the target audio file is finished, after the output of the audio data in the storage block is finished, the audio data corresponding to the audio fragment after the subsequent decoding is continuously stored in advance, and the audio synchronous playing smoothness of the oral care equipment is improved.
Optionally, in the implementation process of the audio processing method of the oral care device described in fig. 4, as shown in fig. 5, in order to save the storage space in the annular buffer of the storage block, reduce the requirement for the storage space, delete the first target audio data in the annular buffer of the storage block first after the output of the first target audio data in the annular buffer of the storage block is completed, and store the second target audio data decoded by the second target audio segment in the target audio file in the annular buffer of the storage block, so as to avoid wasting the storage space of the annular buffer of the storage block to store the played first target audio data, and improve the utilization rate of the storage block.
Referring next to fig. 6, a flowchart of another audio processing method of an oral care device according to an embodiment of the present application is shown. As shown in fig. 6, the audio processing method of the oral care device includes the following steps:
s601, acquiring a target audio file.
Specifically, S601 corresponds to S201, and will not be described here again.
S602, decoding the previous multiple target audio fragments in the target audio file, and sequentially storing the multiple target audio data obtained after decoding into multiple storage blocks.
Specifically, the control unit may include a plurality of storage blocks, after the oral care device acquires the target audio file, the control unit may decode the previous multiple target audio segments in the target audio file, and sequentially store the multiple target audio data obtained after decoding into the plurality of storage blocks of the control unit, so as to improve the decoding cache efficiency of the oral care device, and further improve the smoothness of audio playing of the oral care device.
S603, outputting a corresponding first target pulse modulation signal to the motor driver based on first target audio data corresponding to a first target audio segment in the previous multi-segment target audio segments stored in a first storage block in the plurality of storage blocks.
Specifically, the implementation process of S603 is similar to the implementation process of S204, and will not be described here again.
S604, after the output of the first target audio data in the first storage block is completed, outputting a corresponding second target pulse modulation signal to the motor driver based on the second target audio data corresponding to the second target audio segment in the previous multi-segment target audio segments stored in the second storage block.
Specifically, after the output of the first target audio data in the first storage block is completed, the corresponding second target pulse modulation signal can be directly output to the motor driver based on the second target audio data corresponding to the second target audio segment in the previous multi-segment target audio segment stored in the second storage block without continuing decoding by the control unit.
S605, deleting the first target audio data in the first storage block.
Specifically, after the output of the first target audio data in the first storage block is completed, the first target audio data stored in the first storage block can be directly deleted, so that the first target audio data which is invalid after being played is prevented from wasting the storage space of the first storage block.
S606, decoding a target audio segment of a next target audio segment of the previous multiple target audio segments in the target audio file, and storing the decoded next target audio data into the first storage block.
Specifically, after the output of the first target audio data in the first storage block is completed, the corresponding second target pulse modulation signal can be output to the motor driver based on the second target audio data corresponding to the second target audio segment in the first multi-segment target audio segment stored in the second storage block in the plurality of storage blocks, and simultaneously, the decoding processing is continuously performed on the second target audio segment corresponding to the next target audio segment in the first multi-segment target audio segment in the target audio file, and the decoded next target audio data is stored in the first storage block, and so on until the oral care work of the oral care equipment is finished or the decoding of the target audio file is finished, so that the pulse modulation signal can be output while the decoding is performed, instead of continuously intercepting the target audio segment from the target audio file for the decoding and buffering after the audio data in all the storage blocks of the control unit are completely played, the decoding and buffering efficiency of the oral care equipment can be improved, and the smoothness of the playing audio of the oral care equipment can be further improved.
In some possible embodiments, as shown in fig. 7, if the target audio corresponding to the target audio file is output, but the oral care operation of the oral care device is not finished, the target cleaning driving signal may be output to the motor driver based on the control unit, so that the motor driver drives the motor to continue the oral care operation based on the target cleaning driving signal. In the embodiment of the application, if the target audio wave in the audio file is played, but the oral care is not finished, the control unit can pause the output of the target audio, but can output the target cleaning driving signal to drive the motor to continue the oral care work, so that the user can continuously complete the oral care, and the influence of the audio play on the oral care is avoided.
In some possible embodiments, if the output of the target audio corresponding to the target audio file is completed, but the oral care operation of the oral care device is not completed, the step of obtaining the target audio file may be re-executed based on the control unit, and then the target audio file may be re-decoded, buffered and output in segments, so that the oral care device may also play the target audio in a circulating manner in the process that the oral care operation is not completed after the target audio is played, so as to improve the continuity of audio playing.
In some possible embodiments, the audio playing duration corresponding to a target audio file (such as, but not limited to, a song) may correspond to an oral care cycle, thereby enabling the user to better enjoy the oral care process and grasp the oral care time. As shown in fig. 7, if the target audio corresponding to the target audio file is output, which indicates that the current oral care duration of the oral care device has reached the standard, and no oral care is needed, the output of the target cleaning driving signal can be stopped based on the control unit, so that the motor stops swinging, thus the preset duration of the oral care duration reaching the desired user can be accumulated better, and the oral care effect is ensured.
Next, please refer to fig. 8, which is a schematic diagram illustrating an audio processing apparatus of an oral care device according to an embodiment of the present application. The oral care device includes a motor, and as shown in fig. 8, an audio processing apparatus 800 of the oral care device includes:
an obtaining module 810, configured to obtain a target audio file;
a first decoding module 820, configured to decode a first target audio segment in the target audio file to obtain first target audio data;
A first storage module 830, configured to store the first target audio data into the storage block;
and a first output module 840 for outputting a corresponding first target pulse modulation signal to the motor driver based on the first target audio data in the storage block, so that the motor driver drives the motor to output a first target audio corresponding to the first target audio data by swinging based on the first target pulse modulation signal.
In one possible implementation, the first decoding module 820 is further configured to: after the first target audio data in the storage block is output, decoding a second target audio segment in the target audio file to obtain second target audio data; the second target audio fragment is a fragment played after the first target audio fragment;
the first storage module 830 is further configured to: storing the second target audio data into the storage block;
the first output module 840 is further configured to: outputting a second target pulse modulation signal corresponding to the second target audio data in the storage block to the motor driving part based on the second target audio data, so that the motor driving part drives the motor to output a second target audio corresponding to the second target audio data through swinging based on the second target pulse modulation signal;
The audio processing apparatus 800 of the above oral care device further includes:
and the updating module is used for updating the first target audio data into the second target audio data, and executing the step of decoding the second target audio segment in the target audio file after the output of the first target audio data in the storage block is completed again to obtain the second target audio data until the oral care work of the oral care equipment is finished or the decoding of the target audio file is finished.
In one possible implementation, the audio processing apparatus 800 of the oral care device further includes:
and the deleting module is used for deleting the first target audio data in the storage block after the first target audio data in the storage block is output.
In one possible implementation manner, the target audio data corresponding to each target audio segment in the target audio file is smaller than or equal to the storage amount of the storage block.
In one possible implementation, the control unit includes a plurality of memory blocks;
the audio processing apparatus 800 of the above oral care device further includes:
the second decoding module is used for decoding the front multi-section target audio fragments in the target audio file;
The second storage module is used for sequentially storing the plurality of target audio data obtained after decoding into the plurality of storage blocks;
the second output module is used for outputting a corresponding first target pulse modulation signal to the motor driving piece based on first target audio data corresponding to a first target audio segment in the front multi-segment target audio segments stored in a first storage block in the plurality of storage blocks;
the circulation module is used for outputting a second target pulse modulation signal corresponding to second target audio data corresponding to a second target audio segment in the front multi-segment target audio segment stored in a second storage block in the plurality of storage blocks to the motor driver after the first target audio data in the first storage block is output, deleting the first target audio data in the first storage block, decoding a next target audio segment in the front multi-segment target audio segment in the target audio file, and storing the next target audio data obtained after decoding in the first storage block;
and so on until the end of the oral care effort of the above-described oral care device or the end of the above-described decoding of the target audio file.
In one possible implementation, the oral care device outputs the second target pulse modulated signal and outputs the first target pulse modulated signal during an oral care session.
In one possible implementation, the audio processing apparatus 800 of the oral care device further includes:
a third output module, configured to output a target cleaning driving signal to the motor driver based on the control unit if the target audio corresponding to the target audio file is output but the oral care operation of the oral care device is not finished, so that the motor driver drives the motor to continue the oral care operation based on the target cleaning driving signal;
or
The acquiring module 810 is further configured to: and if the target audio corresponding to the target audio file is output, but the oral care work of the oral care equipment is not finished, re-executing the step of acquiring the target audio file based on the control unit.
In one possible implementation, the audio processing apparatus 800 of the oral care device further includes:
and a fourth output module, configured to stop outputting a target cleaning driving signal based on the control unit to stop swinging the motor if the target audio corresponding to the target audio file is output.
In one possible implementation, the first target audio data includes a first target audio driving signal;
the first output module 840 includes:
a signal superposition unit, configured to superimpose the first target audio driving signal and the target cleaning driving signal in the storage block, to obtain a first target pulse modulation signal;
and the output unit is used for outputting the first target pulse modulation signal to the motor driving part so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data and perform oral care work corresponding to the target cleaning driving signal through swinging based on the first target pulse modulation signal.
In a possible implementation manner, the first target audio driving signal includes a first target music driving signal and/or a first target voice driving signal; the first target music driving signal is used for driving the motor to output corresponding first target music through swinging; the first target voice driving signal is used for driving the motor to output corresponding first target prompt voice through swinging.
In one possible implementation, the first target audio data includes a signal obtained by superimposing the first target audio driving signal and the target cleaning driving signal.
In a possible implementation, the storage block is a ring buffer inside the control unit.
The division of the modules in the audio processing device of the oral care apparatus described above is for illustration only, and in other embodiments, the audio processing device of the oral care apparatus may be divided into different modules as desired to perform all or part of the functions of the audio processing device of the oral care apparatus described above. The implementation of the various modules in the audio processing apparatus of the oral care device provided in the embodiments of the present description may be in the form of a computer program. The computer program may be run on a terminal or an oral care device. Program modules of the computer program may be stored on the memory of the terminal or the oral care device. The computer program, when executed by a processor, implements all or part of the steps of the audio processing method of an oral care device described in the embodiments of the present specification.
Referring next to fig. 9, a schematic diagram of an oral care device according to an embodiment of the present application is shown. As shown in fig. 9, the oral care device 900 may include: at least one processor 910, a network interface 920, a user interface 930, a memory 940, a motor drive 950, a motor 960, and at least one communication bus 970.
Wherein a communications bus 970 is used to enable connected communication between these components.
The motor driving member 950 may be a motor driving chip for driving the motor 960 to swing, so as to drive the nursing member to play audio in a bone conduction manner through the swing of the motor 960, or realize oral care through the swing of the motor 960.
Wherein the motor 960 may also be, but is not limited to, an acoustic motor.
The network interface 920 may optionally include a bluetooth module, a near field communication (Near Field Communication, NFC) module, a Wi-Fi module, and the like.
Among other things, the user interface 930 may include a Display screen (Display) and a Camera (Camera); optionally, the user interface 930 may also include a standard wired interface, a wireless interface.
Wherein the processor 910 may include one or more processing cores. The processor 910 utilizes various interfaces and lines to connect various portions of the overall oral care device 900, perform various functions of the oral care device 900 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 940, and invoking data stored in the memory 940. Alternatively, the processor 910 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 910 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. Wherein, the CPU mainly processes an operating system, application programs and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 910 and may be implemented by a single chip.
The Memory 940 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 940 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 940 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 940 may include a stored program area that may store instructions for implementing an operating system, instructions for at least one function (e.g., acquisition function, decoding function, etc.), instructions for implementing the various method embodiments described above, and a stored data area; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 940 may also optionally be at least one storage device located remotely from the processor 910. As shown in fig. 9, an operating system, a network communication module, a user interface module, and program instructions may be included in the memory 940, which is a type of computer storage medium.
In some possible embodiments, the processor 910 may be configured to call program instructions stored in the memory 940 and specifically perform the following operations:
Acquiring a target audio file; decoding the first target audio fragment in the target audio file to obtain first target audio data; storing the first target audio data into the storage block; and outputting a corresponding first target pulse modulation signal to the motor driving part based on the first target audio data in the storage block, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal.
In some possible embodiments, after the processor 910 executes the first target pulse modulation signal corresponding to the output of the first target audio data based on the memory block to the motor driver, the processor is further configured to execute:
after the first target audio data in the storage block is output, decoding a second target audio segment in the target audio file to obtain second target audio data; the second target audio segment is a segment played after the first target audio segment.
And storing the second target audio data into the storage block.
And outputting a corresponding second target pulse modulation signal to the motor driving part based on the second target audio data in the storage block, so that the motor driving part drives the motor to output a second target audio corresponding to the second target audio data through swinging based on the second target pulse modulation signal.
And updating the first target audio data into the second target audio data, and executing the second target audio segment in the target audio file after the output of the first target audio data in the storage block is completed again to obtain second target audio data, wherein the second target audio segment in the target audio file is decoded until the oral care work of the oral care equipment is finished or the decoding of the target audio file is finished.
In some possible embodiments, after the processor 910 executes the first target pulse modulation signal corresponding to the first target audio data output based on the storage block to the motor driver, before the second target audio data is stored in the storage block, the processor is further configured to execute:
and deleting the first target audio data in the storage block after the first target audio data in the storage block is output.
In some possible embodiments, the target audio data corresponding to each target audio segment in the target audio file is less than or equal to the storage amount of the storage block.
In some possible embodiments, the control unit includes a plurality of memory blocks;
after the processor 910 executes the acquisition target audio file, the method is further configured to:
and decoding the previous multiple target audio fragments in the target audio file, and sequentially storing a plurality of target audio data obtained after decoding in the plurality of storage blocks.
Outputting a corresponding first target pulse modulation signal to the motor driver based on first target audio data corresponding to a first target audio segment in the previous multi-segment target audio segments stored in a first storage block in the plurality of storage blocks.
After the output of the first target audio data in the first storage block is completed, outputting a corresponding second target pulse modulation signal to the motor driver based on a second target audio data corresponding to a second target audio segment in the previous multi-segment target audio segment stored in a second storage block in the plurality of storage blocks, deleting the first target audio data in the first storage block, decoding a next target audio segment in the previous multi-segment target audio segment in the target audio file, and storing the decoded next target audio data in the first storage block.
And so on until the end of the oral care effort of the above-described oral care device or the end of the above-described decoding of the target audio file.
In some possible embodiments, the oral care device outputs the second target pulse modulated signal and outputs the first target pulse modulated signal during an oral care session.
In some possible embodiments, the processor 910 is further configured to perform:
if the output of the target audio corresponding to the target audio file is completed but the oral care operation of the oral care device is not finished, outputting a target cleaning driving signal to the motor driving part based on the control unit so that the motor driving part drives the motor to continue the oral care operation based on the target cleaning driving signal; or if the output of the target audio corresponding to the target audio file is completed but the oral care operation of the oral care device is not finished, re-executing the step of acquiring the target audio file based on the control unit.
In some possible embodiments, the processor 910 is further configured to perform:
and stopping outputting the target cleaning driving signal based on the control unit to stop swinging the motor if the target audio corresponding to the target audio file is output.
In some possible embodiments, the first target audio data includes a first target audio drive signal;
the processor 910 is specifically configured to execute, when executing the first target pulse modulation signal corresponding to the output of the first target audio data in the memory block to the motor driver:
and superposing the first target audio driving signal and the target cleaning driving signal in the storage block to obtain a first target pulse modulation signal.
And outputting the first target pulse modulation signal to the motor driving part, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data and perform oral care work corresponding to the target cleaning driving signal through swinging based on the first target pulse modulation signal.
In some possible embodiments, the first target audio driving signal includes a first target music driving signal and/or a first target speech driving signal; the first target music driving signal is used for driving the motor to output corresponding first target music through swinging; the first target voice driving signal is used for driving the motor to output corresponding first target prompt voice through swinging.
In some possible embodiments, the first target audio data includes a signal obtained by superimposing the first target audio driving signal and the target cleaning driving signal.
In some possible embodiments, the memory block includes a ring buffer.
Embodiments of the present application also provide a computer-readable storage medium having instructions stored therein, which when executed on a computer or processor, cause the computer or processor to perform one or more steps of the embodiments described above. The respective constituent modules of the audio processing apparatus of the oral care device described above may be stored in the computer-readable storage medium if implemented in the form of software functional units and sold or used as independent products.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a digital versatile Disk (Digital Versatile Disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program, which may be stored in a computer-readable storage medium, instructing relevant hardware, and which, when executed, may comprise the embodiment methods as described above. And the aforementioned storage medium includes: various media capable of storing program code, such as ROM, RAM, magnetic or optical disks. The technical features in the present examples and embodiments may be arbitrarily combined without conflict.
The above-described embodiments are merely illustrative of the preferred embodiments of the present application and are not intended to limit the scope of the present application, and various modifications and improvements made by those skilled in the art to the technical solution of the present application should fall within the scope of protection defined by the claims of the present application without departing from the design spirit of the present application.

Claims (15)

1. A method of audio processing for an oral care device, the oral care device comprising a control unit, a motor drive, and a motor; the control unit is used for decoding the audio file; the control unit comprises a storage block for storing decoded data; the method comprises the following steps:
Acquiring a target audio file;
decoding a first target audio fragment in the target audio file to obtain first target audio data;
storing the first target audio data into the storage block;
and outputting a corresponding first target pulse modulation signal to the motor driving part based on the first target audio data in the storage block, so that the motor driving part drives the motor to output first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal.
2. The method of claim 1, wherein after the outputting of the corresponding first target pulse modulation signal to the motor driver based on the first target audio data in the memory block, the method further comprises:
after the first target audio data in the storage block is output, decoding a second target audio segment in the target audio file to obtain second target audio data; the second target audio fragment is a fragment played after the first target audio fragment;
storing the second target audio data into the storage block;
Outputting a corresponding second target pulse modulation signal to the motor driving part based on the second target audio data in the storage block, so that the motor driving part drives the motor to output a second target audio corresponding to the second target audio data through swinging based on the second target pulse modulation signal;
and updating the first target audio data into the second target audio data, and after the output of the first target audio data in the storage block is finished, performing decoding processing on the second target audio segment in the target audio file to obtain second target audio data until the oral care work of the oral care equipment is finished or the decoding of the target audio file is finished.
3. The method of claim 2, wherein after the outputting of the corresponding first target pulse modulated signal to the motor driver based on the first target audio data in the memory block, the method further comprises, prior to the storing of the second target audio data in the memory block:
and deleting the first target audio data in the storage block after the first target audio data in the storage block is output.
4. The method of claim 1, wherein the target audio data corresponding to each target audio clip in the target audio file is less than or equal to the amount of memory of the memory block.
5. The method of claim 1, wherein the control unit comprises a plurality of memory blocks;
after the target audio file is acquired, the method further comprises:
decoding the previous multiple target audio fragments in the target audio file, and sequentially storing a plurality of target audio data obtained after decoding into the plurality of storage blocks;
outputting a corresponding first target pulse modulation signal to the motor driver based on first target audio data corresponding to a first target audio segment in the front multi-segment target audio segments stored in a first storage block in the plurality of storage blocks;
after the output of the first target audio data in the first storage block is completed, outputting a corresponding second target pulse modulation signal to the motor driver based on second target audio data corresponding to a second target audio segment in the previous multi-segment target audio segments stored in a second storage block in the plurality of storage blocks, deleting the first target audio data in the first storage block, decoding a next target audio segment in the previous multi-segment target audio segments in the target audio file, and storing the decoded next target audio data in the first storage block;
And so on until the oral care work of the oral care device ends or the target audio file decoding ends.
6. The method of claim 2 wherein the oral care device has a target time interval between outputting the second target pulse modulated signal and outputting the first target pulse modulated signal during an oral care session.
7. The method of claim 1, wherein the method further comprises:
if the target audio corresponding to the target audio file is output, but the oral care work of the oral care equipment is not finished, outputting a target cleaning driving signal to the motor driving piece based on the control unit so that the motor driving piece drives the motor to continue the oral care work based on the target cleaning driving signal;
or
And if the target audio corresponding to the target audio file is output, but the oral care work of the oral care equipment is not finished, re-executing the step of acquiring the target audio file based on the control unit.
8. The method of claim 1, wherein the method further comprises:
And if the target audio corresponding to the target audio file is output, stopping outputting a target cleaning driving signal based on the control unit so as to stop swinging of the motor.
9. The method of claim 1, wherein the first target audio data comprises a first target audio drive signal;
the outputting of the corresponding first target pulse modulation signal to the motor driver based on the first target audio data in the memory block includes:
superposing the first target audio driving signal and the target cleaning driving signal in the storage block to obtain a first target pulse modulation signal;
and outputting the first target pulse modulation signal to the motor driving part, so that the motor driving part drives the motor to output the first target audio corresponding to the first target audio data and perform oral care work corresponding to the target cleaning driving signal through swinging based on the first target pulse modulation signal.
10. The method of claim 9, wherein the first target audio drive signal comprises a first target music drive signal and/or a first target speech drive signal; the first target music driving signal is used for driving the motor to output corresponding first target music through swinging; the first target voice driving signal is used for driving the motor to output corresponding first target prompt voice through swinging.
11. The method of claim 1, wherein the first target audio data comprises a signal of the first target audio drive signal superimposed with the target cleaning drive signal.
12. The method of claim 1, wherein the memory block comprises a ring buffer.
13. An audio processing apparatus of an oral care device, the oral care device comprising a motor, the apparatus comprising:
the acquisition module is used for acquiring the target audio file;
the first decoding module is used for decoding the first target audio fragment in the target audio file to obtain first target audio data;
a first storage module for storing the first target audio data into the storage block;
and the first output module is used for outputting a corresponding first target pulse modulation signal to the motor driving part based on the first target audio data in the storage block so that the motor driving part drives the motor to output first target audio corresponding to the first target audio data through swinging based on the first target pulse modulation signal.
14. An oral care device, comprising: a processor and a memory; wherein,
The memory is adapted to store a computer program adapted to be loaded by the processor and to perform the steps of the method according to any one of claims 1 to 12.
15. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any one of claims 1 to 12.
CN202310958145.1A 2023-07-31 2023-07-31 Audio processing method, device, equipment and storage medium of oral care equipment Pending CN116996810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310958145.1A CN116996810A (en) 2023-07-31 2023-07-31 Audio processing method, device, equipment and storage medium of oral care equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310958145.1A CN116996810A (en) 2023-07-31 2023-07-31 Audio processing method, device, equipment and storage medium of oral care equipment

Publications (1)

Publication Number Publication Date
CN116996810A true CN116996810A (en) 2023-11-03

Family

ID=88524307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310958145.1A Pending CN116996810A (en) 2023-07-31 2023-07-31 Audio processing method, device, equipment and storage medium of oral care equipment

Country Status (1)

Country Link
CN (1) CN116996810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117731438A (en) * 2024-01-07 2024-03-22 广州星际悦动股份有限公司 Method, device, equipment and storage medium for controlling oral care equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094822A1 (en) * 2005-05-03 2007-05-03 Gatzemeyer John J Musical toothbrush
CN208770034U (en) * 2017-09-29 2019-04-23 深圳市超音声学科技有限公司 Osteoacusis formula electric tooth-brush with music
CN109925079A (en) * 2019-04-30 2019-06-25 深圳市同洁科技有限公司 A kind of electric tooth-brush with music
CN110516108A (en) * 2019-09-04 2019-11-29 苏州思必驰信息科技有限公司 The method and system of browser broadcasting audio
CN110772347A (en) * 2019-10-11 2020-02-11 南京医科大学 Electric tooth brush
CN112022405A (en) * 2020-08-31 2020-12-04 深圳市云顶信息技术有限公司 Bone conduction audio frequency electric toothbrush
CN113257287A (en) * 2021-04-27 2021-08-13 天九共享网络科技集团有限公司 Audio file visualization method and device, storage medium and electronic equipment
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment
CN114081653A (en) * 2020-12-29 2022-02-25 深圳飞安瑞科技股份有限公司 Music electric toothbrush control circuit and electric toothbrush
CN114299972A (en) * 2021-12-30 2022-04-08 北京字跳网络技术有限公司 Audio processing method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094822A1 (en) * 2005-05-03 2007-05-03 Gatzemeyer John J Musical toothbrush
CN208770034U (en) * 2017-09-29 2019-04-23 深圳市超音声学科技有限公司 Osteoacusis formula electric tooth-brush with music
CN109925079A (en) * 2019-04-30 2019-06-25 深圳市同洁科技有限公司 A kind of electric tooth-brush with music
CN110516108A (en) * 2019-09-04 2019-11-29 苏州思必驰信息科技有限公司 The method and system of browser broadcasting audio
CN110772347A (en) * 2019-10-11 2020-02-11 南京医科大学 Electric tooth brush
CN112022405A (en) * 2020-08-31 2020-12-04 深圳市云顶信息技术有限公司 Bone conduction audio frequency electric toothbrush
CN114081653A (en) * 2020-12-29 2022-02-25 深圳飞安瑞科技股份有限公司 Music electric toothbrush control circuit and electric toothbrush
CN113257287A (en) * 2021-04-27 2021-08-13 天九共享网络科技集团有限公司 Audio file visualization method and device, storage medium and electronic equipment
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment
CN114299972A (en) * 2021-12-30 2022-04-08 北京字跳网络技术有限公司 Audio processing method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117731438A (en) * 2024-01-07 2024-03-22 广州星际悦动股份有限公司 Method, device, equipment and storage medium for controlling oral care equipment

Similar Documents

Publication Publication Date Title
CN107301035B (en) Audio synchronous recording and playing system and method based on Android system
US8930590B2 (en) Audio device and method of operating the same
CN116996810A (en) Audio processing method, device, equipment and storage medium of oral care equipment
CN107256707B (en) Voice recognition method, system and terminal equipment
CN110267113B (en) Video file processing method, system, medium, and electronic device
CN109068163B (en) Audio and video synthesis system and synthesis method thereof
JP6814871B2 (en) Voice control method for electronic devices, voice control devices for electronic devices, computer equipment and storage media
JP2019015951A (en) Wake up method for electronic device, apparatus, device and computer readable storage medium
WO2020024950A1 (en) Video recording method and device
CN114299972A (en) Audio processing method, device, equipment and storage medium
WO2017107430A1 (en) Method, apparatus and device for controlling terminal device, and non-volatile computer storage medium
US9230529B2 (en) Music reproducing apparatus
CN106887244B (en) Audio switching method and device
CN113157240A (en) Voice processing method, device, equipment, storage medium and computer program product
CN116831769B (en) Output control method, device, equipment and storage medium of oral care equipment
WO2015014157A1 (en) Mobile terminal-based song recommendation method and device
CN108319441A (en) Control method, device, system, processor and the storage medium that audio plays
CN110797004B (en) Data transmission method and device
CN116831768B (en) Output control method, device, equipment and storage medium of oral care equipment
CN117179941B (en) Information prompting method, device, equipment and storage medium of oral care equipment
CN111063356A (en) Electronic equipment response method and system, sound box and computer readable storage medium
CN111105781B (en) Voice processing method, device, electronic equipment and medium
CN108111950A (en) A kind of volume adjusting method and speaker based on ambient noise
CN112349303A (en) Audio playing method, device and storage medium
CN109819300A (en) A kind of message content methods of exhibiting, sending method, device, terminal and system

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