Skip to content

Commit

Permalink
fix(main): AI function
Browse files Browse the repository at this point in the history
  • Loading branch information
51L3N7-X committed Apr 9, 2024
1 parent 4e6f421 commit b42c707
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ package-lock.json
.env
data
preview.mp4
video.mp3
audio
16 changes: 9 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,15 @@ async function questions(type) {
},
},
...(type === "API"
? {
type: "input",
name: "reciter",
message: "What is the reciter id?",
default: settings.fetch.reciter,
}
: {}),
? [
{
type: "input",
name: "reciter",
message: "What is the reciter id?",
default: settings.fetch.reciter,
},
]
: []),
{
type: "input",
name: "translator",
Expand Down
Binary file removed vid.mp4
Binary file not shown.
2 changes: 1 addition & 1 deletion whisper/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json

# Load audio and model
audio = whisper.load_audio("../video.mp3")
audio = whisper.load_audio("../audio/audio.webm")
model = whisper.load_model("large", device="cuda")
result = whisper.transcribe(model, audio, language="ar")

Expand Down

0 comments on commit b42c707

Please sign in to comment.