DAB_Audio added on language forge not showing up in App

Hi there

I’ve posted this in the Language Forge too, but https://community.software.sil.org/u/chris_hirt said it was rather an DAB issue. So here we go:

Hi there
I’ve added audio to my dictionary following the instruction on Add audio to your project in languageforge.org

But I can’t get the audio to show in the app built with DAB (using 6.0).
See screenshot of the app.

What do I need to do?

Thank you for your help!
Simon

I have only seen audio supported on the head word.

Your example seems to be all on the gloss.

Can you share a single LIFT entry and associated audio. Let me know where to get it via private message.

Hi Ian
Okay, so this means that there is generally only audio for the head word available in the App?

Here’s the .lift on that entry:

<entry dateCreated="2016-06-16T15:43:48Z" dateModified="2020-04-21T07:39:31Z" id="a2_18e2b35c-583a-4c32-8af0-3bf2573129fb" guid="18e2b35c-583a-4c32-8af0-3bf2573129fb" order="2">
<lexical-unit>
<form lang="tuq"><text>a</text></form>
<form lang="tuq-Zxxx-x-audio"><text>20200421073925_recording_2020_04_21_07_39_24.mp3</text></form>
</lexical-unit>
<trait  name="morph-type" value="stem"/>
<sense id="5dc224ed-4b75-455e-afdc-0555413a69e1">
<gloss lang="ayl"><text>الحرف الأول من الأبجدية التباوية</text></gloss>
<gloss lang="ayl-Zxxx-x-audio"><text>20200414072015_recording_2020_04_14_07_20_14.mp3</text></gloss>
<gloss lang="en"><text>first letter of the Teda alphabet</text></gloss>
<gloss lang="en-Zxxx-x-audio"><text>20200414071725_recording_2020_04_14_07_17_24.mp3</text></gloss>
<gloss lang="fr"><text>première lettre de l'alphabet toubou</text></gloss>
<gloss lang="fr-Zxxx-x-audio"><text>20200414071704_recording_2020_04_14_07_17_03.mp3</text></gloss>
<reversal type="fr"><form lang="fr"><text>première lettre de l'alphabet toubou</text></form>
</reversal>
<reversal type="ayl"><form lang="ayl"><text>الحرف الأول من الأبجدية التباوية</text></form>
</reversal>
<reversal type="en"><form lang="en"><text>first letter of the Teda alphabet</text></form>
</reversal>
</sense>
</entry>

I’ve added an audio to the head word but that also doesn’t show in the app.

Will send you audio via email

Do I understand right, that the app can only show/play audio for the head word?

I have been tinkering around and found out, that DAB finally showed me the audio for the head word. But only if I record it in FLEx. Although the .lift entries look identical to me (see below), it only works when I record in FLEx. The only difference is, that FLEx records a .wav file whereas language forge records a .mp3.
But even when I manually changed the language forge recording to a .wav and renamed it as .wav in the .lift file it wouldn’t show up in the App.

I would of course love it to work when I record form language forge too, as I hope to have language helpers recording.

Recordings for gloss or definitions don’t show up in the app, but DAB does not support this in general I learned.

.lift for entry, recordings in languageforge:

<form lang="tuq"><text>a audio test LF recording</text></form>
<form lang="tuq-Zxxx-x-audio"><text>20200511131859_recording_2020_05_11_13_18_56.mp3</text></form>
</lexical-unit>
<trait  name="morph-type" value="stem"/>
<sense id="7461e097-e2ae-4ea3-92ed-669cd7827362">
<gloss lang="fr"><text>test audio gloss</text></gloss>
<definition>
<form lang="fr"><text>test audio definition</text></form>
</definition>
<example>
<form lang="tuq"><text>a waha ndoduri</text></form>
<translation type="Traduction libre">
<form lang="fr"><text>ceci est un test</text></form>
<form lang="fr-Zxxx-x-audio"><text>20200511132513_recording_2020_05_11_13_25_11.mp3</text></form>
</translation>
</example>
</sense>
</entry>

.lift for entry, recordings in FLEx:

<entry dateCreated="2020-05-11T12:57:22Z" dateModified="2020-05-11T13:17:07Z" id="a audio test FLEx recording_f1efaf50-6b13-4f68-bf08-fb5853ed5f7b" guid="f1efaf50-6b13-4f68-bf08-fb5853ed5f7b">
<lexical-unit>
<form lang="tuq"><text>a audio test FLEx recording</text></form>
<form lang="tuq-Zxxx-x-audio"><text>637247986527555163a audio test.wav</text></form>
</lexical-unit>
<trait  name="morph-type" value="phrase"/>
<relation type="_component-lexeme" ref="">
<trait  name="complex-form-type" value="Unspecified Complex Form"/>
</relation>
<sense id="ead87c2d-95c0-4af7-a2b4-fc6a5caa00cf">
<gloss lang="ayl"><text>محاول</text></gloss>
<gloss lang="en"><text>audio test</text></gloss>
<gloss lang="fr"><text>test (m) audio</text></gloss>
<definition>
<form lang="ayl-Zxxx-x-audio"><text>637247986654279058محاول.wav</text></form>
<form lang="en-Zxxx-x-audio"><text>637247986693305652محاول.wav</text></form>
<form lang="fr-Zxxx-x-audio"><text>637247986723584814محاول.wav</text></form>
</definition>
<example>
<form lang="tuq"><text>a waha ndoduri</text></form>
<translation type="Traduction libre">
<form lang="fr-Zxxx-x-audio"><text>637247993569879439A CmTranslation.wav</text></form>
</translation>
</example>
</sense>
</entry>

If you are in FLEX then have you tried using the XHTML output? It may be able to play your definition/gloss audio.

Have tried. But the audio (wether I record it in FLEx under “Definition” nor if I record it under “Reversal Entries”) isn’t even showing up in the “AudioVisual” folder created when exporting the XHTML.
PLUS: part of the audio recorded in languageforge didn’t show up in FLEx when I synced it (only audio of the head word and the audio of the example of my gloss language French made it into FELx) . I had to record it in FLEx. (But my goal would be to have language helpers do the recording in languageforge)
And as I mentioned above: even though the audio of the head word was synced from languageforge into FLEx, it doesn’t show up in the App.

Was this problem fixed?

No. The source of the problem has been established in this thread but no steps to its solution have been taken, as far as I can tell. It makes it more or less impossible right now to use audio, which is a shame :no_mouth:

Seems to be a little tricky, this question. I played around these days, with a large Cheyenne dictionary file that was provided to me, in the SFM format of Lexique Pro (or Toolbox). The backslash code was \sf for headword audio, and \sfx for glosses or example phrases. Curiously, the audio didn’t work at all in the Notebook that I tried initially, but at home on my Desktop (same version of Win 10) it worked perfectly in Lexique Pro, and also taking it via Liftfile to DAB, was no issue. I still can’t figure out why this would be so, but it might be worth, taking it from one computer to another.