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
recognition = new webkitSpeechRecognition(); | |
recognition.lang = "ja-JP"; | |
recognition.continuous = true; | |
recognition.start(); |
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 | |
include 'voicetext.php'; | |
?> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>VoiceTextWebAPI-PHP</title> |
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
<textarea id="textarea" rows=10 cols=80></textarea> | |
<button id="button" onclick="toggleStartStop()"></button> | |
<script type="text/javascript"> | |
var recognizing; | |
var recognition = new SpeechRecognition(); | |
recognition.continuous = true; | |
reset(); | |
recognition.onend = reset; |
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
var express = require('express'); | |
var ejs = require("ejs"); | |
var VoiceText = require('voicetext'); | |
var Sound = require('node-aplay'); | |
var fs = require('fs'); | |
var app = express(); | |
app.engine('ejs',ejs.renderFile); | |
app.get('/', function(req, res){ |
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
var express = require('express'); | |
var ejs = require("ejs"); | |
var spawn = require('child_process').spawn; | |
var app = express(); | |
app.engine('ejs',ejs.renderFile); | |
app.get('/', function(req, res){ | |
res.render('control.ejs', | |
{title: 'Samuel L 9000'}); |
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 lang="ja-JP"> | |
<head> | |
<meta http-equiv="content-type" | |
content="text/html; charset=UTF-8"> | |
<title><%=title %></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | |
<style> | |
article{ |
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 lang="en"> | |
<head> | |
<meta http-equiv="content-type" | |
content="text/html; charset=UTF-8"> | |
<title><%=title %></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | |
<style> | |
/* Header Style */ |
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> | |
<meta http-equiv="content-type" | |
content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no"> | |
<title><%= title %></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | |
<link rel='stylesheet' href='/stylesheets/style.css' /> |
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
# Description: | |
# 日報. | |
# | |
# 時刻を受け取ってYYYY-mm-dd形式で返す | |
toYmdDate = (date) -> | |
Y = date.getFullYear() | |
m = ('0' + (date.getMonth() + 1)).slice(-2) | |
d = ('0' + date.getDate()).slice(-2) | |
return "#{Y}-#{m}-#{d}" |
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
# Description: | |
# 時報. | |
# | |
# Commands: | |
# 時刻を受け取ってhh:mm形式で返す | |
tohhmmTime = (date) -> | |
hh = ('0' + date.getHours()).slice(-2) | |
mm = ('0' + date.getMinutes()).slice(-2) | |
return "#{hh}:#{mm}" |
OlderNewer