Interesting Stuff
This commit is contained in:
19
app/models/GoogleHome.php
Normal file
19
app/models/GoogleHome.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
class GoogleHome {
|
||||
function response()
|
||||
{
|
||||
header('Content-Type: application/json');
|
||||
$update_response = file_get_contents("php://input");
|
||||
$update = json_decode($update_response, true);
|
||||
echo '"RichResponse": {
|
||||
"items": [
|
||||
{
|
||||
"simpleResponse": {
|
||||
"textToSpeech": "test speech"
|
||||
}
|
||||
}
|
||||
]
|
||||
}';
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user