File size: 2,249 Bytes
9097688
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
671377f
9097688
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">

    <title>TedCas Speech Recognition Modelo Cliente-Servidor</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


</head>
<body>
    <!-- Agregar un logotipo desde una URL -->
    <img src="https://tse4.mm.bing.net/th?id=OIP.KUs6tP0b1rKLZ5lBq7JAEQHaDS&pid=Api&P=0&h=180" alt="Logotipo de la empresa" width="300">

    <h1>TedCas Speech Recognition Modelo Cliente-Servidor</h1>
    <p>{{ texto_imprimir }}</p>

    <!--<p>{{ condition }}</p>-->


    <div id="controls">
        <button id="recordButton">Record</button>
        <button id="pauseButton" disabled>Pause</button>
        <button id="stopButton" disabled>Stop</button>
    </div>
    <div id="formats">Format: start recording to see sample rate</div>
    <p><strong>Recordings:</strong></p>
    <ol id="recordingsList"></ol>
    <!--<script>
        function actualizarCondition() {
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4 && xhr.status == 200) {
                    // Actualizar la variable con la respuesta del servidor
                    window.globalCondition = xhr.responseText;

                    // Imprimir el valor en la consola
                    console.log("html");
                    console.log(globalCondition);
                }
            };
            xhr.open("GET", "/", true);
            xhr.send();
        }

        actualizarValor();
    </script>-->
    <!-- inserting these scripts at the end to be able to use all the elements in the DOM -->
    <script src="https://cdn.rawgit.com/mattdiamond/Recorderjs/08e7abd9/dist/recorder.js"></script>
    <!--<script>
        window.condition = "{{ condition }}";
        console.log("html");
        console.log(condition);
    </script>-->
    <!-- Agrega un cuadro de texto para mostrar la respuesta -->
    <!--<input type="text" id="responseTextBox" readonly>-->
    <div id="textElement"></div>
    <!--<div id="condition"></div>
    <script>
        var condition = {{ condition }};
    </script>-->
    <script src="/static/js/app.js"></script>

    <!-- El texto plano se mostrará aquí -->



</body>
</html>