No sound when trying to play "text"

hi

im trying to make this work.

I have this when setting up the view:
VoiceEngine voiceEngine = new VoiceEngine().setButtons(MICROPHONE, RECORD, PLAY, STOP, LANG, VOICE);

(by the way it the 2 dropdowns are empey first and I need to reload the page before it gives med language options - running windows 10 and firefox)

I have a grid and a context menu so when I click on a row and select the menu it does:

        if (gridsms.isPresent()) {
            voiceEngine.setSpeech(gridsms.get().getJournalentry());
            voiceEngine.play(gridsms.get().getJournalentry());
            System.err.println("læser: "+gridsms.get().getJournalentry());
            
        }

It does print out the expected text but it does not play any sound or seams to done anything.

There is a timing issue, I have detected it the first time I visit the page, it’s like it needs to cache voices and languages. Cannot reproduce always so I never tried to fix.
Regarding speakers of microphone you need to give permissions specially for the microphone, I have not seen issues in this matter.
Your code looks good, but maybe the engine has not been fully loaded at that time?