File size: 3,769 Bytes
7a7248b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <title>🎙️Transkript</title>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>

        html, body {

            margin: 0;

            padding: 0;

            height: 100%;

            font-family: "cursive";

            overflow: hidden;

            display: flex;

            justify-content: center;

            align-items: center;

        }



        #particles-js {

            position: fixed;

            width: 100%;

            height: 100%;

            background-color: #0d1b2a;

            z-index: -1;

        }



      .container {

    max-width: 1000px;

    width: 95%;

    background: rgba(176, 26, 26, 0.459);

    padding: 50px;

    border-radius: 20px;

    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);

    z-index: 1;

    color: #fff;

}



.output-box {

    margin-top: 15px;

    background: #e9ecef;

    padding: 10px;

    border-radius: 10px;

    white-space: pre-wrap;

    max-height: 300px;

    overflow-y: auto;

    color: #000;

}



.output-box h2, 

.output-box h3, 

.output-box p {

    margin-top: 5px;

    margin-bottom: 5px;

}





    </style>
</head>
<body>
    <div id="particles-js"></div>

    <div class="container">
        <h2 class="text-center mb-4">🎙️ Ses Dosyasını Metne Dönüştür</h2>
        <form method="POST" enctype="multipart/form-data">
            <div class="mb-3">
                <label for="file" class="form-label">Ses Dosyası Seç (.mp3)</label>
                <input class="form-control" type="file" name="file" id="file" required>
            </div>
            <div class="d-grid">
                <button type="submit" class="btn btn-primary btn-lg">Yükle ve Dönüştür</button>
            </div>
        </form>

        {% if metin %}
    <div class="output-box mt-1">
        <h5>🎧 Dönüştürülen Metin:</h5>
        <p>{{ metin }}</p>
    </div>
        {% if ozet %}
        <div class="output-box mt-4">
            <h5>📝 Metnin Özeti:</h5>
            <p>{{ ozet }}</p>
        </div>
        {% endif %}
          {% endif %}

    </div>

    <p style="position: fixed; bottom: 20px; left: 20px; color:#ffffff;">Designer by: Burak Tuğrul Aşık & Tarık Kahraman</p>

    <script src="https://cdn.jsdelivr.net/npm/particles.js"></script>
    <script>

        particlesJS('particles-js', {

            "particles": {

                "number": { "value": 90, "density": { "enable": true, "value_area": 800 } },

                "color": { "value": "#ffffff" },

                "shape": { "type": "star", "stroke": { "width": 0, "color": "#ffffff" }, "polygon": { "nb_sides": 5 } },

                "opacity": { "value": 0.5, "random": false },

                "size": { "value": 3, "random": false },

                "line_linked": { "enable": true, "distance": 150, "color": "#ffffff", "opacity": 0.4, "width": 1 },

                "move": { "enable": true, "speed": 1, "direction": "none", "random": false, "straight": false, "out_mode": "out", "bounce": false }

            },

            "interactivity": {

                "detect_on": "canvas",

                "events": {

                    "onhover": { "enable": true, "mode": "repulse" },

                    "onclick": { "enable": true, "mode": "push" },

                    "resize": true

                },

                "modes": {

                    "repulse": { "distance": 100, "duration": 0.4 },

                    "push": { "particles_nb": 4 }

                }

            },

            "retina_detect": true

        });

    </script>
</body>
</html>