File size: 788 Bytes
8bd1d5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>認知測試與語音分析</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <h1>心理認知測試與語音分析工具</h1>
    <p>請錄製一段獨白或上傳語音檔案,我們將分析您的情緒並提供建議。</p>

    <button onclick="startRecording()">開始錄音</button>
    <button onclick="stopRecording()">停止錄音</button>
    <audio id="audioPlayback" controls></audio>
    <button onclick="uploadAudio()">上傳語音</button>

    <div id="result"></div>

    <script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>