Integrate speech to text api

Hi,
I specify that I am a beginner with HA and I do not have sufficient programming concepts …
I noticed the HA TSS API and I can use it and I have configured HA with haaska.
But I presume the amazon skill don’t allow to communicate with a media player for example.
I saw that there are Google or Amazon services that provide APIs for Speech recognition.
Google Speech to text
Amazon transcribe…
I know there are paying services (Google has a free offer for one year).
Is it possible to integrate one of this api to HA ?
This would allow adding a microphone on the system that contains HA to create a Echo or home like.
Is-it possible ?