Sure, you can. You can use two snoop channels and put them into the bridge with externalMedia. Snoop channel receives only one client audio. See here for example
/**
* First class object Resources found in ARI. Properties are attached to these
* instances to provide instance specific callable operations.
*
* @module resources
*
* @copyright 2014, Digium, Inc.
* @license Apache License, Version 2.0
* @author Samuel Fortier-Galarneau <sgalarneau@digium.com>
*/
'use strict';
var util = require('util');
var _ = require('lodash');
var uuid = require('uuid');
var Promise = require('bluebird');
var _utils = require('./utils.js');
This file has been truncated. show original
or here
#!/usr/bin/python3
import anyio
import asyncari
import logging
import aioudp
import os
import vosk
import array
ast_host = os.getenv("AST_HOST", '127.0.0.1')
ast_port = int(os.getenv("AST_ARI_PORT", 8088))
ast_url = os.getenv("AST_URL", 'http://%s:%d/'%(ast_host,ast_port))
ast_username = os.getenv("AST_USER", 'asterisk')
ast_password = os.getenv("AST_PASS", 'asterisk')
ast_app = os.getenv("AST_APP", 'hello-world')
model = vosk.Model(lang='en-us')
channels = {}
This file has been truncated. show original
1 Like