承接 michaeld555/filament-audio-generator-field 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

michaeld555/filament-audio-generator-field

最新稳定版本:v1.0.0

Composer 安装命令:

composer require michaeld555/filament-audio-generator-field

包简介

A Filament field plugin that generates audio using AI

README 文档

README

Latest Version on Packagist Total Downloads

This custom field allows you to generate audios with different languages and voices using free AI voice generator. It extends the FileUpload field and adds a button to open the audio generator modal where you can generate the audio file.

filament audio generator ai

Installation

Before you begin, you must have the Laravel Filament package installed and configured. If you haven't done this yet, you can find the installation instructions here.

Install the package via composer

Run the following command in your terminal to install the package:

composer require michaeld555/filament-audio-generator-field

You can publish the config file with:

php artisan vendor:publish --tag="filament-audio-generator-field-config"

Optionally, you can publish the translations files:

php artisan vendor:publish --tag="filament-audio-generator-field-translations"

Usage

tutorial

Just add new Field or replace your FileUpload field with AudioGenerator field in your form schema definition:

use \Michaeld555\AudioGeneratorField\Forms\Components\AudioGenerator;

[...]
public static function form(Form $form): Form
{
    return $form
        ->schema([
            AudioGenerator::make('audio'),
        ]);
}

You could use all the same options as FileUpload field, for example:

use \Michaeld555\AudioGeneratorField\Forms\Components\AudioGenerator;

AudioGenerator::make('audio')
    ->disk('private')
    ->audioGenerator(false) // hide the 'Generate with AI' button,

After you add the field to your form, you should see a button next to the file input. When you click the button, the audio generator modal will open.

modal image

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 97
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-20