Share My Creation [BANano] Text to Speech

xulihang

Active Member
Licensed User
Hi Guys,

I have little web development experience before BANano came out. After some experiments, I found using BANano is very convenient as components can be wrapped as a B4J custom view and basic language can be transpiled to javascript.

I also accumulate my knowledge of web development by using BANano. I learned things like grid layout.

I've just done a learning project which is a text to speech app using Web Speech API. I have tested it on Windows 10, Firefox android 64 and iOS 10. You can see it here.

a6938c7aly1fze63addl0j20hs0vkn0j.jpg
 

Attachments

Kiffi

Well-Known Member
Licensed User
on my computer, the list of voices is often empty. Actually you should wait for the onvoiceschanged event and then load the list of voices. Here is a more pragmatic solution that works for me. ;)

B4X:
Sub loadVoices()
  
  [Code from xulihang]

  If voicesMap.Size = 0 Then
    BANano.Sleep(100)
    loadVoices
  End If

End Sub
 
Top