Join Slack
Powered by
is anyway to use web speech api for web browser us...
# multiplatform
a
An Tran
02/22/2022, 6:58 AM
is anyway to use web speech api for web browser using kotlin guys? I want to have speech to text function
b
Big Chungus
02/22/2022, 9:57 AM
Anything you can use from JS you can also use from Kotlin.js
a
An Tran
02/22/2022, 9:59 AM
I know this, but web speech api is not a npm packages, it ties with chrome browser
b
Big Chungus
02/22/2022, 10:00 AM
Doesn't matter, just declare that global API surface via kotlin externals and you're good to go.
a
An Tran
02/22/2022, 10:01 AM
thanks, could you give me a github example or an aricle
b
Big Chungus
02/22/2022, 10:01 AM
https://dev.to/mpetuska/js-in-kotlinjs-c4g
"Declaring global js api" section
❤️ 1
4
Views
Open in Slack
Previous
Next