简体   繁体   中英

Create Message voice action for non en-us locales

I would like to know which are my posibilities as a developer to implements a send message voice action, in a custom Telegram app, for spanish users. I want to implement the send new message action, I does not interested in replying to received messages (this is already implemented). I already know that there are built-in intents but the CREATE_MESSAGE built-in intent is only available for en-us locale. I also checked the custom intents but there are also only availables for en-us locale as I know. Which more options do I have?

PD: My final goal is to make the app compatible for Android Auto so I'm making it compatible with google assistant first.

Thanks in advance.

As you note, the actions.intent.CREATE_MESSAGE BII is only available in en-US right now. This is probably the best one, since it provides getting and sending a message without any additional work.

You may want to see if actions.intent.OPEN_APP_FEATURE will work for your needs. It has the downside that it does not have the fields available in CREATE_MESSAGE , but it might be a useful way to open the app.

However...

If you're planning on targeting Android Auto , that platform is even more restricted. If you're building an Android Auto app, you are limited to use only the actions.intent.GET_PARKING_FACILITY or actions.intent.GET_CHARGING_STATIONS BIIs. If you are willing to have it return a widget, you get a little more flexibility in what BIIs it accepts , but these don't let you send a message or open the app (even in en-US).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM