Commit b60c735e authored by NaweenTharuka's avatar NaweenTharuka

Updated paths

parent 0355765a
......@@ -5,9 +5,9 @@ import moviepy.editor as mp
def convertText():
clip = mp.VideoFileClip(r"F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\media\\video\\22\\publicspeech.mp4")
clip.audio.write_audiofile(r"converted_mp3.wav")
clip.audio.write_audiofile(r"F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\users\\myprosody\\dataset\\audioFiles\\publicspeech.wav")
r = sr.Recognizer()
audio =sr.AudioFile(r"converted_mp3.wav")
audio =sr.AudioFile(r"F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\users\\myprosody\\dataset\\audioFiles\\publicspeech.wav")
with audio as source:
r.pause_threshold = 1
r.adjust_for_ambient_noise(source, duration=1)
......
......@@ -9,12 +9,12 @@ from .forms import Video_form
from .models import Video
from django.template import Template, Context
import datetime
from . import grammerchecker
from . import emotiondetectionvideo
# from . import emotiondetectionaudio
import myprosody as mysp
import pickle
from . import myprosody
from . import grammerchecker
def test(request):
p="publicspeech"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment