简体   繁体   English

有没有一种方法可以通过编程方式发送消息,而无需用户点击屏幕来确认发送消息,而只是使用语音命令?

[英]Is there a way to send a message programmatically without user having to tap on screen to confirm sending the message, but just to use voice commands?

I would like to make a Voice Assistant app and I would like to have functionality for sending SMS messages to certain people. 我想制作一个语音助手应用程序,并且希望具有向某些人发送短信的功能。 Can I send that message, and after I dictated my text I want to say "Send" in order to send the message. 我可以发送该消息吗?我说完文字后,我想说“发送”以便发送消息。 So, there should not be any physical interaction between the user and the screen. 因此,用户与屏幕之间不应存在任何物理交互。 Only voice commands. 仅语音命令。 Is that possible to do? 那有可能吗?

I researched some solutions but I saw that this is not possible and that user interaction is needed. 我研究了一些解决方案,但发现这是不可能的,需要用户交互。 Now I am not sure if by that, they mean physical user interaction by touching the device. 现在我不确定是否通过触摸设备来表示物理用户交互。

there should not be any physical interaction between the user and the screen. 用户与屏幕之间不应存在任何物理交互。

If you are using iOS default way for sending message ie MFMessageComposeViewController then No, it's not possible. 如果您使用iOS默认方式发送消息,即MFMessageComposeViewController ,则不能,这是不可能的。 As mentioned in this (basically to prevent spamming) 正如提到这个 (基本上可以防止垃圾邮件)

What about Twilio 3rd party service Twilio 3rd party服务怎么样

With third party integration, you can achieve what you want but keep in mind that companies like Twilio charge a certain amount against the service they provide and that charge has to be bear by you or your company 通过第三方集成, 您可以实现所需的目标,但请记住,像Twilio这样的公司会从他们提供的服务中收取一定的费用,并且该费用必须由您或您的公司承担

iOS will always present a dialog to confirm send. iOS将始终显示一个对话框以确认发送。 This is by design to avoid you sending SMS messages through stealth as they can cost money. 这是设计使然,避免您通过秘密发送SMS消息,因为它们可能会增加费用。 You could also send premium rate sms messages which could cost the user money. 您也可以发送溢价短信,这可能会浪费用户的钱。

You could send the message to a cloud service or your own service and forward the messages from there as mentioned above. 您可以将消息发送到云服务或您自己的服务,然后从那里转发消息,如上所述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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