我想使用“询问对话”命令立即传递问题。我正在尝试自动化启动终端和运行“询问对话框”的过程。每当我的 bash 脚本运行时,它会在 Alexa 实例打开后暂停。
#!/bin/bash/
cd /Users/AlexaDirectory/
ask dialog
#this is where I need to ask Alexa a question automatically.
#I have tried running "ask dialog && (insert question)", but the script pauses once it reaches "ask dialog"
echo "end"
这是我在运行 .sh 时通常看到的内容
MacBook-Pro Desktop % bash Test.command
Defaulting locale to the first value from the skill manifest: en-US
======================================= Welcome to ASK Dialog =======================================
=========== In interactive mode, type your utterance text onto the console and hit enter ============
===================== Alexa will then evaluate your input and give a response! ======================
=== Use ".record <fileName>" or ".record <fileName> --append-quit" to save list of utterances to a file. ===
=============== You can exit the interactive mode by entering ".quit" or "ctrl + c". ================
User >
如果无法立即传递问题,是否可以向终端发送击键?