Voice recording method, device, charging dock and storage medium

文档序号:115240 发布日期:2021-10-19 浏览:26次 中文

阅读说明:本技术 语音记录方法、装置、充电坞以及存储介质 (Voice recording method, device, charging dock and storage medium ) 是由 姚武 杨建培 夏虹 孙雪华 肖力坚 林裕伟 于 2021-07-12 设计创作,主要内容包括:本发明公开一种语音记录方法,用于充电坞,所述方法包括以下步骤:在检测到智能工牌接入时,进入第一目标运行状态,并从所述智能工牌读取待拷贝录音文件;将读取到的所述待拷贝录音文件写入本地存储器;在所述待拷贝录音文件写入完成时,将写入完成的所述待拷贝录音文件发送至云端存储器,以使所述云端存储器存储写入完成的所述待拷贝录音文件。本发明还公开一种语音记录装置、充电坞以及计算机可读存储介质。利用本发明的方法,待拷贝录音文件的读取过程和写入过程不会被打断,待拷贝录音文件传可以完整的被充电坞读取和存储,保证了待拷贝录音文件的完整性,从而提高了待拷贝录音文件传的安全性。(The invention discloses a voice recording method for a charging dock, which comprises the following steps: when the access of an intelligent work card is detected, entering a first target running state, and reading a recording file to be copied from the intelligent work card; writing the read recording file to be copied into a local memory; and when the recording file to be copied is completely written, the recording file to be copied which is completely written is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is completely written. The invention also discloses a voice recording device, a charging dock and a computer readable storage medium. By using the method of the invention, the reading process and the writing process of the recording file to be copied can not be interrupted, the recording file to be copied can be completely read and stored by the charging dock, the integrity of the recording file to be copied is ensured, and the safety of the recording file to be copied is improved.)

1. A voice recording method for a charging dock, the method comprising the steps of:

when the access of an intelligent work card is detected, entering a first target running state, and reading a recording file to be copied from the intelligent work card;

writing the read recording file to be copied into a local memory;

and when the recording file to be copied is completely written, the recording file to be copied which is completely written is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is completely written.

2. The method as claimed in claim 1, wherein the step of writing the read audio record file to be copied into the local storage is preceded by the method further comprising:

transcoding the read recording file to be copied to obtain a target recording file with a preset format;

encrypting the target sound recording file to obtain an encrypted sound recording file;

the step of writing the read recording file to be copied into a local memory comprises the following steps:

writing the encrypted sound recording file into a local memory;

when the recording file to be copied is written in, the recording file to be copied which is written in is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is written in, and the steps comprise:

and when the writing of the encrypted sound recording file is completed, the written encrypted sound recording file is sent to a cloud storage, so that the cloud storage stores the written encrypted sound recording file.

3. The method of claim 1, wherein the step of reading the audio file to be copied from the intelligent card comprises:

sending a first heartbeat packet to the intelligent card according to a first preset time interval so as to detect whether the intelligent card and the charging dock are in a connection state;

and when the intelligent work card is connected with the charging dock, reading the recording file to be copied from the intelligent work card.

4. The method of claim 2, wherein prior to the step of sending the encrypted audio record file with the write completed to a cloud storage upon completion of the write of the encrypted audio record file, so that the cloud storage stores the encrypted audio record file with the write completed, the method further comprises:

after the encrypted sound recording file is written, and when the preset uploading time is up, inquiring the sound recording time information and the sound recording equipment information corresponding to the encrypted sound recording file which is written in the local memory, wherein the sound recording equipment information is the equipment information of the intelligent work card corresponding to the encrypted sound recording file which is written in;

dividing the encrypted sound recording file which is written into a plurality of file groups by using the sound recording time information and the sound recording equipment information;

decrypting the encrypted sound recording files in each file group to obtain a decrypted file group corresponding to each file group

Splicing the files in the decrypted file group corresponding to each file group to obtain a target sound recording file corresponding to each file group;

when the writing of the encrypted sound recording file is completed, the written encrypted sound recording file is sent to a cloud storage, so that the cloud storage stores the written encrypted sound recording file, and the steps comprise:

and sending the target sound recording file to a cloud storage to enable the cloud storage to store the target sound recording file.

5. The method of claim 4, wherein prior to the step of sending the target audio file to cloud storage to cause the cloud storage to store the target audio file, the method further comprises:

acquiring an uploading certificate and a key secret path;

sending the uploading certificate and the key secret path to the cloud storage to enable the cloud storage to verify the uploading certificate and the key secret path, and returning an allowing instruction when the verification is successful;

the step of sending the target audio file to a cloud storage to enable the cloud storage to store the target audio file comprises the following steps:

based on the permission instruction, the target sound recording file is sent to a cloud storage, so that the cloud storage stores the target sound recording file in the key secret path.

6. The method according to any one of claims 1-5, wherein after the recording file to be copied is written, the method further comprises:

downloading a firmware upgrading package of the intelligent workmanship board to be upgraded from the management server;

when the access of the intelligent workcard to be upgraded is detected, entering a second target running state;

sending a second heartbeat packet to the intelligent card to be upgraded according to a second preset time interval so as to detect whether the intelligent card to be upgraded and the charging dock are in a connection state;

when the intelligent card to be upgraded is connected with the charging dock, an upgrading instruction is obtained;

and sending the upgrading instruction and the firmware upgrading package to the intelligent work card to be upgraded so that the intelligent work card to be upgraded utilizes the firmware upgrading package to upgrade the firmware based on the upgrading instruction.

7. The method of claim 1, wherein after the recording file to be copied is written, the method further comprises:

obtaining a deletion instruction;

and sending the deleting instruction to the intelligent work card so that the intelligent work card deletes the audio file to be copied.

8. A voice recording apparatus for use in a charging dock, the apparatus comprising:

the reading module is used for entering a first target running state when the access of an intelligent work card is detected, and reading the audio file to be copied from the intelligent work card;

the writing module is used for writing the read recording file to be copied into a local memory;

and the sending module is used for sending the record file to be copied, which is written in, to a cloud storage when the record file to be copied is written in, so that the cloud storage stores the record file to be copied, which is written in.

9. A charging dock, comprising: memory, processor and a voice recording program stored on the memory and running on the processor, the voice recording program when executed by the processor implementing the steps of the voice recording method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that a voice recording program is stored thereon, which when executed by a processor implements the steps of the voice recording method according to any one of claims 1 to 7.

Technical Field

The present invention relates to the field of data storage, and in particular, to a voice recording method and apparatus, a charging dock, and a computer-readable storage medium.

Background

Currently, in the sales process of goods or services, staff (consultants or consultants) are required to communicate with the client to acquire the requirements of the client.

Generally, it is necessary for an employee to communicate with a client, record a session recording file through a mobile terminal, and store the recorded session recording file, so as to facilitate later management of the session recording file.

However, with the existing recording method for the audio file, the obtained audio file is damaged, and the integrity of the audio file is poor.

Disclosure of Invention

The invention mainly aims to provide a voice recording method, a voice recording device, a charging dock and a computer readable storage medium, and aims to solve the technical problems that an obtained recording file is damaged and the integrity of the recording file is poor by adopting the existing recording method for the recording file in the prior art.

In order to achieve the above object, the present invention provides a voice recording method for a charging dock, the method comprising the steps of:

when the access of an intelligent work card is detected, entering a first target running state, and reading a recording file to be copied from the intelligent work card;

writing the read recording file to be copied into a local memory;

and when the recording file to be copied is completely written, the recording file to be copied which is completely written is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is completely written.

Optionally, before the step of writing the read audio file to be copied into the local storage, the method further includes:

transcoding the read recording file to be copied to obtain a target recording file with a preset format;

encrypting the target sound recording file to obtain an encrypted sound recording file;

the step of writing the read recording file to be copied into a local memory comprises the following steps:

writing the encrypted sound recording file into a local memory;

when the recording file to be copied is written in, the recording file to be copied which is written in is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is written in, and the steps comprise:

and when the writing of the encrypted sound recording file is completed, the written encrypted sound recording file is sent to a cloud storage, so that the cloud storage stores the written encrypted sound recording file.

Optionally, the step of reading the audio file to be copied from the intelligent work card includes:

sending a first heartbeat packet to the intelligent card according to a first preset time interval so as to detect whether the intelligent card and the charging dock are in a connection state;

and when the intelligent work card is connected with the charging dock, reading the recording file to be copied from the intelligent work card.

Optionally, before the step of sending the encrypted sound recording file written into the cloud storage to the cloud storage when the encrypted sound recording file is written into the cloud storage, the method further includes:

after the encrypted sound recording file is written, and when the preset uploading time is up, inquiring the sound recording time information and the sound recording equipment information corresponding to the encrypted sound recording file which is written in the local memory, wherein the sound recording equipment information is the equipment information of the intelligent work card corresponding to the encrypted sound recording file which is written in;

dividing the encrypted sound recording file which is written into a plurality of file groups by using the sound recording time information and the sound recording equipment information;

decrypting the encrypted sound recording files in each file group to obtain a decrypted file group corresponding to each file group

Splicing the files in the decrypted file group corresponding to each file group to obtain a target sound recording file corresponding to each file group;

when the writing of the encrypted sound recording file is completed, the written encrypted sound recording file is sent to a cloud storage, so that the cloud storage stores the written encrypted sound recording file, and the steps comprise:

and sending the target sound recording file to a cloud storage to enable the cloud storage to store the target sound recording file.

Optionally, before the step of sending the target audio file to a cloud storage to enable the cloud storage to store the target audio file, the method further includes:

acquiring an uploading certificate and a key secret path;

sending the uploading certificate and the key secret path to the cloud storage to enable the cloud storage to verify the uploading certificate and the key secret path, and returning an allowing instruction when the verification is successful;

the step of sending the target audio file to a cloud storage to enable the cloud storage to store the target audio file comprises the following steps:

based on the permission instruction, the target sound recording file is sent to a cloud storage, so that the cloud storage stores the target sound recording file in the key secret path.

Optionally, after the recording file to be copied is written completely, the method further includes:

downloading a firmware upgrading package of the intelligent workmanship board to be upgraded from the management server;

when the access of the intelligent workcard to be upgraded is detected, entering a second target running state;

sending a second heartbeat packet to the intelligent card to be upgraded according to a second preset time interval so as to detect whether the intelligent card to be upgraded and the charging dock are in a connection state;

when the intelligent card to be upgraded is connected with the charging dock, an upgrading instruction is obtained;

and sending the upgrading instruction and the firmware upgrading package to the intelligent work card to be upgraded so that the intelligent work card to be upgraded utilizes the firmware upgrading package to upgrade the firmware based on the upgrading instruction.

Optionally, after the recording file to be copied is written completely, the method further includes:

obtaining a deletion instruction;

and sending the deleting instruction to the intelligent work card so that the intelligent work card deletes the audio file to be copied.

In addition, to achieve the above object, the present invention further provides a voice recording apparatus for a charging dock, the apparatus comprising:

the reading module is used for entering a first target running state when the access of an intelligent work card is detected, and reading the audio file to be copied from the intelligent work card;

the writing module is used for writing the read recording file to be copied into a local memory;

and the sending module is used for sending the record file to be copied, which is written in, to a cloud storage when the record file to be copied is written in, so that the cloud storage stores the record file to be copied, which is written in.

In addition, to achieve the above object, the present invention further provides a charging dock, including: a memory, a processor and a voice recording program stored on the memory and running on the processor, the voice recording program when executed by the processor implementing the steps of the voice recording method as claimed in any one of the above.

Furthermore, to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a voice recording program which, when executed by a processor, implements the steps of the voice recording method as described in any one of the above.

The technical scheme of the invention provides a voice recording method for a charging dock, which comprises the following steps: when the access of an intelligent work card is detected, entering a first target running state, and reading a recording file to be copied from the intelligent work card; writing the read recording file to be copied into a local memory; and when the recording file to be copied is completely written, the recording file to be copied which is completely written is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is completely written.

In the existing method, when the recording file to be copied recorded by the mobile terminal is transmitted to the fixed memory, the transmission process is interrupted, so that the transmission of the recording file to be copied fails and the recording file to be copied is damaged. In the voice recording method, when the recording file to be copied is read from the intelligent work board by the charging dock, the charging dock is in the first target operation state, the reading process and the writing process of the recording file to be copied cannot be interrupted in the first target operation state, the recording file to be copied can be completely read and stored by the charging dock, the recording file to be copied cannot be damaged, and therefore the integrity of the recording file to be copied is improved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.

Fig. 1 is a schematic structural diagram of a charging dock in a hardware operating environment according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating a first embodiment of a voice recording method according to the present invention;

fig. 3 is a block diagram of a voice recording apparatus according to an embodiment of the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, fig. 1 is a schematic structural diagram of a charging dock in a hardware operating environment according to an embodiment of the present invention.

Generally, a charging dock includes: at least one processor 301, a memory 302, and a voice recording program stored on the memory and executable on the processor, the voice recording program being configured to implement the steps of the voice recording method as previously described.

The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. Processor 301 may also include an AI (Artificial Intelligence) processor for processing speech recording method-related operations such that the speech recording method model may be trained autonomously for learning, improving efficiency and accuracy.

Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the voice recording method provided by method embodiments herein.

In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304 and power supply 305.

The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.

The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.

The power supply 305 is used to supply power to various components in the electronic device. The power source 305 may be alternating current, direct current, disposable or rechargeable. When power source 305 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.

Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the charging dock, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.

Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, in which a voice recording program is stored, and the voice recording program, when executed by a processor, implements the steps of the voice recording method as described above. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. Determining by way of example, the program instructions may be deployed for execution on one charging dock, or on multiple charging docks located at one site, or on multiple charging docks distributed across multiple sites and interconnected by a communication network.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Based on the above hardware structure, an embodiment of the voice recording method of the present invention is provided.

Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a voice recording method for a dock to be charged according to the present invention, the method comprising the steps of:

step S11: and when the access of the intelligent work card is detected, entering a first target running state, and reading the audio file to be copied from the intelligent work card.

It should be noted that the execution main body of the present invention is a charging dock, the charging dock is installed with a voice recording program, and the structure of the charging dock refers to the above description, which is not described herein again; when the charging dock executes the voice recording program, the steps of the voice recording method of the invention are realized.

In some embodiments, the intelligent workcard has a PCBA board (printed circuit board via SMT top or DIP plug-in), the array of silicon microphones on the PCBA board is T-shaped, 1 silicon microphone in the upper row is recorded for the voice of the employee (e.g., a professional consultant, a sales consultant, etc.), 3 silicon microphones in the lower row is recorded for the voice of the client, and the position of the sound source is located by 4 silicon microphones to distinguish whether the speaker is the client or the employee; generally, the intelligent employee cards are worn on employees, so that the positions of the employees and the clients are different, namely, a plurality of silicon microphone arrays can be utilized to carry out sound source positioning so as to determine the speaker.

Generally, an intelligent card belongs to a staff, and a to-be-copied sound recording file corresponding to the intelligent card carries a device ID of the intelligent card and the like (both a staff sound recording file and a client sound recording file are carried, and meanwhile, the staff sound recording file needs to carry the staff ID and the client sound recording file needs to carry the client ID), that is, the intelligent card corresponds to a staff through the device ID.

In some embodiments, the intelligent card is connected with the mobile terminal through a wireless protocol (bluetooth, etc.), when the intelligent card is used for recording, the mobile terminal is required to be used to input employee ID, client ID, recording time information (recording start time and recording end time), and the like, which correspond to the recording of the intelligent card, wherein the device information of the intelligent card may be the device ID, the device ID may be bound with the employee ID, the intelligent card is specific to the corresponding employee at the moment, the intelligent card may not be bound with the employee ID, and the intelligent card may be used by any employee at the moment. When the equipment ID is bound with the employee ID, the employee ID can be directly determined based on the equipment ID without inputting the employee ID; when the device ID is not bound to the employee ID, the employee ID needs to be entered.

In a specific application, the mobile terminal connected with the intelligent card can be used for controlling the start and the end of the recording of the intelligent card. The intelligent card can be accessed into the charging dock through a serial port, and meanwhile, the charging dock can also charge the accessed intelligent card.

Specifically, the entering the first target operation state includes: locking the charge Wu in a first target operating state with a first device lock; that is, the charging dock is always in the first target operation state while performing the steps S11-S13 of the present invention.

In addition, the first device lock is for locking the charging dock in a data transfer state (which may be understood as a data transfer state that is currently running in the foreground), i.e., the first target operating state is the data transfer state in which the charging dock implements steps S11-S13 of the present invention. In the data transmission state, other processes are not allowed to interrupt and interfere the state, so that the safe operation of reading and writing the record file to be copied is ensured, and the interruption of the reading and writing processes of the record file to be copied is avoided. Meanwhile, in the data transmission state, the transmitted recording file to be copied is not allowed to be edited, so that the completeness and accuracy of the recording file to be copied in the transmission process are ensured.

In some embodiments, when the charging dock is in the first target operation state, the process of reading and writing the to-be-copied sound recording file includes multiple processes, and the multiple processes cooperate to complete the process of reading and writing the to-be-copied sound recording file, where the device control process may send a broadcast message through a UDP protocol when the intelligent work card is accessed to the charging dock, and inform other processes that the intelligent work card is accessed.

Step S12: and writing the read recording file to be copied into a local memory.

Step S13: and when the recording file to be copied is completely written, the recording file to be copied which is completely written is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is completely written.

When the recording file to be copied is in the first target running state, the charging dock can read and write the recording file to be copied, the reading and writing processes cannot be interrupted, and meanwhile, the recording file to be copied is not allowed to be edited and modified.

Specifically, when the charging dock is in the first target operation state, a file list (recorded client recording files and employee recording files) of the recording files to be copied in the intelligent employee card is obtained, and the reading and writing processes of the files are recorded, that is, a file record of the reading and writing operations of the recording files to be copied is generated (the file record at this time may be that the recording files to be copied are being copied); and then reading the recording file to be copied from the intelligent work card.

Further, before the step of writing the read audio record file to be copied into the local storage, the method further includes: transcoding the read recording file to be copied to obtain a target recording file with a preset format; encrypting the target sound recording file to obtain an encrypted sound recording file; correspondingly, the step of writing the read recording file to be copied into the local memory comprises the following steps: writing the encrypted sound recording file into a local memory; correspondingly, when the recording file to be copied is written in and is finished, the recording file to be copied, which is written in and is finished, is sent to a cloud storage, so that the cloud storage stores the recording file to be copied, which is written in and is finished, and the step of the recording file to be copied comprises the following steps: and when the writing of the encrypted sound recording file is completed, the written encrypted sound recording file is sent to a cloud storage, so that the cloud storage stores the written encrypted sound recording file.

It should be noted that the preset format may be an MP3 format, that is, the audio file to be copied in the intelligent card needs to be converted into a target audio file in an MP3 format; and then, encrypting the target recording file to obtain an encrypted recording file, so that the recording file is not tampered and is ensured to be complete and safe. And finally, writing the encrypted sound recording file into a local memory to finish the final writing of the sound recording file to be copied. And then updating the file record, wherein the file record at the moment can be the copying completion of the audio record file to be copied.

The file record of the audio file to be copied for one time can include the intelligent work card ID, the file creation time (the creation time of the encrypted audio file corresponding to the audio file to be copied), the storage path and the like corresponding to the reading and writing operations of the audio file to be copied; the charging dock may have a plurality of local memories, each corresponding to a different storage path.

Further, the step of reading the audio file to be copied from the intelligent work card comprises: sending a first heartbeat packet to the intelligent card according to a first preset time interval so as to detect whether the intelligent card and the charging dock are in a connection state; and when the intelligent work card is connected with the charging dock, reading the recording file to be copied from the intelligent work card.

During the reading and writing process of the recording file to be copied, whether the intelligent card and the charging dock are in a connection state or not can be determined by utilizing a heartbeat packet, the reading and the writing are continued only when the intelligent card and the charging dock are in the connection state, and otherwise, the reading and the writing are not carried out again, the intelligent card is required to be accessed again, and the reading and the writing are carried out again; the first preset time interval may be set by the user based on the requirement, but the present invention is not limited thereto, for example, 3 s.

Further, after the recording file to be copied is written completely, the method further includes: obtaining a deletion instruction; and sending the deleting instruction to the intelligent work card so that the intelligent work card deletes the audio file to be copied.

It should be noted that, after the recording file to be copied is written, the step may be performed to delete the recording file to be copied, which has been stored in the charging dock, in the intelligent card, so as to release the storage space of the intelligent card.

Further, before the step of sending the encrypted sound recording file written to the cloud storage when the encrypted sound recording file is written to the cloud storage, so that the cloud storage stores the encrypted sound recording file written to the cloud storage, the method further includes: after the encrypted sound recording file is written, and when the preset uploading time is up, inquiring the sound recording time information and the sound recording equipment information corresponding to the encrypted sound recording file which is written in the local memory, wherein the sound recording equipment information is the equipment information of the intelligent work card corresponding to the encrypted sound recording file which is written in; dividing the encrypted sound recording file which is written into a plurality of file groups by using the sound recording time information and the sound recording equipment information; decrypting the encrypted sound recording file in each file group to obtain a decrypted file group corresponding to each file group, and splicing the files in the decrypted file group corresponding to each file group to obtain a target sound recording file corresponding to each file group; when the writing of the encrypted sound recording file is completed, the written encrypted sound recording file is sent to a cloud storage, so that the cloud storage stores the written encrypted sound recording file, and the steps comprise: and sending the target sound recording file to a cloud storage to enable the cloud storage to store the target sound recording file.

It should be noted that the preset uploading time can be set by the user based on the requirement, for example, 8 o' clock every day, or every 10 hours, and the invention is not limited in particular. For the encrypted recording file which is stored in the charging dock and written into the charging dock, corresponding recording time information (recording start time and recording end time) and recording equipment information can be inquired through a mobile terminal connected with the intelligent work board; in addition, the original recording file to be copied can also carry the recording time information and the recording equipment information so as to be convenient for direct inquiry.

Generally, when a user and an employee are recorded by using an intelligent card, a conversation at the same time may be divided into a plurality of recording files due to a long time, that is, the recording files are written into a finished encrypted recording file, and a plurality of recording files may be a complete recording message. Firstly, the recording equipment information is utilized to determine the encrypted recording file belonging to an intelligent card so as to obtain a plurality of initial file groups, and then the recording time information is continuously utilized to divide each initial file group in the plurality of initial file groups into a plurality of file groups so as to obtain the plurality of file groups. In general, with the recording time information, a plurality of encrypted sound recording files belonging to one sound recording information (for example, the recording start times and the recording end times of a plurality of encrypted sound recording files are just end-to-end, indicating that they belong to one sound recording information) are determined, the plurality of encrypted sound recording files being one file group.

And based on the encryption mode, decrypting the encrypted sound recording file in each file group to obtain a decrypted file group corresponding to each file group, and splicing the files in the decrypted file group corresponding to each file group to obtain a target sound recording file corresponding to each file group, wherein one target sound recording file is the complete sound recording information. And the fragmentary recording fragments are combined into complete recording information, so that the recording information can be conveniently and integrally analyzed.

Further, before the step of sending the target audio file to a cloud storage to enable the cloud storage to store the target audio file, the method further includes: acquiring an uploading certificate and a key secret path; sending the uploading certificate and the key secret path to the cloud storage to enable the cloud storage to verify the uploading certificate and the key secret path, and returning an allowing instruction when the verification is successful; the step of sending the target audio file to a cloud storage to enable the cloud storage to store the target audio file comprises the following steps: based on the permission instruction, the target sound recording file is sent to a cloud storage, so that the cloud storage stores the target sound recording file in the key secret path.

In the present invention, the cloud storage may be an aricloud storage, that is, the encrypted sound recording file written in the charging dock is stored in a private storage area (an area corresponding to the key secret path) of the aricloud storage, and the private storage area stores only the file uploaded by the charging dock. In order to avoid uploading an irrelevant file or a file carrying a virus to the special storage area by an external user, the uploaded file needs to be verified, that is, a device for uploading the file is verified before the target audio file is uploaded. The uploading certificate is certificate information (which may include a device ID and the like) of the charging dock, the cloud storage verifies that the charging dock is an allowed device by using the certificate information, meanwhile, if a key secret path is verified to correspond to the charging dock, verification is successful, the allowed instruction is returned, and the charging dock can send the target recording file based on the allowed instruction, so that the target recording file is stored in the key secret path of the cloud storage. When the verification fails (the charging dock is a non-permitted device, or the key secret path does not correspond to the charging dock), uploading is not permitted, so that the file stored in the cloud storage is prevented from being infected or damaged by viruses.

It can be understood that the cloud storage may also store a file record of the target sound recording file, where the file record includes an uploading time of the target sound recording file, a key secret path, a device ID of the intelligent employee badge, and the like, and the client sound recording file and the employee sound recording file in the target sound recording file may be separate, and at this time, the target sound recording file may further include a client ID and an employee ID, respectively.

In this embodiment, after the charging dock sends the written encrypted audio file to the cloud storage, the stored written encrypted audio file may also be deleted to release the storage space.

Further, after the recording file to be copied is written completely, the method further includes: downloading a firmware upgrading package of the intelligent workmanship board to be upgraded from the management server; when the access of the intelligent workcard to be upgraded is detected, entering a second target running state; sending a second heartbeat packet to the intelligent card to be upgraded according to a second preset time interval so as to detect whether the intelligent card to be upgraded and the charging dock are in a connection state; when the intelligent card to be upgraded is connected with the charging dock, an upgrading instruction is obtained; and sending the upgrading instruction and the firmware upgrading package to the intelligent work card to be upgraded so that the intelligent work card to be upgraded utilizes the firmware upgrading package to upgrade the firmware based on the upgrading instruction.

In specific application, the management server is used for managing equipment information (equipment ID) and a firmware upgrading package of the intelligent workmanship board; the charging dock inquires whether the firmware upgrading packet exists from the management server, and if so, the firmware upgrading packet is downloaded; the firmware upgrade package is typically ota data package.

When the intelligent workcard to be upgraded is accessed, the equipment control process sends a broadcast message through a UDP protocol to inform other processes that the intelligent workcard to be upgraded is accessed, then the intelligent workcard inquires whether the intelligent workcard to be upgraded needs firmware upgrading, and if so, the charging Wu is locked to be in a second target running state by using a second equipment lock.

Additionally, entering a second target operating state includes: locking the charge Wu in a second target operating state with a second device lock; that is, the charging dock is always in the second target operational state while the step of firmware upgrade is performed.

The second device lock is used for locking the charging dock in a firmware upgrading state (the firmware upgrading state can be understood to be running in a foreground all the time), namely the second target running state is not in the firmware upgrading state, the charging dock realizes the firmware upgrading steps of the invention, in the firmware upgrading state, other processes are not allowed to be interrupted and interfered, the safe running of the firmware upgrading package transmission process and the firmware upgrading package upgrading process is ensured, and the interruption of the firmware upgrading package transmission process and the firmware upgrading process is avoided.

In addition, when the upgrading instruction and the firmware upgrading package are sent to the intelligent work card to be upgraded, the upgrading instruction and the firmware upgrading package can be sent through a serial port or through wireless network connection. The description of the second heartbeat packet refers to the description of the first heartbeat packet above, and is not repeated here.

The technical scheme of the invention provides a voice recording method for a charging dock, which comprises the following steps: when the access of an intelligent work card is detected, entering a first target running state, and reading a recording file to be copied from the intelligent work card; writing the read recording file to be copied into a local memory; and when the recording file to be copied is completely written, the recording file to be copied which is completely written is sent to a cloud storage, so that the cloud storage stores the recording file to be copied which is completely written.

In the existing method, when the recording file to be copied recorded by the mobile terminal is transmitted to the fixed memory, the transmission process is interrupted, so that the transmission of the recording file to be copied fails and the recording file to be copied is damaged. In the voice recording method, when the recording file to be copied is read from the intelligent work board by the charging dock, the charging dock is in the first target operation state, the reading process and the writing process of the recording file to be copied cannot be interrupted in the first target operation state, the recording file to be copied can be completely read and stored by the charging dock, the recording file to be copied cannot be damaged, and therefore the integrity of the recording file to be copied is improved.

Referring to fig. 3, fig. 3 is a block diagram illustrating a voice recording apparatus according to an embodiment of the present invention, which is used for a charging dock, and includes:

the reading module 10 is used for entering a first target running state when detecting that an intelligent work card is accessed, and reading a recording file to be copied from the intelligent work card;

a write-in module 20, configured to write the read audio file to be copied into a local memory;

the sending module 30 is configured to send the written-in record file to be copied to a cloud storage when the writing of the record file to be copied is completed, so that the cloud storage stores the written-in record file to be copied.

It should be noted that, since the steps executed by the apparatus of this embodiment are the same as the steps of the foregoing method embodiment, the specific implementation and the achievable technical effects thereof can refer to the foregoing embodiment, and are not described herein again.

The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:协同存储架构

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类