vidmuse
Browse files
README.md
CHANGED
|
@@ -71,11 +71,11 @@ outputs = outputs.detach().cpu().float()
|
|
| 71 |
|
| 72 |
|
| 73 |
sampling_rate = 32000
|
| 74 |
-
output_wav_path = "
|
| 75 |
# Write the output audio data to a WAV file
|
| 76 |
scipy.io.wavfile.write(output_wav_path, rate=sampling_rate, data=outputs[0, 0].numpy())
|
| 77 |
|
| 78 |
-
output_video_path = "
|
| 79 |
# Merge the original video with the generated music
|
| 80 |
merge_video_audio(video_path, output_wav_path, output_video_path)
|
| 81 |
```
|
|
|
|
| 71 |
|
| 72 |
|
| 73 |
sampling_rate = 32000
|
| 74 |
+
output_wav_path = "vidmuse_sample.wav"
|
| 75 |
# Write the output audio data to a WAV file
|
| 76 |
scipy.io.wavfile.write(output_wav_path, rate=sampling_rate, data=outputs[0, 0].numpy())
|
| 77 |
|
| 78 |
+
output_video_path = "vidmuse_sample.mp4"
|
| 79 |
# Merge the original video with the generated music
|
| 80 |
merge_video_audio(video_path, output_wav_path, output_video_path)
|
| 81 |
```
|