fabulae

package module
v0.2.3-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

README

fabulae: cli for creating audio from text conversations

Fabulae creates an audio conversation from a given PDF URL or a text transcript.

Prerequisites

  • Google Cloud Project
  • Go
  • Services enabled
  • Environment variable for your Project ID
  • Fabulae CLI
# enable services
gcloud services enable texttospeech.googleapis.com aiplatform.googleapis.com

# set project
export PROJECT_ID=$(gcloud config get project)
# install the fabluae cli
go install github.com/ghchinoy/fabulae/fabulae-cli@latest

Try it

# try with the audiolm paper
fabulae-cli --pdf-url https://arxiv.org/pdf/2209.03143

Listen with your favorite audio player.

On OS X, you can use afplay, e.g. afplay 20240921.045413.24.wav

On Linux, you can use play if you have sox installed, play 20240921.045413.24.wav

Service

The service directory contains a HTTP service that will upload the generated file to a GCS bucket

The GCS bucket must be specified in an environment variable, without the gs:// prefix, or trailing /

export GCS_AUDIO_BUCKET=my-bucket/audio-folder

For the parent solution, see GenMedia Studio

Disclaimer

This is not an officially supported Google product.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fabulae

func Fabulae(voice1name, voice2name string, conversation string, outputfilename string, turnbyturn bool, tags string) ([]string, error)

func Speak

func Speak(voice1name string, text string, gcsbucket string) (string, error)

Types

This section is empty.

Directories

Path Synopsis
babel module
cli module
core module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL