private function registerWidgetScripts()
    {
        $view = $this->getView();
        $asset = Yii::$container->get(Asset::className());
        $asset::register($view);
        $this->widgetSettings = Json::encode($this->widgetSettings);
        $view->registerJs("var audioWidget = new AudioWidget(" . $this->widgetSettings . "); audioWidget.init();", $view::POS_READY);
    }