% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transcribe.R
\name{sm_transcribe}
\alias{sm_transcribe}
\title{Transcribe an audio file}
\usage{
sm_transcribe(
  input,
  output = NULL,
  config = sm_transcription_config(),
  poll_interval = 5
)
}
\arguments{
\item{input}{Path to the input audio file.}

\item{output}{Path to the output transcript file. If \code{NULL} (the default),
the output is written to the working directory with the same name as the
input file but with a \code{.txt} extension.}

\item{config}{Config from \code{sm_transcription_config()}.}

\item{poll_interval}{Seconds between status checks.}
}
\value{
The output path, invisibly.
}
\description{
Submits an audio file to the Speechmatics API, polls until complete,
and writes the transcript to a file.
}
\examples{
\dontrun{
audio <- system.file("extdata", "testrecording.mp3", package = "speechmatics")
sm_transcribe(audio)
sm_transcribe(audio, "output.txt")
sm_transcribe(audio, config = sm_transcription_config(quality = "enhanced"))
}
}
