s2t-blockifier-default

Transcribe and tag audio via AssemblyAI. Just load your raw audio file into Steamship and apply AssemblyAI to transcribe and tag it..

Using

Tagger Plugins add annotations to text that can be queried and composed later.

Blockifiers convert data into Steamship’s native Block format.

Importer Plugins add annotations to text that can be queried and composed later.

Use them when writing Packages to help you work with data of different types.

Links

from steamship import Steamship, File

client = Steamship(workspace="my-workspace-handle")

# Import a file to Steamship
with open("file.ext") as f:
  file = File.create(content=file.read())

# Create an instance of this blockifier
blockifier = client.use_plugin(
  's2t-blockifier-default'
)

# Blockify the file
task = file.blockify()
task.wait()
from steamship import Steamship, File

client = Steamship(workspace="my-workspace-handle")

# Import a file to Steamship
with open("file.ext") as f:
  file = File.create(content=file.read())

# Create a blockifier. We'll assume Markdown here.
blockifier = client.use_plugin(
  'markdown-blockifier-default'
)

# Blockify the file
task = file.blockify()

# Create an instance of this tagger.
tagger = client.use_plugin(
  's2t-blockifier-default'
)

# Tag the file
task = file.tag()

task.wait()
Pulled from the GitHub repository.
# AssemblyAI Transcribe blockifier

This project contains a Steamship Blockifier that transcribes and analyzes audio files via AssemblyAI.

## Configuration

This plugin must be configured with the following fields:

| Parameter | Description | DType | Required |
|-------------------|----------------------------------------------------|--------|--|
| speaker_detection | Enable speaker detection | bool | False |
| enable_audio_intelligence | Enable Audio Intelligence (note that this incurs a higher cost) | False |

## Getting Started

### Usage

To authenticate with Steamship, install the Steamship CLI with:

```bash
> npm install -g @steamship/cli
```

And then login with:

```bash
> ship login
```

```python
from steamship import Steamship, File, MimeTypes
from pathlib import Path

PLUGIN_HANDLE = "assemblyai-s2t-blockifier"
PLUGIN_CONFIG = {
    "speaker_detection": True,
    "enable_audio_intelligence": True
}

ship = Steamship()  # Without arguments, credentials in ~/.steamship.json will be used.
audio_path = Path("FILL_IN")
s2t_plugin_instance = ship.use_plugin(plugin_handle=PLUGIN_HANDLE)
file = File.create(ship, content=audio_path.open("b").read(), mime_type=MimeTypes.MP3)
tag_results = file.tag(plugin_instance=s2t_plugin_instance.handle)
tag_results.wait()

file = tag_results.output.file
for block in file.blocks:
    print(block.text)
```

## Developing

Development instructions are located in [DEVELOPING.md](https://github.com/steamship-plugins/assemblyai-s2t-blockifier/blob/main/DEVELOPING.md)

## Testing

Testing instructions are located in [TESTING.md](https://github.com/steamship-plugins/assemblyai-s2t-blockifier/blob/main/TESTING.md)

## Deploying

Deployment instructions are located in [DEPLOYING.md](https://github.com/steamship-plugins/assemblyai-s2t-blockifier/blob/main/DEPLOYING.md)

Steamship is building the fastest way to ship language AI.

Stop building and start shipping. Reach out to get onboarded.
Read More