CN114419767A - Audio updating method, storage medium and intelligent door lock - Google Patents

Audio updating method, storage medium and intelligent door lock Download PDF

Info

Publication number
CN114419767A
CN114419767A CN202210094479.4A CN202210094479A CN114419767A CN 114419767 A CN114419767 A CN 114419767A CN 202210094479 A CN202210094479 A CN 202210094479A CN 114419767 A CN114419767 A CN 114419767A
Authority
CN
China
Prior art keywords
audio
newly added
preset
file system
updating
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
CN202210094479.4A
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.)
Shenzhen 3irobotix Co Ltd
Original Assignee
Shenzhen 3irobotix 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 Shenzhen 3irobotix Co Ltd filed Critical Shenzhen 3irobotix Co Ltd
Priority to CN202210094479.4A priority Critical patent/CN114419767A/en
Publication of CN114419767A publication Critical patent/CN114419767A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00563Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys using personal physical data of the operator, e.g. finger prints, retinal images, voicepatterns
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention discloses an audio updating method, a storage medium and an intelligent door lock, wherein the method comprises the following steps: acquiring a newly added audio; determining the audio attribute of the newly added audio; and updating the newly added audio to a preset file system based on the audio attribute of the newly added audio, wherein the preset file system is a LittleFS file system or a FatFS file system. The method utilizes the characteristics that the LittleFS file system or the FatFS file system has low resource consumption, power failure protection, wear balance, convenience in transplantation and the like to update the newly added audio, and is convenient to store and manage the updated audio.

Description

Audio updating method, storage medium and intelligent door lock
Technical Field
The invention relates to the technical field of intelligent door locks, in particular to an audio updating method, a storage medium and an intelligent door lock.
Background
The smart home industry is becoming popular, and as a basic product of smart home, smart door locks are also receiving much attention. The intelligent door lock is a new door lock which is developed based on large-area popularization of an intelligent terminal, is different from a traditional mechanical lock, is more intelligent and simpler in the aspects of user safety, identification and management, needs to play audio to realize interaction with a user in order to improve user experience, and needs to solve urgent need of updating and managing the audio on the intelligent door lock.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. To this end, it is an object of the present invention to provide an audio update method that facilitates updating and managing audio.
A second object of the invention is to propose a computer-readable storage medium.
The third purpose of the invention is to provide an intelligent door lock.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides an audio updating method, where the method includes: acquiring a newly added audio; determining the audio attribute of the newly added audio; and updating the newly added audio to a preset file system based on the audio attribute of the newly added audio, wherein the preset file system is a LittleFS file system or a FatFS file system.
To achieve the above object, a second embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the audio updating method as set forth in the first embodiment of the present invention.
In order to achieve the above object, a third embodiment of the present invention provides an intelligent door lock, including a memory and a processor, where the memory stores a computer program, and the computer program is executed by the processor to implement the audio updating method as set forth in the first embodiment of the present invention.
The embodiment of the invention discloses an audio updating method, a storage medium and an intelligent door lock, wherein the method comprises the following steps: acquiring a newly added audio; determining the audio attribute of the newly added audio; and updating the newly added audio to a preset file system based on the audio attribute of the newly added audio, wherein the preset file system is a LittleFS file system or a FatFS file system. The method utilizes the characteristics that the LittleFS file system or the FatFS file system has low resource consumption, power failure protection, wear balance, convenience in transplantation and the like to update the newly added audio, and is convenient to store and manage the updated audio.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a flow diagram of an audio update method according to one embodiment of the invention;
FIG. 2 is a diagram illustrating a voice configuration table according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a voice configuration table according to another embodiment of the present invention;
FIG. 4 is a flow chart of an audio update method of another embodiment of the present invention;
fig. 5 is a schematic structural diagram of an intelligent door lock according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The audio updating method, the storage medium and the intelligent door lock according to the embodiment of the invention will be described in detail with reference to fig. 1-5 and specific embodiments of the specification.
In the embodiment of the invention, in order to realize the playing of the personalized audio and meet more audio playing requirements of the user, before the audio playing is carried out, the user can firstly set the interactive audio of the intelligent door lock in a personalized manner and firstly update the audio. Referring to fig. 1, based on the audio playing method shown in fig. 1, a user may further set an audio used in an interaction process with the smart door lock in a personalized manner, at this time, the user may manipulate a physical key and/or a touch key on the smart door lock to issue an audio adding instruction to the smart door lock, so that the smart door lock adds the audio, and at this time:
and S11, acquiring the newly added audio.
The intelligent door lock can acquire the newly added audio when receiving an audio adding instruction. The default audio is preset when the intelligent door lock leaves a factory, and a user can set own special audio in a personalized manner, namely the newly added audio is the user-defined audio of the user. In this embodiment, the acquired newly added audio may include customized audio files applied in various scenes, such as door opening, door closing, door bell, and alarm scenes.
In the embodiment of the invention, the intelligent door lock can start the microphone to obtain the newly added audio, for example, the microphone arranged on the equipment starting end (such as the intelligent door lock) records the newly added audio. The user may record the user's voice or voice as audio for the smart door lock. In this embodiment, the acquired newly added audio may include customized audio files applied in various scenes, such as door opening, door closing, door bell, and alarm scenes.
In some other examples, the user may download the audio on the network as the audio of the smart door lock, in which case, the user may download the customized audio based on the wired transmission manner and store the customized audio to the preset customized path in the preset file system. The newly added audio can be downloaded based on a wired transmission mode, for example, the intelligent door lock is connected with an upper computer through a connecting line, and the newly added audio is downloaded from the upper computer to the intelligent door lock. The wired transmission may include JTAG interface programming or SWD interface hardware programming. In some other examples, the newly added audio may be downloaded based on a wireless transmission manner, for example, a wireless connection between the smart door lock and a wireless terminal (e.g., a smart phone) may be established, and then the newly added audio may be downloaded to the smart door lock through the wireless terminal, where the wireless transmission may include bluetooth transmission or WIFI transmission.
In the embodiment of the present invention, the audio recorded by the user may be too long and may be noisy, the audio may be modified at this time, that is, the obtained audio may be continuously edited after the newly added audio is obtained, at this time, when the intelligent door lock receives an audio editing instruction, the user may edit the newly added audio based on the physical key or the touch screen, and use the edited audio as the newly added audio, where the audio editing instruction includes at least one of an interception instruction, a newly added instruction, a modification instruction, a deletion instruction, and a formatting instruction. And when the editing instruction is an intercepting instruction, intercepting the selected newly added audio. And when the editing instruction is a new adding instruction, continuously adding new adding audio. And when the editing instruction is a modification instruction, modifying the selected newly added audio. And when the editing instruction is a deleting instruction, deleting the selected newly added audio. And when the editing instruction is a formatting instruction, deleting all newly added audio.
And S12, determining the audio attribute of the newly added audio.
In this embodiment, the audio attribute of the newly added audio may include at least one of a user using the newly added audio, an audio volume, and a usage scene type. It should be understood that timbre and timbre preferred by different users are different, and different users can set their own exclusive audio. In addition, the use scene of the newly added audio can be door opening from inside to outside, door opening from outside to inside, alarming, installation and the like.
And S13, updating the newly added audio to a preset file system based on the audio attribute of the newly added audio, wherein the preset file system is a LittleFS file system or a FatFS file system.
Specifically, updating the newly added audio to the preset file system based on the audio attribute of the newly added audio may include various embodiments, which may specifically be as follows:
the first method is as follows: and determining a user using the newly added audio, and updating the newly added audio to an audio storage path of the user in a preset file system. Therefore, when the new audio of the user needs to be played, the audio can be directly called from the audio storage path of the user, and the time consumption is small.
The second method comprises the following steps: and determining the audio volume of the newly added audio, and updating the newly added audio to a preset file system according to the audio volume. Therefore, the new audio can be played at the audio volume.
The third method comprises the following steps: determining the usage scene type of the newly added audio, and updating the newly added audio to a preset file system according to the usage scene type. Therefore, the new audio can be played in the use scene.
The method is as follows: and renaming an audio storage path of the newly added audio in the preset file system based on the audio attribute of the newly added audio. Therefore, when the newly added audio needs to be played, the newly added audio can be called and played quickly.
Of course, updating the newly added audio to the preset file system based on the audio attribute of the newly added audio may include multiple embodiments, may also be a combination of any two of the four embodiments, a combination of any three of the four embodiments, and may even be a combination of the four embodiments.
In some embodiments, after the microphone is started to obtain the newly added audio, the newly added audio can be directly stored in a preset custom path in a preset file system; after the newly added audio is downloaded based on a wired transmission and/or wireless transmission mode, the newly added audio can be directly stored to a preset custom path in a preset file system.
Further, after the newly added audio is stored in the preset file system, an audio change instruction can be received, and the audio in the preset file system can be deleted, modified or replaced according to the audio change instruction.
In the embodiment of the invention, the LittleFS file system or the FatFS file system is used for performing read-write management on the newly added audio, so that the user can perform custom addition on the audio of the equipment end (such as an intelligent door lock), and the user can manage the newly added audio in modes of adding, changing, deleting, formatting and the like.
The LittleFS file system is an open-source high-integrity file system applied to the embedded field, and has the characteristics of low resource consumption, power failure protection, wear balance, convenience in transplantation and the like. The low resource consumption is that only a small amount of memory space is used, the use of RAM (random access memory) is strictly limited and will not change with the increase of the file system, and the file system does not contain unbounded recursion inside. The power failure protection is that under the condition that the equipment is powered off randomly, the file system has good backup guarantee and can be restored to a last known good state. Wear leveling is that the read-write mechanism of the LittleFS can ensure that FLASH blocks in the file system have balanced erasing probability because the FLASH has the maximum erasing time upper limit. The convenient transplantation, namely the open source code of the LittleFS file system, has a simple structure and is convenient for development and access.
In addition, the FatFS file system is a general file system (FAT/exFAT) module for implementing the FAT file system in a small embedded system. It is characterized in that: (1) DOS/Windows compatible FAT/exFAT file systems; (2) platform independence, ease of use; (3) the program code amount is small, and the occupied resource is low; (4) configuration parameter enrichment
Therefore, the audio updating method can realize the updating of newly added audio through a software method under the condition that resources of embedded equipment such as an intelligent door lock and the like are limited, and meets the personalized customization requirements of users.
As a feasible implementation manner, after the newly added audio is obtained, the type of the newly added audio can be determined; if the type of the audio is the first type, burning the newly added audio into the flash memory with the specified initial address of the equipment end, namely storing the newly added audio into a default path in the flash memory, as shown in fig. 2, wherein the newly added audio of the first type is generated by the server end according to the characteristics of a preset file system; if the type is the second type, the newly added audio is written into the custom path in the flash memory according to the characteristics of the preset file system, as shown in fig. 3.
Specifically, in some examples, when the new audio is delivered in the form of a burning file, the new audio may be packaged at the server in a manner of a directory of a specified hierarchy level according to characteristics of a preset file system, such as a LittleFS file system, to generate a binary file, where the binary file is the first type of bathing energy audio. The binary file is directly burned into a default path in an internal or external FLASH FLASH memory of the specified initial address of the equipment end in a hardware burning mode. The server side and the equipment side can share a set of preset file system, wherein parameters such as memory addresses, space sizes, minimum write sizes, directories, names and the like are kept consistent.
In other examples, when the newly added audio is delivered in a patch manner, the server does not need to encapsulate the customized voice, and the customized voice can be directly transmitted to the device side in a wireless transmission manner. The device side writes the newly added audio into a custom path (as shown in fig. 3, i.e., the above-mentioned preset custom path) according to the characteristics of the preset file system. And if the custom path contains the voice entry with the same name as the newly added audio, the written newly added audio can cover the original voice entry. When the voice broadcast of the corresponding scene is executed, the equipment end can find the latest voice frequency through the file path and broadcast the latest voice frequency.
In one embodiment of the present invention, the first type of added audio may include audio in one or more languages, such as chinese speech, english speech, japanese speech. When new audio of corresponding language is written, the server generates audio of corresponding language according to the characteristics of the preset file system according to the use habit of the user, and then writes the audio into the equipment. For an exemplary, first type of structure of the newly added audio is shown in fig. 2.
It should be noted that the first type of newly added audio can be used as default voice content, and has a read-only property, and the modification right is not exposed to the user. In the voice configuration table shown in fig. 2, a user can set parameters such as a voice path, a version, a volume size, and the like. For example, the default voice path can be changed from the chinese path to the english path, the version of the default audio can be changed, and parameters such as volume can be adjusted through the intelligent door lock app installed on the mobile terminal bound to the intelligent door lock.
As an example, the audio of the smart door lock can be controlled to restore factory settings through a reset key on the smart door lock or through the mobile terminal. After factory setting is restored, other storage paths except the default path in the configuration table are all empty, and the default path is a preset Chinese or English path.
It should be noted that the name of the audio (e.g., a file in mp3 format) in each scene is fixed. For example, in the door opening scenario, the audio obtained by the software is "open _ door. mp 3" or "door open. mp 3", but the path storing the name includes the chinese voice path/cn in the default path, the english voice path/en, or the current voice path/cur in the custom path, as shown in fig. 3.
In one embodiment of the present invention, when the second type of newly added audio is updated to the preset file system, the newly added audio can be written into the custom path in the flash memory. During writing, the user-defined path and the name of the newly added voice can be assembled to obtain a target file path, and the target file path is written into the flash memory, so that the equipment end can read the corresponding newly added voice frequency conveniently. And the name of the newly added audio is the same as the name of the corresponding voice playing scene. It should be noted that, if there is no custom path in the flash memory, as shown in fig. 2, a new custom path is required at this time.
For example, a user can download a personalized voice packet through a mobile terminal app and issue the personalized voice packet to the intelligent door lock through a gateway or a Bluetooth direct connection mode. The intelligent door lock inquires whether the current path (namely the custom path) is empty, if so, a custom path is newly established, and if not, the previously established custom path is used. Finally, the file path "/current path/xxx. mp 3" is formed with the voiced names and written into the flash memory together with the file entries.
Further, in some embodiments, all the second type newly added audios share one custom path, and after the first second type newly added audio is added, the subsequent second type newly added audio does not need to create a new custom path and is directly added to the existing custom path. For example, if the user a adds the individual voice open _ door.mp3 for the first time, and there is no custom path at this time, a custom path/cur _ path is created first, and then a file path/cur _ path/open _ door.mp3 is assembled and written into the flash memory. The subsequent user a adds the personal voice close _ door. mp3, and since/cur _ path already exists, directly assembles the path/cur _ path/close _ door. mp3 and writes it into the flash memory. If the user a wants to add another open _ door.mp3 personality voice again at this time, only updating at the mobile phone end is needed, and the updated/cur _ path/open _ door.mp3 currently directly covers the previous open _ door.mp3 personality voice.
In some embodiments of the present invention, as shown in fig. 4, after updating the new audio to the preset file system based on the audio attribute of the new audio, the method may further include:
and S21, determining that the preset trigger condition is met.
The preset trigger condition is a preset condition for triggering execution of the audio playing method when the condition is met, and in some examples, the preset trigger time may be execution of the audio playing method when an audio playing instruction is received, for example, when a user fingerprint entry is detected, it may be determined that a corresponding audio is played to prompt the user to perform the fingerprint entry when a finger entry interface is entered through a physical key or a touch screen key. In some other examples, the preset triggering time may be a time when the current time is determined to meet the preset time, for example, the going-out reminding time may be preset, and when the current time reaches the set going-out reminding time, it is determined that the preset triggering condition is met, and at this time, the corresponding audio may be played to remind the user of going out. In some other examples, the preset trigger time may be further a determination that the current scene satisfies the preset scene, for example, "welcome home" may be played when the door is opened by the outside; when the door is opened from the inside, the 'attention with key' and 'safety for going out' are played; detecting violent unlocking, or judging that a user is not an actual household when the user tries to unlock for N times but does not successfully unlock, and playing an alarm audio frequency of abnormal unlocking; and when the intelligent door lock detects that someone visits, a visitor-to audio can be played to prompt the user. In addition, the preset trigger condition may also be a preset voice keyword, and when the user sends out a voice corresponding to the keyword, the voice playing instruction is executed to determine that the preset voice keyword is received. For example, the preset speech keywords may include: (1) the operation confirms the voice prompt, for example the user asks "whether the door is locked back", at this moment the intelligent door lock can play the corresponding voice "confirm that the door is locked back" to answer the user; (2) the voiceprint unlocking is carried out, for example, after the voice of a keyword sent by a user is received, the identity of the user needs to be checked, the audio playing method can be executed after the user passes the identity authentication, and the intelligent door lock is prevented from interacting with other people except the resident to waste resources.
And S22, determining the target audio from the preset file system according to the preset trigger condition.
The preset file system comprises a LittleFS file system or a FatFS file system, the LittleFS file system or the FatFS file system is used for performing read-write management on newly added audio, so that the user can perform custom addition on the audio of the equipment end (such as an intelligent door lock), and the user can manage the newly added audio in modes of adding, changing, deleting, formatting and the like. Based on a LittleFS file system or a FatFS file system, the audio updating method provided by the embodiment of the invention can realize the updating of newly added audio through a software method under the condition that resources of embedded equipment such as an intelligent door lock and the like are limited, and meets the personalized customization requirements of users.
It can be understood that the intelligent door lock has different application scenes, the intelligent door lock can play audio corresponding to different conditions, and a large amount of audio is stored in the intelligent door lock. How to determine the target audio from the preset file system according to the preset trigger condition can be realized according to the following method:
newly added audio newly updated in a preset file system can be used as target audio. For example, when the door opening of the house owner is determined according to the preset trigger condition, the newly updated door opening audio can be used as the target audio. The last historically played audio corresponding to the preset trigger condition may also be used as the target audio, that is, when a certain preset trigger condition is determined, the last played audio (historically played audio) corresponding to the certain preset trigger condition may be determined as the target audio, and of course, the preset audio corresponding to the preset trigger condition may also be used as the target audio, in this example, there is an audio corresponding to the preset trigger condition. In addition, the audio corresponding to the preset trigger condition can be inquired in the preset file system according to a preset custom path, if the audio exists, the audio is used as the target audio, otherwise, the audio corresponding to the preset trigger condition is inquired in the preset file system according to a preset default path, and the audio is used as the target audio. It is understood that the audio in the preset custom path may be personalized audio pre-recorded or pre-downloaded by the user, and the default path may be audio preset when the smart door lock leaves the factory. For example, taking a preset scene as an example of a trigger condition, the preset scene is to open a door from inside to outside, determine that the name of the target audio is "door open 1.mp 3", first search for a preset custom path (e.g., the custom path in fig. 3), determine that there is no "door open 1.mp 3", then search for a preset default path (e.g., the default path in fig. 3), and use "door open 1.mp 3" in the default path (e.g., default first selected chinese) as the target audio. It should be noted that the audio in the default path should satisfy all the scene requirements.
And S23, adding the target audio into the play queue to play the target audio.
It is understood that the target audio added to the play queue may be played immediately, may be played with a delay, or may be played when a secondary trigger event occurs after the trigger event corresponding to step S21.
For example, the user prepares to go out and detects that the door is opened from inside to outside, and at this time, the compartment target audio prompts the user to pay attention to the key when the door is opened, which is the above-described directly played target audio in this example; for another example, when the user is not closed after the door is opened, the target audio is played when the time of 30s is met to prompt the user to close the door, which is to play the target audio when the preset time length is met; in addition, after the user opens the door, the target audio can be played when the preset event of closing the door occurs, so that the user can be reminded of taking care of safety on the road, and the example corresponds to playing the target audio when the preset event is determined to occur. In some other examples, after the target audio is determined, if there are two or more target audio, in order to prevent CPU blocking, the target audio may be sequentially inserted into a playlist on the device side for temporary storage, and waiting for playing.
The audio playing method provided by the embodiment of the invention can realize the ordered playing of the audio and can meet the personalized playing requirement of the user on the audio.
The invention also provides a computer readable storage medium.
In this embodiment, a computer program is stored on a computer readable storage medium, and the computer program corresponds to the audio updating method described above, and when being executed by a processor, implements the audio updating method described above.
The invention also provides an intelligent door lock.
In this embodiment, the intelligent door lock 100 includes a memory 11 and a processor 12, the memory 11 stores a computer program, and the computer program implements the audio updating method described above when executed by the processor 12.
The intelligent door lock 100 of the embodiment of the invention can realize the user-defined updating, management and personalized playing of the newly added audio.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. An audio update method, characterized in that the method comprises:
acquiring a newly added audio;
determining the audio attribute of the newly added audio;
and updating the newly added audio to a preset file system based on the audio attribute of the newly added audio, wherein the preset file system is a LittleFS file system or a FatFS file system.
2. The audio updating method of claim 1, wherein the audio attribute of the added audio comprises at least one of a user, an audio volume and a usage scene type of the added audio.
3. The audio updating method according to claim 2, wherein the updating the newly added audio to a preset file system based on the audio attribute of the newly added audio comprises:
determining a user of the newly added audio, and updating the newly added audio to an audio storage path of the user in the preset file system;
and/or determining the audio volume of the newly added audio, and updating the newly added audio to the preset file system according to the audio volume;
and/or determining the usage scene type of the newly added audio, and updating the newly added audio to the preset file system according to the usage scene type;
and/or renaming the audio storage path of the newly added audio in the preset file system based on the audio attribute of the newly added audio.
4. The audio updating method of claim 1, wherein the obtaining of the newly added audio comprises:
starting a microphone to obtain a newly added audio;
or, downloading newly-added audio based on a wired transmission mode;
or, downloading newly-added audio based on a wireless transmission mode;
after the new audio is obtained, the method further includes:
and receiving an audio editing instruction, editing the newly added audio based on a physical key or a touch screen, and taking the edited audio as the newly added audio, wherein the audio editing instruction comprises at least one of an intercepting instruction, a newly added instruction, a modifying instruction, a deleting instruction and a formatting instruction.
5. The audio updating method according to any one of claims 1 to 4, wherein after the newly added audio is updated to a preset file system based on the audio attribute of the newly added audio, the method further comprises:
determining that a preset trigger condition is met;
determining a target audio frequency from a preset file system according to the preset trigger condition;
and adding the target audio into a play queue to play the target audio.
6. The audio updating method of claim 5, wherein the determining the target audio from a preset file system according to the preset trigger condition comprises:
newly-added newly-updated audio is used as target audio;
or, the last historical playing audio corresponding to the preset trigger condition is taken as the target audio;
or, the preset audio corresponding to the preset trigger condition is used as the target audio.
7. The audio updating method of claim 5, wherein the determining that the preset trigger condition is met comprises:
receiving an audio playing instruction;
and/or determining that the current time meets a preset time;
and/or determining that the current scene meets a preset scene;
and/or determining that the preset voice keyword is received.
8. The audio updating method of claim 5, wherein the adding the target audio to a play queue to play the target audio comprises:
directly playing the target audio;
or playing the target audio when a preset time length is met;
or playing the target audio when the preset event is determined to occur.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out an audio updating method as claimed in any one of claims 1 to 7.
10. An intelligent door lock comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, implements the audio update method of any of claims 1-7.
CN202210094479.4A 2022-01-26 2022-01-26 Audio updating method, storage medium and intelligent door lock Pending CN114419767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210094479.4A CN114419767A (en) 2022-01-26 2022-01-26 Audio updating method, storage medium and intelligent door lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210094479.4A CN114419767A (en) 2022-01-26 2022-01-26 Audio updating method, storage medium and intelligent door lock

Publications (1)

Publication Number Publication Date
CN114419767A true CN114419767A (en) 2022-04-29

Family

ID=81276689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210094479.4A Pending CN114419767A (en) 2022-01-26 2022-01-26 Audio updating method, storage medium and intelligent door lock

Country Status (1)

Country Link
CN (1) CN114419767A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107067825A (en) * 2017-04-27 2017-08-18 四川九洲空管科技有限责任公司 The voice warning system and its phonic warning method of a kind of airborne collision avoidance system
CN107862184A (en) * 2017-10-31 2018-03-30 美的智慧家居科技有限公司 Voice change method, intelligent door lock and computer-readable storage
CN107967732A (en) * 2017-10-31 2018-04-27 美的智慧家居科技有限公司 Intelligent door lock and voice method for burn-recording
CN108108145A (en) * 2018-01-16 2018-06-01 云丁网络技术(北京)有限公司 A kind of playback method of prompt tone, apparatus and system
CN108197304A (en) * 2018-01-30 2018-06-22 深圳绿米联创科技有限公司 Realize the customized method and device of intelligent door lock voice
WO2021008479A1 (en) * 2019-07-18 2021-01-21 乐播新瑞(北京)文化传媒有限公司 Audio generation method and system, audio playing method and system, and central control system and audio playing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107067825A (en) * 2017-04-27 2017-08-18 四川九洲空管科技有限责任公司 The voice warning system and its phonic warning method of a kind of airborne collision avoidance system
CN107862184A (en) * 2017-10-31 2018-03-30 美的智慧家居科技有限公司 Voice change method, intelligent door lock and computer-readable storage
CN107967732A (en) * 2017-10-31 2018-04-27 美的智慧家居科技有限公司 Intelligent door lock and voice method for burn-recording
CN108108145A (en) * 2018-01-16 2018-06-01 云丁网络技术(北京)有限公司 A kind of playback method of prompt tone, apparatus and system
CN108197304A (en) * 2018-01-30 2018-06-22 深圳绿米联创科技有限公司 Realize the customized method and device of intelligent door lock voice
WO2021008479A1 (en) * 2019-07-18 2021-01-21 乐播新瑞(北京)文化传媒有限公司 Audio generation method and system, audio playing method and system, and central control system and audio playing device

Similar Documents

Publication Publication Date Title
RU2407204C2 (en) System and method for control of unreliable applications access to protected content
CN104252370B (en) Information processing unit and its control method
CN104756074A (en) Rules engine as a platform for mobile applications
CN108509211A (en) Application program updating method, apparatus, mobile terminal and storage medium
US20100180347A1 (en) Pluggable file-based digital rights management api layer for applications and engines
US20080114880A1 (en) System for connecting to a network location associated with content
CN108234554B (en) Cloud file editing method and device
CN101593543A (en) Automated digital voice recorder is synchronous automatically to personal information manager
KR20050075313A (en) Information processing device and program
WO2016197461A1 (en) Application software permission recommendation method, apparatus and system, and storage medium
CN106790945A (en) The recording method of call, device and terminal
EP3018609A1 (en) Method for loading a file into ram in an electronic apparatus and associated electronic apparatus
CN111028472A (en) Alarm method, alarm device and computer storage medium
CN108108145A (en) A kind of playback method of prompt tone, apparatus and system
CN111915768A (en) Intelligent door lock with customized voice, using method thereof and storage medium
JPH0934765A (en) File managing device
CN103605537A (en) Software installation method and device
US20080114772A1 (en) Method for connecting to a network location associated with content
CN114419767A (en) Audio updating method, storage medium and intelligent door lock
CN114491141A (en) Audio playing method and system, storage medium and intelligent door lock
TW201025133A (en) Method for installing application program and computer system
EP3553650B1 (en) Multimedia data playback method and terminal device
WO2013107158A1 (en) Method and system for managing system parameter in terminal device
CN107862184A (en) Voice change method, intelligent door lock and computer-readable storage
CN115147957B (en) Intelligent voice door lock control method and control 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