For the first time, sound is not playing in android.It is working fine from the second time on wards

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi Team,

We have integrated voice output component.

We observed that for the first time , voice is not coming bt fro the second time on wards it is coming properly.Please help us to resolve the same

Plaform: android

@Felicity Hill​ @Bevuden Hollowvy​ @Mvx Wilson​ please help. Thanks!

Hi @Tevgvn Kemp​ ,

Can you send the device logs when you run for the first time and second time.

Thanks,

Sai

Hi Saikumar,

Please find attached log files.

also attaching the sample project

This post is empty, no comment was left. Hopefully better content is forthcoming.

Attached logs separately as I coulnot be able to add in the same

Hi @Tevgvn Kemp​ ,

Please replace the following code in the texttospeechController.js file in construction function.

this.controllerImpl = new ControllerImplementation(this, baseConfig.id);

to

this.controllerImpl = new ControllerImplementation(this, baseConfig.id); this.controllerImpl.getNativeController();

Line number 27.

Thanks,

Sai

Hi @Tevgvn Kemp​ ,

Please confirm us the changes are working without any issues.

Thanks,

Sai

Hi Saikumar,

After adding the mentioned changes , it is working fine.

Thank you

Hello Archana, glad to know it worked. Don't forget to click 'select as best' under the most helpful response from Sai to close the thread. Thanks!