From 9b48be0202fb23c9d9989007dbbbcc0176b22622 Mon Sep 17 00:00:00 2001 From: YasinOnm08 Date: Thu, 26 Sep 2024 16:01:40 +0200 Subject: [PATCH] downloaded ffmpeg.wasm --- package-lock.json | 43 +++++++++++++++++++++++++++++++++++++++++++ package.json | 4 ++++ py/voice.py | 2 ++ 3 files changed, 49 insertions(+) diff --git a/package-lock.json b/package-lock.json index 0fbf765..85782b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,10 @@ "name": "interstellar_ai", "version": "0.1.0", "dependencies": { + "@ffmpeg/core-mt": "^0.12.6", + "@ffmpeg/ffmpeg": "^0.12.10", + "@ffmpeg/types": "^0.12.2", + "@ffmpeg/util": "^0.12.1", "@mistralai/mistralai": "^1.0.4", "axios": "^1.7.7", "electron": "^32.1.2", @@ -132,6 +136,45 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@ffmpeg/core-mt": { + "version": "0.12.6", + "resolved": "https://registry.npmjs.org/@ffmpeg/core-mt/-/core-mt-0.12.6.tgz", + "integrity": "sha512-f7wrOeUk24VFRi2Gfsp/mwwkK1hbDV0ajgm2fOU/oRi+IDullyzAYdHOagAWfpSZXcTPAGZ1Ild7HmBwr3k2tg==", + "license": "MIT", + "engines": { + "node": ">=16.x" + } + }, + "node_modules/@ffmpeg/ffmpeg": { + "version": "0.12.10", + "resolved": "https://registry.npmjs.org/@ffmpeg/ffmpeg/-/ffmpeg-0.12.10.tgz", + "integrity": "sha512-lVtk8PW8e+NUzGZhPTWj2P1J4/NyuCrbDD3O9IGpSeLYtUZKBqZO8CNj1WYGghep/MXoM8e1qVY1GztTkf8YYQ==", + "license": "MIT", + "dependencies": { + "@ffmpeg/types": "^0.12.2" + }, + "engines": { + "node": ">=18.x" + } + }, + "node_modules/@ffmpeg/types": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@ffmpeg/types/-/types-0.12.2.tgz", + "integrity": "sha512-NJtxwPoLb60/z1Klv0ueshguWQ/7mNm106qdHkB4HL49LXszjhjCCiL+ldHJGQ9ai2Igx0s4F24ghigy//ERdA==", + "license": "MIT", + "engines": { + "node": ">=16.x" + } + }, + "node_modules/@ffmpeg/util": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@ffmpeg/util/-/util-0.12.1.tgz", + "integrity": "sha512-10jjfAKWaDyb8+nAkijcsi9wgz/y26LOc1NKJradNMyCIl6usQcBbhkjX5qhALrSBcOy6TOeksunTYa+a03qNQ==", + "license": "MIT", + "engines": { + "node": ">=18.x" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.13.0", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", diff --git a/package.json b/package.json index 9df3286..3e8e557 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,10 @@ "electron": "npx electron . & next dev" }, "dependencies": { + "@ffmpeg/core-mt": "^0.12.6", + "@ffmpeg/ffmpeg": "^0.12.10", + "@ffmpeg/types": "^0.12.2", + "@ffmpeg/util": "^0.12.1", "@mistralai/mistralai": "^1.0.4", "axios": "^1.7.7", "electron": "^32.1.2", diff --git a/py/voice.py b/py/voice.py index cd0d657..461da21 100644 --- a/py/voice.py +++ b/py/voice.py @@ -22,3 +22,5 @@ class VoiceRecognition: result = model.transcribe(audio_data) print(result["text"]) return result["text"] + +# npm install @ffmpeg/ffmpeg @ffmpeg/util @ffmpeg/types @ffmpeg/core-mt \ No newline at end of file