brainiall-workflows
API keys are Dagger Secrets and are never accepted as plain strings. Eachrequest is explicit, bounded, and writes its result to a returned File.
Installation
dagger install github.com/fasuizu-br/brainiall-dagger-workflows@v1.0.0Entrypoint
Return Type
BrainiallWorkflows Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@8c86697570833b7d96411401500d39cc582227ef call \
func (m *MyModule) Example() *dagger.BrainiallWorkflows {
return dag.
Brainiallworkflows()
}@function
def example() -> dagger.BrainiallWorkflows:
return (
dag.brainiall_workflows()
)@func()
example(): BrainiallWorkflows {
return dag
.brainiallWorkflows()
}Types
BrainiallWorkflows 🔗
health() 🔗
Check the public Brainiall TTS service without an API key.
Return Type
String ! Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@8c86697570833b7d96411401500d39cc582227ef call \
healthfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Brainiallworkflows().
Health(ctx)
}@function
async def example() -> str:
return await (
dag.brainiall_workflows()
.health()
)@func()
async example(): Promise<string> {
return dag
.brainiallWorkflows()
.health()
}synthesize() 🔗
Convert 1-5,000 characters to a 24 kHz mono WAV file.
Create a key at https://app.brainiall.com and pass it with
dagger call synthesize --api-key=env:BRAINIALL_API_KEY ....
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| apiKey | Secret ! | - | No description provided |
| text | String ! | - | No description provided |
| voice | String ! | "pf_dora" | No description provided |
| speed | Integer ! | 1 | No description provided |
Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@8c86697570833b7d96411401500d39cc582227ef call \
synthesize --api-key env:MYSECRET --text string --voice string --speed integerfunc (m *MyModule) Example(apiKey *dagger.Secret, text string, voice string, speed int) *dagger.File {
return dag.
Brainiallworkflows().
Synthesize(apiKey, text, voice, speed)
}@function
def example(apikey: dagger.Secret, text: str, voice: str, speed: int) -> dagger.File:
return (
dag.brainiall_workflows()
.synthesize(apikey, text, voice, speed)
)@func()
example(apiKey: Secret, text: string, voice: string, speed: number): File {
return dag
.brainiallWorkflows()
.synthesize(apiKey, text, voice, speed)
}pdfToMarkdown() 🔗
Convert an explicitly supplied PDF to Markdown or structured JSON.
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| apiKey | Secret ! | - | No description provided |
| File ! | - | No description provided | |
| pageRange | String ! | "" | No description provided |
| outputFormat | String ! | "markdown" | No description provided |
Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@8c86697570833b7d96411401500d39cc582227ef call \
pdf-to-markdown --api-key env:MYSECRET --pdf file:path --page-range string --output-format stringfunc (m *MyModule) Example(apiKey *dagger.Secret, pdf *dagger.File, pageRange string, outputFormat string) *dagger.File {
return dag.
Brainiallworkflows().
Pdftomarkdown(apiKey, pdf, pageRange, outputFormat)
}@function
def example(apikey: dagger.Secret, pdf: dagger.File, pagerange: str, outputformat: str) -> dagger.File:
return (
dag.brainiall_workflows()
.pdftomarkdown(apikey, pdf, pagerange, outputformat)
)@func()
example(apiKey: Secret, pdf: File, pageRange: string, outputFormat: string): File {
return dag
.brainiallWorkflows()
.pdfToMarkdown(apiKey, pdf, pageRange, outputFormat)
}