Skip to content

Instantly share code, notes, and snippets.

@Lycolia
Created September 2, 2025 14:52
Show Gist options
  • Select an option

  • Save Lycolia/8ace22fcb035aa59d4b953db5f563560 to your computer and use it in GitHub Desktop.

Select an option

Save Lycolia/8ace22fcb035aa59d4b953db5f563560 to your computer and use it in GitHub Desktop.
Recording the speaker and own microphone
###########################################################
#
# 自分のマイク入力とスピーカー出力を合成して録音するスクリプト
# オンライン会議の録音などに
#
############################################################
Write-Host "録音処理を開始する場合、何かキーを押して下さい..." -NoNewLine
[Console]::ReadKey($true) > $null
$input="Microphone (Sound BlasterX G1)"
$filename=Get-Date -Format "yyyy-MM-dd_HH_mm_ss"
ffmpeg -f dshow -i audio=$input -f dshow -i audio=virtual-audio-capturer -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map "[a]" "$filename.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment