commit c98c3b8c41e45f09bebd3e982fc9c21c7f6124cd
Author: root <root@hub.scroll.pub>
Date: 2025-01-02 03:04:16 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..855b4b9
--- /dev/null
+++ b/body.html
@@ -0,0 +1,23 @@
+<header>
+ <h1>AudioScribe</h1>
+ <p>Convert audio to text and summarize content effortlessly.</p>
+</header>
+
+<main>
+ <section class="upload-section">
+ <h2>Upload Your Audio File</h2>
+ <input type="file" id="audioFile" accept="audio/*">
+ <button id="convertBtn">Convert to Text</button>
+ </section>
+
+ <section class="results-section">
+ <h2>Results</h2>
+ <textarea id="textOutput" readonly></textarea>
+ <button id="summarizeBtn">Summarize</button>
+ <div id="summaryOutput"></div>
+ </section>
+</main>
+
+<footer>
+ <p>AudioScribe - Your audio transcription and summarization tool.</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..96a86c6
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://audioscribe.scroll.pub
+metaTags
+editButton /edit.html
+title AudioScribe - Convert Audio to Text & Summarize
+style.css
+body.html
+script.js
\ No newline at end of file
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..54912e7
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "1b185389-7787-4e3d-a2c4-4e9c9122f439",
+ "object": "chat.completion",
+ "created": 1735787036,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\naudioscribe.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://audioscribe.scroll.pub\nmetaTags\neditButton /edit.html\ntitle AudioScribe - Convert Audio to Text & Summarize\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>AudioScribe</h1>\n <p>Convert audio to text and summarize content effortlessly.</p>\n</header>\n\n<main>\n <section class=\"upload-section\">\n <h2>Upload Your Audio File</h2>\n <input type=\"file\" id=\"audioFile\" accept=\"audio/*\">\n <button id=\"convertBtn\">Convert to Text</button>\n </section>\n\n <section class=\"results-section\">\n <h2>Results</h2>\n <textarea id=\"textOutput\" readonly></textarea>\n <button id=\"summarizeBtn\">Summarize</button>\n <div id=\"summaryOutput\"></div>\n </section>\n</main>\n\n<footer>\n <p>AudioScribe - Your audio transcription and summarization tool.</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #50e3c2;\n --background-color: #f5f7fa;\n --text-color: #333;\n --border-radius: 8px;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n background-color: var(--background-color);\n color: var(--text-color);\n margin: 0;\n padding: 0;\n line-height: 1.6;\n}\n\nheader {\n text-align: center;\n padding: 2rem;\n background-color: var(--primary-color);\n color: white;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.upload-section, .results-section {\n background: white;\n padding: 1.5rem;\n border-radius: var(--border-radius);\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n margin-bottom: 2rem;\n}\n\nh2 {\n margin-top: 0;\n color: var(--primary-color);\n}\n\ninput[type=\"file\"] {\n display: block;\n margin: 1rem 0;\n padding: 0.5rem;\n border: 2px solid var(--primary-color);\n border-radius: var(--border-radius);\n width: 100%;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n font-size: 1rem;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\ntextarea {\n width: 100%;\n height: 150px;\n padding: 0.5rem;\n border: 2px solid var(--primary-color);\n border-radius: var(--border-radius);\n margin: 1rem 0;\n resize: vertical;\n}\n\n#summaryOutput {\n margin-top: 1rem;\n padding: 1rem;\n background-color: var(--background-color);\n border-radius: var(--border-radius);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n main {\n padding: 1rem;\n }\n\n button {\n width: 100%;\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('convertBtn').addEventListener('click', function() {\n const fileInput = document.getElementById('audioFile');\n if (fileInput.files.length === 0) {\n alert('Please select an audio file.');\n return;\n }\n\n const file = fileInput.files[0];\n const reader = new FileReader();\n\n reader.onload = function(e) {\n // Simulate conversion process\n setTimeout(() => {\n document.getElementById('textOutput').value = \"This is a simulated transcription of the audio file. In a real application, this would be replaced with the actual transcribed text.\";\n }, 1000);\n };\n\n reader.readAsDataURL(file);\n});\n\ndocument.getElementById('summarizeBtn').addEventListener('click', function() {\n const text = document.getElementById('textOutput').value;\n if (text.trim() === '') {\n alert('Please convert an audio file to text first.');\n return;\n }\n\n // Simulate summarization process\n setTimeout(() => {\n document.getElementById('summaryOutput').innerHTML = \"<p>This is a simulated summary of the transcribed text. In a real application, this would be replaced with the actual summarized content.</p>\";\n }, 1000);\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 250,
+ "completion_tokens": 1168,
+ "total_tokens": 1418,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 250
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..ba86c8f
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# audioscribe1.scroll.pub
+Website generated by DeepSeek from prompt: I want to create a website for converting audio files to text and summarizing the content
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..93ad7bc
--- /dev/null
+++ b/script.js
@@ -0,0 +1,32 @@
+document.getElementById('convertBtn').addEventListener('click', function() {
+ const fileInput = document.getElementById('audioFile');
+ if (fileInput.files.length === 0) {
+ alert('Please select an audio file.');
+ return;
+ }
+
+ const file = fileInput.files[0];
+ const reader = new FileReader();
+
+ reader.onload = function(e) {
+ // Simulate conversion process
+ setTimeout(() => {
+ document.getElementById('textOutput').value = "This is a simulated transcription of the audio file. In a real application, this would be replaced with the actual transcribed text.";
+ }, 1000);
+ };
+
+ reader.readAsDataURL(file);
+});
+
+document.getElementById('summarizeBtn').addEventListener('click', function() {
+ const text = document.getElementById('textOutput').value;
+ if (text.trim() === '') {
+ alert('Please convert an audio file to text first.');
+ return;
+ }
+
+ // Simulate summarization process
+ setTimeout(() => {
+ document.getElementById('summaryOutput').innerHTML = "<p>This is a simulated summary of the transcribed text. In a real application, this would be replaced with the actual summarized content.</p>";
+ }, 1000);
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..aece3f4
--- /dev/null
+++ b/style.css
@@ -0,0 +1,120 @@
+:root {
+ --primary-color: #4a90e2;
+ --secondary-color: #50e3c2;
+ --background-color: #f5f7fa;
+ --text-color: #333;
+ --border-radius: 8px;
+}
+
+body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ margin: 0;
+ padding: 0;
+ line-height: 1.6;
+}
+
+header {
+ text-align: center;
+ padding: 2rem;
+ background-color: var(--primary-color);
+ color: white;
+}
+
+header h1 {
+ margin: 0;
+ font-size: 2.5rem;
+}
+
+header p {
+ margin: 0.5rem 0 0;
+ font-size: 1.2rem;
+}
+
+main {
+ padding: 2rem;
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+.upload-section, .results-section {
+ background: white;
+ padding: 1.5rem;
+ border-radius: var(--border-radius);
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ margin-bottom: 2rem;
+}
+
+h2 {
+ margin-top: 0;
+ color: var(--primary-color);
+}
+
+input[type="file"] {
+ display: block;
+ margin: 1rem 0;
+ padding: 0.5rem;
+ border: 2px solid var(--primary-color);
+ border-radius: var(--border-radius);
+ width: 100%;
+}
+
+button {
+ background-color: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: var(--border-radius);
+ cursor: pointer;
+ font-size: 1rem;
+ transition: background-color 0.3s ease;
+}
+
+button:hover {
+ background-color: var(--secondary-color);
+}
+
+textarea {
+ width: 100%;
+ height: 150px;
+ padding: 0.5rem;
+ border: 2px solid var(--primary-color);
+ border-radius: var(--border-radius);
+ margin: 1rem 0;
+ resize: vertical;
+}
+
+#summaryOutput {
+ margin-top: 1rem;
+ padding: 1rem;
+ background-color: var(--background-color);
+ border-radius: var(--border-radius);
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background-color: var(--primary-color);
+ color: white;
+ margin-top: 2rem;
+}
+
+@media (max-width: 600px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ main {
+ padding: 1rem;
+ }
+
+ button {
+ width: 100%;
+ padding: 1rem;
+ }
+}
\ No newline at end of file