User:Commander Keane/RecProject
Appearance
python pwb.py listpages.py -cat put:Commander_Keane/testCatListing
C:\Users\jim\pywikibot C:\Users\jim\pywikibot\scripts (location of xRecBot10.py)
python pwb.py listpages.py -links
- python pwb.py listpages.py -links -save:C:\Users\jim\Desktop\PyTests Writes each link as a new file which contains the article text
- Run a Cat=>File script: c:\users\jim\pywikibot>python pwb.py xFileGenBot5
- Trim silence at beginning of wav file: ffmpeg -i Banyo.wav -af "silenceremove=1:0:-50dB,adelay=500|500" Banyo5.ogg
- sox reverse technique
- sox in.wav out.wav silence 1 0.1 1% reverse silence 1 0.1 1% reverse
- sox Auchenflower.wav out1.wav silence -l 1 0.1 1% -1 0.5 1% (or: sox Auchenflower.wav out1.wav silence 1 0.1 1% -1 0.5 1%)
- sox out1.wav pad1.ogg pad 0.5 0.25
- c:\Users\jim\pywikibot>ffmpeg -i Banyo.wav -filter_complex "[0:a]silencedetect=n=-50dB:d=1[outa]" -map [outa] test3.ogg 2> silenceLog.txt
- Call upload from command prompt: python pwb.py upload.py "Banyo.ogg" 'Test file description text' -ignorewarn -always
- Call file gen from command prompt: python pwb.py xFileGenBot7 "Railway tunnels in Japan"
- Call the record from command prompt: python pwb.py xRecBot12 "Bosphorus crossings2_sf_50"
- Call powershell - create wavs (dodgey???) and txt files with silencedetect data: C:\users\jim\pywikitest> .\xPS1.ps1 "Railway tunnels in Japan6_sf_50"
- Good examples to work from : Recurring_events_established_in_1570, Spacecraft escaping the Solar System
- Generate tone in sox:
C:\Users\jim\pywikitest\Sandbox1\Sandbox1_sf_99>sox -n test.wav channels 2 rate 44100 synth 0.2 sin 347 gain -20
- Join files in sox, cmd.exe: C:\Users\jim\pywikitest\Sandbox1\Sandbox1_sf_99>sox "Bald Hills.wav" "test.wav" "Balmoral.wav" "test.wav" "output67.wav"
State of Play: 15 December 2018
[edit]- Generate files from Wikipedia category: cmd.exe: c:\users\jim\pywikibot>python3 pwb.py xFileGenBot7 "Recurring events established in 1570"
- Do the actual recordings: cmd.exe Generate files from Wikipedia category: cmd.exe: c:\users\jim\pywikibot>python3 pwb.py xRecBot14 "Recurring events established in 1570_sf_50" (this argument comes from the newly generated "C:\Users\jim\pywikitest\Recurring events established in 1570")
- Generate files from Wikipedia category: cmd.exe: c:\users\jim\pywikibot>python3 pwb.py xFileGenBot7 "Spacecraft escaping the Solar System"
- Do the actual recordings: cmd.exe Generate files from Wikipedia category: cmd.exe: c:\users\jim\pywikibot>python3 pwb.py xRecBot14 "Spacecraft escaping the Solar System_sf_50" (this argument comes from the newly generated "C:\Users\jim\pywikitest\Spacecraft escaping the Solar System", and the RecBot dumps recordings into "C:\Users\jim\pywikitest\Spacecraft escaping the Solar System\Spacecraft escaping the Solar System_sf_50"). Be sure to select global_input_device_index to respect your devices, near the top of xRecBot14.py.
- Do some converting: PS (Powershell Command Prompt): c:\users\jim\pywikibot\scripts> .\xShell2.ps1 "Spacecraft escaping the Solar System_sf_50" (Dumps ogg files into "C:\Users\jim\pywikitest\Spacecraft escaping the Solar System\Spacecraft escaping the Solar System_sf_50\oggs")
- Optional (very slow): c:\users\jim\pywikibot>python3 pwb.py xCombRecs1 "Spacecraft escaping the Solar System_sf_50"
- Upload time!: PS C:\users\jim\pywikibot\scripts>.\xShellUpload6.ps1 "Spacecraft escaping the Solar System_sf_50" (Currently using EN.WP, Commons soon)
- Work in Progress: add oggs to articles: cmd.exe: c:\users\jim\pywikibot>python3 pwb.py xPutInWiki1 "Spacecraft escaping the Solar System_sf_50"
- Test if mic is working: cmd.exe: c:\users\jim\pywikibot>python3 pwb.py xTestMic1 (dumpa file in C:\Users\jim\pywikitest\TESTING456\TEST456)
- Place files in Wiktionary: change date/time in xPutInWiki5, then cmd c:\users\jim\pywikibot>python3 pwb.py xPutInWIki5