Best Practice - how to rename soundfiles recorded with flex

34 views
Skip to first unread message

Bart Eenkhoorn

unread,
Aug 6, 2024, 5:52:48 AM8/6/24
to 'Brent Brollier' via FLEx list
L.S.

Flex does a great job recording audio. These .wav files can even be cleaned and normalised by external software and flex will still show and play the changed result. However, depending on the filename, not all audio files will be played by the DAB produced app.

A filename like 638526651455390395sheraha.wav will play fine in the DAB produced app, but a filename like 638533696697147926kpaunsɛɛ.wav will not, because DAB does not support unicode in filenames.

Now, to circumvent this, I tried to rename the 638533696697147926kpaunsɛɛ.wav filename to 638533696697147926kpaunsee.wav by editing the .fwdata file outside of flex. This resulted in Flex deciding that there was no audio recorded for the particular entry. So in fact it did not work.

Question : what is needed to successfully rename a soundfilename recorded with flex and for flex to accept the new filename ?

A second way to deal with this is to edit the exported xhtml, and create an alternate set of  (renamed) .wav files separate from the .wav files "inside" flex. It will probably work, but is potentially a lot of repetitive effort for each app release, as the files with these characters in our database now number 800+ and new recordings are planned.

What can you share from your experience? What other ways are there to circumvent this shortcoming of DAB?

Thanks in advance for your tips and ideas,
Bart.


Virus-free.www.avast.com

Jean Paul Gotopo Maldonado

unread,
Aug 6, 2024, 8:53:19 PM8/6/24
to flex...@googlegroups.com
I don't have much experience recording audio but I do have experience with xhtml files.
Make sure that this line of code is in the xhtml: <?xml version="1.0" encoding="UTF-8"?>
Usually on the first line

--
"FLEx list" messages are public. Only members can post.
flex_d...@sil.org
http://groups.google.com/group/flex-list.
---
You received this message because you are subscribed to the Google Groups "FLEx list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flex-list+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flex-list/Mailbird-07dc0bbf-6896-4ce5-80a3-5c03419ffc8c%40sil.org.
Message has been deleted

Tim Kempton

unread,
Aug 7, 2024, 5:55:38 AM8/7/24
to flex...@googlegroups.com
Hi Bart
I don't have much experience with DAB (we plan to use Language Forge with our community because they have internet access on their phones). But a possible answer to your question:
  • for individual sound files, delete the audio entry and then hold down shift when you click on the record button to select the newly renamed wav file.
  • for multiple sound files, you can use "Bulk Edit Entries":
    • ensure that you display the audio writing system in the columns; you should now see all the wav filenames listed
    • use "Bulk Replace" or "Process" to rename the wav files according to some find/replace rule or script
Tim

Bart Eenkhoorn

unread,
Aug 7, 2024, 8:05:40 AM8/7/24
to 'Brent Brollier' via FLEx list
Thanks for the tip Tim. The Bulk Edit filename changes worked as you described. What I had not considered was that the actual files needed to have the name change at the same time. I used the Bulk Rename Utility (BRU) to do that at the same time as making the changes inside flex. With both the reference to the file as well as the actual filename changed, the audio is now ready to be used by DAB as well. (hopefully) 

Much obliged,
Bart.
--
"FLEx list" messages are public. Only members can post.
flex_d...@sil.org
http://groups.google.com/group/flex-list.
---
You received this message because you are subscribed to the Google Groups "FLEx list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flex-list+...@googlegroups.com.

Tim K

unread,
Aug 7, 2024, 9:48:07 PM8/7/24
to FLEx list
Hi Bart
I don't have much experience with DAB, partly because we're betting that Language Forge will work for our community since they have internet access on their phones. But a possible answer to your question:
  • For individual sound files you could delete the audio entry in Flex, then hold shift when you click the record button to select the new renamed wav file
  • For batch processing, you can use "Bulk Edit Entries" to change the wav filenames
    • e.g. using "Bulk replace" or "Process" (assuming that there is some mechanical process to change the filenames)
    • ensure that you show the audio writing system in the columns
Tim
Reply all
Reply to author
Forward
0 new messages