Adding Sound Files in Lexical Data

Format:

All your sound files will need to be converted to the mp3-format.

Export:

Currently FLEx doesn’t export the field “Media File” (which can be found under “Pronunciation”). So you will need to create a custom field (the importer will search for “audio”). You can have more than one audio custom field, it just has to contain “audio” somewhere, e.g. “example-audio”. Go to “Tools” -> “Configure” -> “Custom Fields”. In addition to creating an “audio” field under the location “Entry”, you can also create an audio field for the example sentences, etc.

flex-custom-audio

Then you can do a bulk copy from the “Media Field” to the “audio” field. You will have to manually copy the files (batch copying isn’t possible). In a future version of FLEx it will no longer be necessary to create custom fields.

Please don’t use the FLEx path to link to your sound files in the custom field, but just the filename, e.g. “something.mp3″. You can have your mp3 files in sub-folders, in that case link them like this “somepath/something.mp3″.

Import Mp3

Before you export the xhtml, check the custom field “audio” in Tools -> Configure -> Dictionary… so that it shows in the dictionary view and gets exported.

Upload:

We will create a folder named “audio” on the server and give you access to a file-uploader.

Display Sound Files in Webonary:

For displaying the mp3 files we use UbaPlayer. It uses HTML5 and there is a Flash fallback for older browsers. It will display a small player button after your entry.

sound-display