starry / backend /libs /three /audio /AudioContext.js
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
let _context;
const AudioContext = {
getContext: function () {
if (_context === undefined) {
_context = new (window.AudioContext || window.webkitAudioContext)();
}
return _context;
},
setContext: function (value) {
_context = value;
},
};
export { AudioContext };