Voice Module SKU: DFR0534
Introduction
Do you always feel like the DIY work is boring, not attractive or no vitality when you design it by
yourself?
This new voice module produced by DFRobot can solve these problems. This module can store 8M
audio files, which means it can store more than 200 audios for your choice. Its storage method is as
simple as USB flash drive, and audios can be updated at any time. It uses the DF-Gravity interface,
free from wiring; It has the ability to play the specified audio, play in loop, and adjust volume. It is
suitable for all kinds of projects related to sound or voice, such as intelligent car, meteorological
stations, smart home devices, vehicle navigation, toll stations, safety monitoring, machine audio
navigation and so on.
Specification
Operating Voltage: 3.3V ~ 5V
Interface: UART
Support MP3 WAV Hardware Decoding
Support Sampling Rate (KHz): 8/11.025/12/16/22.05/24/32/44.1/48
Support to imitate SPIFLASH to U disk, and audios in SPIFLASH can be updated by the way to
operate USB flash drive
Support 30 levels of volume adjustment
Dimension: 22x30mm/0.87x1.18in
Board Overview
Num Name
1
2
3
4
5
4
5
6
7
8
9
10
T
R
-
+
VCC
GND
BUSY
SP+
SP-
DACL
DACR
ONE
micro
usb
Description
TX
RX
GND
3.3V-5V
3.3V-5V
GND
Busy signal pins, high for play, others are low
Trumpet
Trumpet
DAC audio output in left channel
DAC audio output in right channel
One-line serial control pins
File Update Interface
(Connect USB to PC, the storage mode is as
simple as U disk)
11
COMMREQ
Check Playback Status(01)
Command: AA 01 00 AB
Return: AA 01 01 Playback status SM
Explanation: You can check the play status at any time.
Play(02)
Command: AA 02 00 AC
Return: None
Explanation: Play the current track from the beginning at any time.
Pause(03)
Command: AA 03 00 AD
Return: None
Playstop(04)
Command: AA 04 00 AE
Return: None
Prev Audio(05)
Command: AA 05 00 AF
Return: None
Next Audio(06)
Command: AA 06 00 B0
Return: None
Specified Audio:(07)
Command: AA 07 02 Upper-Byte Lower-Byte SM
Return: None
E.g. AA 07 02 00 08 BB will specify to play the eighth audio in the current drive, and the audio
number is from 1 to 65535.
Play the audio in specified drive of specified path.(08)
Command: AA 08 length drive path SM
Return: None
Explanation: length= drive length + path length=1+ path length
Check the current online drive.(09)
Command: AA 09 00 B3
Return: AA 09 01 Drive SM
Explanation: The online drive is differentiated by bitwise
usb:bit (0) sd:bit (1) flash:bit (2)
It can check the current online drive. It is recommended that you check the current online drive
before switching the drive.
Check the current drive(0A) to play
Command: AA 0A 00 84
Return: AA 0A 01 Drive SM
Switch to the specified drive(0B)
Command: AA 0B 01 drive SM
Return: None
Explanation: It is drive switching command. If the current drive is online, you can switch it to the
corresponding drive and wait to play. After switching, the module plays the first audio of this drive. It
is recommended to check whether the drive is online before you switch.
Check the total audios(0C)
Command: AA 0C 00 B6
Return: AA 0C 02 Upper-byte Lower-byte SM
Check the current audio(0D)
Command: AA 0D 00 B7
Return: AA 0D 02 upper-byte lower-byte SM
The Directory of the previous folder(0E)
Command: AA 0E 00 B8
Return: None
Explanation: The first audio in the folder will be played after switching.
The directory of the next folder(0F)
Command: AA 0F 00 B9
Return: None
Explanation: The first audio in the folder will be played after switching.
End to play(10)
Command: AA 10 00 BA
Explanation: This command can end the current operations in advance. If the command end a cut-in,
it will end in advance and return to the original status.
Check the first audio in the folder(11)
Command: AA 11 00 BB
Return: AA 11 02 Upper-byte Lower-byte SM
Explanation: It is the sequence number of the first audio.
Check the total numbers of audio in all folders(12)
Command: AA 12 00 BB
Return: AA 12 02 Upper-byte Lower-byte SM
Explanation: This number does not contain the number of files in subdirectories.
Volume settings(13)
Command: AA 13 01 VOL SM
Return: None
Explanation: AA 13 01 14 D2 Set volume to level 20.