This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- created with www.mysitemapgenerator.com --> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<url> | |
<loc>https://audiostack.ai/</loc> | |
<lastmod>2024-05-09T15:40:19+01:00</lastmod> | |
<priority>0.4</priority> | |
</url> | |
<url> | |
<loc>https://audiostack.ai/developers</loc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import audiostack | |
FILE_TO_DENOISE = "samples/noisy_sample.mp3" # Try replacing with your own noisy audio file | |
audiostack.api_key = os.environ["AUDIOSTACK_API_KEY"] | |
def main() -> None: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import audiostack | |
import csv | |
import os | |
audiostack.api_key = os.environ["AUDIOSTACK_API_KEY"] | |
VOICE = "narration_wade" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"disclosures": [], | |
"domains": ["v2.api.audio"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def download_create(): | |
text = "<break time='5s'/>This could be your video voice over <break time='1s'/> Write your text here! Add breaks and personalisation parameters. Choose from our list of 180+ speakers. There are voices in Spanish, Enlgish, German and more! Create beautiful video voice overs." | |
downloadYouTube("https://www.youtube.com/watch?v=exXgMvbiCcU", "downloadedVideo") | |
tracks = ["speech", "audio"] | |
for track in tracks: | |
aflr_create(track, text) | |
combine_audio("downloadedVideo.mp4", "speech.mp3", "audio.mp3") | |
download_create() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def combine_audio(video, speech, audio): | |
os.system(f'ffmpeg -i {video} -i {speech} -filter_complex "[0:a]volume=0.4[a0]; [1:a]volume=0.9[a1]; [a0][a1]amix=duration=longest[a]" -map 0:v -map "[a]" -c:v copy overlayAudio.mp4') | |
os.system(f'ffmpeg -i {video} -i {audio} -filter_complex "[0:a]volume=0.0[a0]; [1:a]volume=1.0[a1]; [a0][a1]amix=duration=longest[a]" -map 0:v -map "[a]" -c:v copy substituteAudio.mp4') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def downloadYouTube(videourl, filename): | |
yt = YouTube(videourl) | |
yt.streams.get_highest_resolution().download(filename = "./" + filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install -U pytube aflr | |
from pytube import YouTube | |
import aflr | |
import os | |
def aflr_create(scriptName, message): | |
aflr.api_key = "APIKEY" | |
script = aflr.Script().create(scriptText= message, scriptName=scriptName, moduleName="video", projectName="new_video") | |
print(script) | |
response = aflr.Speech().create(scriptId=script.get("scriptId"), voice="Joanna", speed = "100", silence_padding = str(1000 * 2)) | |
print(response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install -U pytube aflr | |
from pytube import YouTube | |
import aflr | |
import os | |
def aflr_create(scriptName, message): | |
aflr.api_key = "APIKEY" | |
script = aflr.Script().create(scriptText= message, scriptName=scriptName, moduleName="video", projectName="new_video") | |
print(script) | |
response = aflr.Speech().create(scriptId=script.get("scriptId"), voice="Joanna", speed = "100", silence_padding = str(1000 * 2)) | |
print(response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
sudo apt update | |
sudo apt install -y default-jdk | |
sudo apt-get install -y xdg-utils #needed for serverless login | |
npm install | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
sudo apt install -y docker-ce | |
sudo groupadd docker |
NewerOlder