> ## Documentation Index
> Fetch the complete documentation index at: https://aspect.build/llms.txt
> Use this file to discover all available pages before exploring further.

# AssemblyAI's Success with Aspect Workflows

> AssemblyAI, a leader in AI-driven speech-to-text, cut CI compute costs an estimated 10x and decreased developer CI wait time by 60% with a Bazel-based Python monorepo and self-hosted Aspect Workflows.

![AssemblyAI](https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/marketing/customers/assemblyai-logo.svg?fit=max\&auto=format\&n=x1L7Iep716jCyJVo\&q=85\&s=6f39ce59630e95c3295965094eba5632)

# AssemblyAI's Success with Aspect Workflows

![](https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/marketing/case-studies/assemblyai.png?fit=max\&auto=format\&n=x1L7Iep716jCyJVo\&q=85\&s=6d03057ca2ad63bb6dc5cfe21d9e8b71)

10xReduced CI compute costs

60%Decreased developer CI wait time

AssemblyAI provides advanced AI-driven speech-to-text services. They offer tools for audio
transcription, sentiment analysis, topic detection, and other leading capabilities. They are known for
high accuracy, scalability, and easy API integrations.

AssemblyAI enables businesses to rapidly build voice-based applications. Needless to say, keeping their
builds fast and their engineers moving is critical for providing world-class products to their
customers.

## Challenges:

AssemblyAI's Bazel story began in early 2022, when they were using over 250 source repositories, many
of which were branched from the history of others. The resulting forks diverged, preventing
improvements or bugfixes from being applied consistently. New and old engineers alike struggled to find
the correct source code. Releases often took over a week and rollbacks were commonplace. Even versions
of libraries such as ffmpeg would vary between a researcher's machine where model training occurred and
the production deployment, resulting in subtle transcoding bugs.

A monorepo existed at this time, but it was not consistent. Top-level folders had their own tooling
choices. Dependencies and common approaches were not shared between them. AssemblyAI's team evaluated
Bazel, Pants, and Buck2. The Head of Technology chose to start a revived monorepo effort with Bazel
because of its high level of community support and his familiarity with the core team.

## Solutions:

AssemblyAI contacted Aspect in December 2022. They were seeking help with executing py\_binary via
gunicorn in a Python docker image. During a brief consulting engagement, Aspect quickly resolved
AssemblyAI's issue and then migrated the company to a new monorepo. Backed by industry-standard SLAs,
we supported AssemblyAI engineers in a shared Slack channel.

AssemblyAI became interested in our self-hosted Workflows product to speed up their Continuous
Integration. They were focused on support for Github Actions and custom security groups along with
optimizing AI model packaging, training, and inference workflows. AssemblyAI's trial began in April
2023\.

The trial was evaluated on the following criteria:

<ul>
  <li>Availability and scalability of Aspect's CI runners</li>
  <li>High action cache hit rate and low analysis cache discard rate (based on provided Grafana dashboards)</li>
  <li>Cost effectiveness</li>
  <li>Selectively stamping and delivering only changed artifacts</li>
  <li>Auditable back-references from artifact to the monorepo state where it was produced</li>
  <li>Alerting on-call engineers to CI breakage via our "buildcop" service</li>
  <li>Providing enough information to enable Continuous Deployment</li>
</ul>

## Results:

Deployments sped up with fewer rollbacks, new engineers onboarded faster, and AI researchers and
engineers improved collaboration by working together in a shared repository.

AssemblyAI saw significant improvements in build consistency. Optimized dependencies led to fast and
cost-effective AI training and inference cycles. Developer CI wait time decreased by 60%. The cost to
operate CI plummeted; the team estimates a 10x reduction. During one week in particular, AssemblyAI's
legacy runners cost \$600 while the self-hosted Aspect Workflows runners cost \$5.

## Why It Worked:

In a machine learning environment, it is critical for dependencies to be consistent between researchers
conducting training and production systems performing inference. A Bazel-based Python monorepo with
self-hosted Aspect Workflows ensures that AssemblyAI reliably manages dependency versions, leading to
better performance and reduced overhead.

However, our proudest achievement was receiving an email from a former AssemblyAI engineer asking us to
set up Workflows at his new startup!

[Download PDF →](https://cdn.aspect.build/case-studies/AssemblyAI.pdf)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.