User Tools

Site Tools


Joomla says you aren't logged in
voiceoutput

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
voiceoutput [2017/05/25 19:06]
Deal57 [Software Configuration] formatting updates
voiceoutput [2018/05/12 09:27] (current)
Moeder [Setting up the emulator for voice alerts]
Line 1: Line 1:
 ===== Adding voice support ===== ===== Adding voice support =====
 The unmodified Devo transceivers only support sound output using the internal buzzer. By adding a cheap voice module and a speaker, you can enable deviation to play custom mp3 files on switch action, telemetry alarm and many other things. The MP3 files used are located on a MicroSD card in an additional hardware module, the Devo transmitter needs a //​voice.ini//​ within the //media// folder which contains information about the files available on the MicroSD card and each files duration. For details concerning usage, please refer to the manual. The unmodified Devo transceivers only support sound output using the internal buzzer. By adding a cheap voice module and a speaker, you can enable deviation to play custom mp3 files on switch action, telemetry alarm and many other things. The MP3 files used are located on a MicroSD card in an additional hardware module, the Devo transmitter needs a //​voice.ini//​ within the //media// folder which contains information about the files available on the MicroSD card and each files duration. For details concerning usage, please refer to the manual.
 +
 +Voice alerts are available by installing the appropriate hardware and the latest nightly [[http://​deviationtx/​downloads-new|Deviationtx.com Downloads]] for your TX.  The voice feature runs on all Deviation platforms except for Devo7e due to memory limitations.
 +
 +There are custom builds available for Devo 7e users with standard GUI disabled but voice enabled. This build can play the voice alerts, but the voice configuration editor menu is not available due to RAM space limitations. ​ The [[voiceoutput#​Setting up the emulator for voice alerts|7e Emulator]] available together with the custom 7e build has these features so that voice configurations and models can be edited. Models can also be edited manually on a PC.
 +
 ==== Audio players supported ==== ==== Audio players supported ====
 Currently the following MP3 modules are supported: Currently the following MP3 modules are supported:
Line 66: Line 71:
 The DFPlayer module can be powered by 3.3v to 5v, with 4.2v recommended. ​ A fully charged 1S, 3.6v lipo provides adequate voltage. ​ At full volume the board may use 70ma+ momentarily,​ and in standby it is rated at 20ma.  In testing, a 200mah 3.6 lipo lasted over two weeks of regular use (15-20 min/day). The DFPlayer module can be powered by 3.3v to 5v, with 4.2v recommended. ​ A fully charged 1S, 3.6v lipo provides adequate voltage. ​ At full volume the board may use 70ma+ momentarily,​ and in standby it is rated at 20ma.  In testing, a 200mah 3.6 lipo lasted over two weeks of regular use (15-20 min/day).
  
-Although not required, the Pololu S7V8A adjustable stepup/​stepdown regulator can ensure that the voltage is consistent and stable. ​ It can be wired to a 3.3 or 5v switched source near the power circuits (the location of which will vary by TX) to avoid affecting other electrical needs of the transmitter. ​ The S7V8A can also be wired directly to the battery-in port, provided that the -SHUTDOWN is connected (varies by TX). +Although not required, the Pololu S7V8A adjustable stepup/​stepdown regulator can ensure that the voltage is consistent and stable. ​ It can be wired to a 3.3 or 5v switched source near the power circuits (the location of which will vary by TX) to avoid affecting other electrical needs of the transmitter. ​ The S7V8A can also be wired directly to the battery-in port, provided that the -SHUTDOWN is connected (varies by TX).
  
 Here are some example power locations for transmitters. The forums may provide additional information as more pilots adopt the voice alerts feature. Here are some example power locations for transmitters. The forums may provide additional information as more pilots adopt the voice alerts feature.
   *   In the Devo 12e, connect to the Vdd and ground on the Debug port.  This may be a good power source for the Devo 10 as well.   *   In the Devo 12e, connect to the Vdd and ground on the Debug port.  This may be a good power source for the Devo 10 as well.
   *   In the Devo 6s, the Vdd and ground on the Debug port are convenient, and can be used if there are not other add-ons in use (such as the Multiprotocol board or other transmitter modules).   *   In the Devo 6s, the Vdd and ground on the Debug port are convenient, and can be used if there are not other add-ons in use (such as the Multiprotocol board or other transmitter modules).
-  *   In the Devo 7e power is a challenge: search the forum for more details. +  *   In the Devo 7e power is a challenge: search the forum for more details. ​ ​[[https://​www.deviationtx.com/​forum/​6-general-discussions/​6246-devo-7e-voltage-supply?​start=20#​53017|This excellent post]] is a good place to start.
  
 +==== Jumper T8SG V2 ====
 +The Jumper T8SG V2 and T8SG V2 plus are already prepared for installation of a DFplayer module.
 +The picture shows the necessary parts to get started. Basically any speaker with 22 mm diameter works fine.
 +{{ :​hardware:​voice:​voice-mod-parts-01.jpg?​600 |}}
 +First, you need to remove 2 pins on the left and 6 pins on the right side of the DFplayer module as depicted below.
 +{{ :​hardware:​voice:​mp3-dfplayer-mini-01.jpg?​600 |}}
 +Now you can solder module to the T8SG V2 PCB. You will have to unmount the main PCB to solder the pins on the bottom side.{{ :​hardware:​voice:​dfplayer-min-01.jpg?​600 |}}
 +The speaker can be mounted beneath the RF module at the top of the case and wired to the adjacent free header with a PH1.25 mm connector or directly wired to pins on the DFplayer module.
 +{{ :​hardware:​voice:​speaker-22x3.jpg?​600 |}}
 +To fit the battery compartment,​ you will have to cut along the prepared lines with a sharp knife or a small saw to make room for the DFplayer before reassembling the transmitter.
 +{{ :​hardware:​voice:​battery-comp-01.jpg?​600 |}}
 +Follow the software instructions below and setup hardware.ini for DFplayer and UART5 usage:
 +<code ini>
 +voice=dfplayer
 +voice-uart5=1
 +</​code>​
 ==== Software Configuration ==== ==== Software Configuration ====
  
Line 87: Line 107:
  
 == Voice Files: == == Voice Files: ==
-Deviation software nightly builds do not include the voice filesand the user must also download a basic set of voice alerts. ​ The files are currently available in the [[http://​deviationtx/​downloads-new|Deviationtx.com Downloads]] folder under [[https://​www.deviationtx.com/​downloads-new/​category/​705-moeder-voice-alerts|Test Builds/​[Moeder]voice_alerts]] and are available in English, French and German. ​ An expanded set of English voice alerts is also available.  ​Each zip file includes the required MP3 Folder and a voice.ini file catalog.+Deviation software nightly builds do include the voice features since April 2017but the user must also download a set of voice alerts. The files are currently available in the [[http://​deviationtx/​downloads-new|Deviationtx.com Downloads]] folder under [[https://​www.deviationtx.com/​downloads-new/​category/​1010-moeder-voice-packs|Test Builds/​[Moeder]voice_packs]] and are available in English, French and German. Each zip file includes the required MP3 Folder and a voice.ini file catalog
 + 
 +You can also use the [[https://​moeder.pythonanywhere.com/​voicepacker/​default/​index|Deviation Voicepacker]] service to create your own custom voice sets. This service will continue to evolve.
  
 The files for the DFPlayer are saved using MP3 format and are contained in the //\MP3// folder on the MicroSD card.  The MicroSD must be set up with the //\MP3// folder and all the voice alert files must be in that folder. ​ No other files or folders need to be on the card, so the card can be a small as 64MB (the actual disk storage for the largest file set is under 2MB). The files for the DFPlayer are saved using MP3 format and are contained in the //\MP3// folder on the MicroSD card.  The MicroSD must be set up with the //\MP3// folder and all the voice alert files must be in that folder. ​ No other files or folders need to be on the card, so the card can be a small as 64MB (the actual disk storage for the largest file set is under 2MB).
Line 107: Line 129:
 ;Audio player connected to UART (Devo12/S internally, others via trainer port): audiofx, dfplayer ;Audio player connected to UART (Devo12/S internally, others via trainer port): audiofx, dfplayer
 ;voice= ;voice=
 +voice=dfplayer
 ; ;
 ;Enable if audio device is wired to uart5 instead of ppm on devo7e-256 ;Enable if audio device is wired to uart5 instead of ppm on devo7e-256
Line 115: Line 138:
 == Deviation Voice Media catalog file voice.ini == == Deviation Voice Media catalog file voice.ini ==
    
-The voice alert files are cataloged in a file called //​voice.ini//​ that must be copied to the deviation \media folder on the transmitter. ​ The //​voice.ini//​ file contains lines that correspond to each voice alert file (ex: "​0=Welcome to deviation,​1617"​) that map the MP3 file name and duration for Deviation. ​ Each set of deviation voice alert files must have a //​voice.ini//​ file to match.  ​+The voice alert files are cataloged in a file called //​voice.ini//​ that must be copied to the deviation \media ​(\mymedia on Devo12(S)) ​folder on the transmitter. ​ The //​voice.ini//​ file contains lines that correspond to each voice alert file (ex: "​0=Welcome to deviation,​1617"​) that map the MP3 file name and duration for Deviation. ​ Each set of deviation voice alert files must have a //​voice.ini//​ file to match.  ​
 {{:​hardware:​voice:​voice_ini_file_example.png?​|}} {{:​hardware:​voice:​voice_ini_file_example.png?​|}}
  
 == Update Model.ini files == == Update Model.ini files ==
-The third change to the deviation transmitter is to configure the sounds in each model. ​ +The third change to the deviation transmitter is to configure the sounds in each model by using the voice config menu of each model (except for devo7e) or by directly editing the model.ini. 
  
 +== Adjust transmitter volume ==
 +The output volume of the transmitter can be adjusted using the Transmitter Menu, Transmitter Config, Audio volume.
  
 ==== Setting up the emulator for voice alerts ==== ==== Setting up the emulator for voice alerts ====
  
-  - The file //​MP3123.exe//​ is in main folder with emulator exe package ​and included in the nightly ​emulator ​builds+Download ​and unzip the emulator ​package for your transmitter.  
-  - Download the //\mp3// folder and files and place the //​\mp3// ​Folder ​in main folder with exe.  The //\mp3// folder is included in the voice alerts zip file from [[https://​www.deviationtx.com/​downloads-new/​category/​705-moeder-voice-alerts|Test Builds/​[Moeder]voice_alerts]]+  - Download the //\mp3// folder and files and place the //​\mp3// ​folder ​in the same folder with the exe.  The //\mp3// folder is included in the voice alerts zip file from [[https://​www.deviationtx.com/​downloads-new/​category/​1010-moeder-voice-packs|Test Builds/​[Moeder]voice_packs]] or in the voice packs created by [[https://​moeder.pythonanywhere.com/​voicepacker/​default/​index|Deviation Voicepacker]].
   - Update the file system as you would update the TX file system:   - Update the file system as you would update the TX file system:
- * Make appropriate changes to the //​hardware.ini//​  +  ​* Make appropriate changes to the //​hardware.ini//​  
- * Copy the //​voice.ini//​ to the //\media// folder +  * Copy the //​voice.ini//​ to the //\media// folder 
- * Edit each //​model.ini//​ to enable sounds +  * Edit each //​model.ini//​ to enable sounds ​or use the voice configuration menu (except devo7e, see above).
- +
voiceoutput.1495764384.txt.gz (52858 views) · Last modified: 2017/05/25 19:06 by Deal57