open-audiovisual
搜尋 GitHub

音訊介面

Yamaha AG06

Yamaha AG06 是一台音訊介面,用 USB、XLR 音訊、音訊插孔 連接。這裡是 OAV 對它的了解:每筆事實都附讀到它的那一頁,加上怎麼設定、會遇到什麼問題,以及接到它的程式碼。

也叫: AG06 · AG-06 · AG06 mixer · AG06 mixing console

  • 手寫紀錄
  • 還沒有在實機上確認
種類
音訊介面
廠牌
Yamaha
連接方式
USB、XLR 音訊、音訊插孔
協定
USB Audio Class 2.0
授權
MIT
驗證
還沒有在實機上確認

試試看

你的 Yamaha AG06 在嗎?

按下按鈕之前什麼都不會發生。「找找看」向瀏覽器要音訊輸入清單,依名稱找到這一台。「打開」只問一次權限,用上面的設定打開它,跟下面的程式碼是同一組呼叫。

事實

Yamaha AG06 是什麼

每個值都讀自同一列的那一頁。讀不到的寫在「待確認」,不用猜的。

項目值出處
USB 音訊2 in / 2 outYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
USB 音訊類別USB Audio Class 2.0 compliantYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
USB 格式USB Audio Class 2.0 / Yamaha Steinberg USB DriverYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
驅動程式The Yamaha Steinberg USB Driver might be required for computer input/output.Yamaha AG06 Owner's Manual (ag06_en_om_a0)
位元深度24 bitYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
取樣率44100, 48000, 88200, 96000, 176400, 192000 HzYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
USB 接頭USB Standard-B (the [USB 2.0] terminal)Yamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
輸入聲道Mono (MIC/LINE): 2 including HEADSET MIC; Stereo (LINE): 2; USB IN: 1; AUX IN: 1Yamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
麥克風/線路輸入combo jacks (XLR balanced, phone)Yamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
輸出聲道STEREO OUT: 1; MONITOR OUT: 1; PHONES: 2 including HEADSET PHONESYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
幻象電源48 VYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
電源DC 5 V, 500 mAYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
耗電max. 2.5 WYamaha AG06 Technical Specifications (ag06_en_ts_b0, published 01/2022)
TO PC 開關DRY CH 1-2, INPUT MIX, LOOPBACKWhat the mixer sends to the computer: channels 1 and 2 dry, the stereo mix without the computer's own sound, or the mix with the computer's sound.Yamaha AG06 Owner's Manual (ag06_en_om_a0)

連接

怎麼接、說什麼協定

連接方式

USB · XLR 音訊 · 音訊插孔

協定

USB Audio Class 2.0

瀏覽器給的設定

{"echoCancellation":false,"noiseSuppression":false,"autoGainControl":false,"channelCount":{"ideal":2}}

設定

設定步驟

  1. 接上 [USB 2.0] 和 [5V DC] 端子的線之前,先把混音器切到待機,電腦也先從睡眠醒來。 Yamaha AG06 Owner's Manual (ag06_en_om_a0)
  2. 平板供不了混音器的電時,要在 [5V DC] 端子(micro B)接 USB 電源供應器或行動電源。 Yamaha AG06 Owner's Manual (ag06_en_om_a0)
  3. 要讓網頁聽麥克風時,把 [TO PC] 切到 INPUT MIX 或 DRY CH 1-2。 Yamaha AG06 Owner's Manual (ag06_en_om_a0)
  4. 網頁要在 https 或 localhost 上,並且由一次點擊啟動麥克風。在 macOS 上,瀏覽器要在「系統設定 → 隱私權與安全性」裡有麥克風權限。 open-audiovisual handbook: Troubleshooting, the camera or microphone does not start

已知問題

用在程式裡

把 Yamaha AG06 寫進你的程式

貼進任何網頁的 <script type="module">:它從這個網站載入需要的套件。按下它加上的按鈕之前,什麼權限都不會要。

javascript
import { device } from 'https://openaudiovisual.com/packages/devices/index.js';
import { Signals } from 'https://openaudiovisual.com/packages/core/index.js';
import { AudioAnalyzer } from 'https://openaudiovisual.com/packages/audio/index.js';

const input = await device('yamaha-ag06');   // Yamaha AG06
console.log(JSON.stringify(input.constraints()));
// → {"audio":{"echoCancellation":false,"noiseSuppression":false,"autoGainControl":false,"channelCount":{"ideal":2}},"video":false}
const signals = new Signals();
const button = document.body.appendChild(Object.assign(document.createElement('button'), { textContent: "Yamaha AG06" }));
button.onclick = async () => {
  const stream = await input.open();   // asks once, finds it by its name, voice processing off
  const a = new AudioAnalyzer({ signals });
  a.input().context.createMediaStreamSource(stream).connect(a.input());
  setInterval(() => { a.update(); console.log('audio/rms', signals.get('audio/rms')); }, 500);
};

接到它的程式

檔案

把它帶走

紀錄(JSON,open-audiovisual/device@1):附出處的事實、設定步驟、問題,以及接到它的程式碼。其他工具可以照 JSON Schema 讀它。

狀態

這一頁有多確定

還沒有在實機上確認:每個值都照出處寫。只有手上有這台的人能改變這一點。

待確認

出處

GitHub

資料有錯?

這一頁的每個值都來自 repository 裡的一個檔案。開一張 issue,寫哪一個值、你在哪裡讀到正確的值,或直接用 pull request 改那個檔案。

下一步

接下來

手冊裡講這個集合的一章,以及驅動 Yamaha AG06 的套件。