This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const app = dialogflow({ debug: true }) | |
app.intent('Default Welcome Intent', conv => { | |
conv.ask('Hi') | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<speak> | |
<par> | |
<media xml:id="question" begin="0.5s"> | |
<speak>Who invented the Internet?</speak> | |
</media> | |
<media xml:id="answer" begin="question.end+2.0s"> | |
<speak>The Internet was invented by cats.</speak> | |
</media> | |
<media begin="answer.end-0.2s" soundLevel="-6db"> | |
<audio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<speak> | |
<say-as interpret-as="spell-out">silvano</say-as> is how you spell out my name. | |
I am <say-as interpret-as="unit"> 1 .75 m </say-as> tall. | |
<say-as interpret-as="fraction">5+1/2</say-as> is a fraction. | |
<say-as interpret-as="expletive">censored</say-as> is something that I shouldn't be saying. | |
</speak> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<speak> | |
Hello | |
<break/> | |
With SSML, | |
<prosody rate="fast">you can make speech fast.</prosody> | |
<prosody rate="slow">Or, make it slow.</prosody> | |
<prosody pitch="high">You can make it high.</prosody> | |
<prosody pitch="low">Or, you can make it low.</prosody> | |
<prosody volume="loud">You can make it loud.</prosody> | |
<prosody volume="soft">Or, you can make it quiet.</prosody> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'google-api-php-client/src/Google_Client.php'; | |
require_once 'google-api-php-client/src/contrib/Google_PlusService.php'; | |
// Set your cached access token. Remember to replace $_SESSION with a | |
// real database or memcached. | |
session_start(); | |
$client = new Google_Client(); | |
$client->setApplicationName('Google+ PHP Starter Application'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
(function() { | |
var po = document.createElement('script'); | |
po.type = 'text/javascript'; po.async = true; | |
po.src = 'https://apis.google.com/js/client:plusone.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(po, s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://apis.google.com/js/client.js"></script> | |
<script> | |
function auth() { | |
var config = { | |
'client_id': 'YOUR_CLIENT_ID', | |
'scope': 'https://www.googleapis.com/auth/plus.login', | |
'request_visible_actions': 'http://schemas.google.com/AddActivity' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
* use this file except in compliance with the License. You may obtain a copy of | |
* the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
NewerOlder