Skip to content

Commit

Permalink
split demo from callback
Browse files Browse the repository at this point in the history
  • Loading branch information
wasnoplus committed Sep 24, 2020
1 parent ed21a53 commit 56fa105
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.php → demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Azumuta speech recognition tool.</title>

<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="normalize.css">
<style type="text/css">
html, body {
margin: 0;
Expand Down Expand Up @@ -35,7 +35,7 @@
var globalRecognizer;
<?php
$words = [];
$handle = fopen("words.txt", "r");
$handle = fopen("../words.txt", "r");
while (($line = fgets($handle)) !== false) {
array_push($words, trim($line, "\n."));
echo "allWords.push('" . trim(strtolower($line), "\n.") . "');";
Expand All @@ -44,9 +44,9 @@

</script>

<script type="text/javascript" src="script/jquery.js"></script>
<script type="text/javascript" src="script/marking.js"></script>
<script type="text/javascript" src="script/resultHandling.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="marking.js"></script>
<script type="text/javascript" src="../script/resultHandling.js"></script>
</head>
<body style='width: 100%; height: 100%'>
<table style='width: 100%; height: 100%'>
Expand Down Expand Up @@ -75,7 +75,7 @@
if ($i == 5) {
echo '<td colspan="2">';
echo '<vosk-recognizer model-url="model-nl.tar.gz" oneshot></vosk-recognizer>';
echo '<script src="script/VoskJS.js"></script>';
echo '<script src="../script/VoskJS.js"></script>';
echo '</td>';
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 56fa105

Please sign in to comment.