<!-- Standard library · Tin · https://tin.ad/docs/ref/stdlib/ · generated from the built page -->

[Reference](https://tin.ad/docs/ref/)

-  [The language](https://tin.ad/docs/ref/language/)
-  [Agents and tools](https://tin.ad/docs/ref/agents/)
-  [Model providers](https://tin.ad/docs/ref/providers/)
-  [The Anthropic API](https://tin.ad/docs/ref/anthropic/)
-  [Talking agents](https://tin.ad/docs/ref/bidi/)
-  [Standard library](https://tin.ad/docs/ref/stdlib/)
- [Built in](#built-in)
- [Option and Result types](#core-types)
- [Modules](#modules)
- [Strings and characters](#strings)
- [Arrays](#arrays)
- [Map and Set](#map)
- [Option and Result](#option-and-result)
- [Numbers and math](#numbers)
- [Bits](#bits)
- [Bytes](#bytes)
- [Json](#json)
- [Hashing](#hashing)
- [Time and I/O](#time-io)
- [Traits](#traits)
- [Voice](#voice)
-  [Glossary](https://tin.ad/docs/ref/glossary/)
-  [Package docs](https://tin.ad/docs/ref/api/)
-  [Telemetry](https://tin.ad/docs/ref/telemetry/)
-  [Robots](https://tin.ad/docs/ref/robot/)
-  [Servers](https://tin.ad/docs/ref/server/)
-  [Deploying](https://tin.ad/docs/ref/deploy/)
-  [tin.ad](https://tin.ad/docs/ref/cloud/)
-  [The tin command](https://tin.ad/docs/ref/cli/)
-  [How it works](https://tin.ad/docs/ref/internals/)

**Reference · Standard library

- [The language](https://tin.ad/docs/ref/language/)
- [Agents and tools](https://tin.ad/docs/ref/agents/)
- [Model providers](https://tin.ad/docs/ref/providers/)
- [The Anthropic API](https://tin.ad/docs/ref/anthropic/)
- [Talking agents](https://tin.ad/docs/ref/bidi/)
- [Standard library](https://tin.ad/docs/ref/stdlib/)
- [Glossary](https://tin.ad/docs/ref/glossary/)
- [Package docs](https://tin.ad/docs/ref/api/)
- [Telemetry](https://tin.ad/docs/ref/telemetry/)
- [Robots](https://tin.ad/docs/ref/robot/)
- [Servers](https://tin.ad/docs/ref/server/)
- [Deploying](https://tin.ad/docs/ref/deploy/)
- [tin.ad](https://tin.ad/docs/ref/cloud/)
- [The tin command](https://tin.ad/docs/ref/cli/)
- [How it works](https://tin.ad/docs/ref/internals/)

On this page

- [Built in](#built-in)
- [Option and Result types](#core-types)
- [Modules](#modules)
- [Strings and characters](#strings)
- [Arrays](#arrays)
- [Map and Set](#map)
- [Option and Result](#option-and-result)
- [Numbers and math](#numbers)
- [Bits](#bits)
- [Bytes](#bytes)
- [Json](#json)
- [Hashing](#hashing)
- [Time and I/O](#time-io)
- [Traits](#traits)
- [Voice](#voice)

# Standard library

Every function and type available without an import, generated from the library source.

Nothing here needs an import. The library is written in Tin and compiled together with your
program; only the functions you use end up in the `.wasm` file. The 213 signatures
below are read from the library source when this page is built.

Any function can be called as a method on its first argument: `xs.map(f)` is
`map(xs, f)`, and `text.trim()` is `string.trim(text)`. A name like
`string.slice` or `Array.slice` says which type the method belongs to, which is
how two types can share a method name.

## Built in

These are part of the compiler, because they work on every type or have no ordinary signature.

`print(value)`Writes any value, then a line break. `print()` writes an empty line.

`write(value)`Writes any value without a line break.

`str(value): string`Any value as text, the same text `print` and `"{value}"` produce.

`int(x): int`A float truncated toward zero (a panic if it is NaN or does not fit), an i64 that fits, a char's code point, or a bool as 0 or 1.

`float(x): float`An int as a float.

`exit(code: int)`Stops the program with this exit status. Like `panic` it never returns, and a tool or task cannot catch it. Code an agent writes cannot call it.

`panic(message: string)`Stops the program with a message. Inside a tool, the message goes back to the model as a failed call.

`xs.len, text.len`The number of items in an array, or bytes in a string. A field, not a call.

`xs.push(item)`Adds an item to the end of an array. Needs a `var`.

`xs.pop()`Removes and returns the last item. Panics on an empty array. Needs a `var`.

`task.stop()`Stops a task and every task it started. They end at their next pause.

`task.done(), task.stopped()`Whether a task has finished or been stopped, and whether it was stopped.

`PI`3.141592653589793

```tin
var xs = [3, 1, 2]
xs.push(9)
print("{xs.len} items, last was {xs.pop()}")
print(str(1.5) + " " + str(true) + " " + str([Some(1), None]))
print(int(2.9) + int(true))
```

<!-- output -->
```text
4 items, last was 9
1.5 true [Some(1), None]
3
```

## Option and Result types

`type Option<T> = Some(T) | None`A value that may be missing. Tin has no null.

`type Result<T, E> = Ok(T) | Err(E)`The outcome of something that can fail. Tin has no exceptions.

`type AgentError = TurnLimit(int) | OverBudget(int) | Refused(string) | Cut | NoAnswer | Failed(string)`Why an agent call gave no answer, from A.try(prompt).

## Modules

Each module has its own page: every symbol with its signature, a summary, a link of its own, an example that runs when the page is built, and where to read more.

## [Strings and characters](https://tin.ad/docs/ref/std/strings/)

Strings are immutable UTF-8. Positions and `len` count bytes, so a character outside ASCII takes more than one. A `char` is one Unicode code point.

- [`string.byteAt`](https://tin.ad/docs/ref/std/strings/#string-byteAt)
- [`string.slice`](https://tin.ad/docs/ref/std/strings/#string-slice)
- [`string.charAt`](https://tin.ad/docs/ref/std/strings/#string-charAt)
- [`string.chars`](https://tin.ad/docs/ref/std/strings/#string-chars)
- [`fromChars`](https://tin.ad/docs/ref/std/strings/#fromChars)
- [`char.isDigit`](https://tin.ad/docs/ref/std/strings/#char-isDigit)
- [`char.isLetter`](https://tin.ad/docs/ref/std/strings/#char-isLetter)
- [`char.isSpace`](https://tin.ad/docs/ref/std/strings/#char-isSpace)
- [`char.isUpper`](https://tin.ad/docs/ref/std/strings/#char-isUpper)
- [`char.isLower`](https://tin.ad/docs/ref/std/strings/#char-isLower)
- [`char.upper`](https://tin.ad/docs/ref/std/strings/#char-upper)
- [`char.lower`](https://tin.ad/docs/ref/std/strings/#char-lower)
- [`char.compare`](https://tin.ad/docs/ref/std/strings/#char-compare)
- [`string.indexOf`](https://tin.ad/docs/ref/std/strings/#string-indexOf)
- [`string.contains`](https://tin.ad/docs/ref/std/strings/#string-contains)
- [`string.startsWith`](https://tin.ad/docs/ref/std/strings/#string-startsWith)
- [`string.endsWith`](https://tin.ad/docs/ref/std/strings/#string-endsWith)
- [`string.isEmpty`](https://tin.ad/docs/ref/std/strings/#string-isEmpty)
- [`string.split`](https://tin.ad/docs/ref/std/strings/#string-split)
- [`string.trim`](https://tin.ad/docs/ref/std/strings/#string-trim)
- [`string.upper`](https://tin.ad/docs/ref/std/strings/#string-upper)
- [`string.lower`](https://tin.ad/docs/ref/std/strings/#string-lower)
- [`string.repeat`](https://tin.ad/docs/ref/std/strings/#string-repeat)
- [`string.replace`](https://tin.ad/docs/ref/std/strings/#string-replace)
- [`string.padLeft`](https://tin.ad/docs/ref/std/strings/#string-padLeft)
- [`string.padRight`](https://tin.ad/docs/ref/std/strings/#string-padRight)
- [`join`](https://tin.ad/docs/ref/std/strings/#join)
- [`parseInt`](https://tin.ad/docs/ref/std/strings/#parseInt)
- [`parseFloat`](https://tin.ad/docs/ref/std/strings/#parseFloat)

## [Arrays](https://tin.ad/docs/ref/std/arrays/)

These return new arrays and leave the original as it was, so `xs.sort()` on a line of its own is a compile error (it would do nothing): keep the result, `xs = xs.sort()`. The same holds for `trim`, `upper`, `replace` and the other string methods. `push` and `pop` (built in) change a `var` in place.

- [`map`](https://tin.ad/docs/ref/std/arrays/#map)
- [`filter`](https://tin.ad/docs/ref/std/arrays/#filter)
- [`reduce`](https://tin.ad/docs/ref/std/arrays/#reduce)
- [`each`](https://tin.ad/docs/ref/std/arrays/#each)
- [`sum`](https://tin.ad/docs/ref/std/arrays/#sum)
- [`count`](https://tin.ad/docs/ref/std/arrays/#count)
- [`any`](https://tin.ad/docs/ref/std/arrays/#any)
- [`all`](https://tin.ad/docs/ref/std/arrays/#all)
- [`find`](https://tin.ad/docs/ref/std/arrays/#find)
- [`range`](https://tin.ad/docs/ref/std/arrays/#range)
- [`first`](https://tin.ad/docs/ref/std/arrays/#first)
- [`last`](https://tin.ad/docs/ref/std/arrays/#last)
- [`Array.slice`](https://tin.ad/docs/ref/std/arrays/#Array-slice)
- [`Array.reverse`](https://tin.ad/docs/ref/std/arrays/#Array-reverse)
- [`Array.concat`](https://tin.ad/docs/ref/std/arrays/#Array-concat)
- [`Array.indexOf`](https://tin.ad/docs/ref/std/arrays/#Array-indexOf)
- [`Array.contains`](https://tin.ad/docs/ref/std/arrays/#Array-contains)
- [`Array.isEmpty`](https://tin.ad/docs/ref/std/arrays/#Array-isEmpty)
- [`filled`](https://tin.ad/docs/ref/std/arrays/#filled)
- [`sort`](https://tin.ad/docs/ref/std/arrays/#sort)
- [`sortBy`](https://tin.ad/docs/ref/std/arrays/#sortBy)

## [Map and Set](https://tin.ad/docs/ref/std/map/)

A `Map<K, V>` looks values up by key; a `Set<T>` holds each value once. Both are values: assigning one copies it.

- [`Set`](https://tin.ad/docs/ref/std/map/#Set)
- [`Map`](https://tin.ad/docs/ref/std/map/#Map)
- [`newMap`](https://tin.ad/docs/ref/std/map/#newMap)
- [`Map.set`](https://tin.ad/docs/ref/std/map/#Map-set)
- [`Map.get`](https://tin.ad/docs/ref/std/map/#Map-get)
- [`Map.at`](https://tin.ad/docs/ref/std/map/#Map-at)
- [`Map.has`](https://tin.ad/docs/ref/std/map/#Map-has)
- [`Map.size`](https://tin.ad/docs/ref/std/map/#Map-size)
- [`Map.keys`](https://tin.ad/docs/ref/std/map/#Map-keys)
- [`Map.values`](https://tin.ad/docs/ref/std/map/#Map-values)
- [`Map.entries`](https://tin.ad/docs/ref/std/map/#Map-entries)
- [`Map.getOr`](https://tin.ad/docs/ref/std/map/#Map-getOr)
- [`Map.remove`](https://tin.ad/docs/ref/std/map/#Map-remove)
- [`Map.equals`](https://tin.ad/docs/ref/std/map/#Map-equals)
- [`Map.hash`](https://tin.ad/docs/ref/std/map/#Map-hash)
- [`mapOf`](https://tin.ad/docs/ref/std/map/#mapOf)
- [`newSet`](https://tin.ad/docs/ref/std/map/#newSet)
- [`setOf`](https://tin.ad/docs/ref/std/map/#setOf)
- [`Set.equals`](https://tin.ad/docs/ref/std/map/#Set-equals)
- [`Set.hash`](https://tin.ad/docs/ref/std/map/#Set-hash)
- [`Set.add`](https://tin.ad/docs/ref/std/map/#Set-add)
- [`Set.has`](https://tin.ad/docs/ref/std/map/#Set-has)
- [`Set.remove`](https://tin.ad/docs/ref/std/map/#Set-remove)
- [`Set.size`](https://tin.ad/docs/ref/std/map/#Set-size)
- [`Set.values`](https://tin.ad/docs/ref/std/map/#Set-values)
- [`Set.union`](https://tin.ad/docs/ref/std/map/#Set-union)
- [`Set.intersect`](https://tin.ad/docs/ref/std/map/#Set-intersect)

## [Option and Result](https://tin.ad/docs/ref/std/option-and-result/)

There is no null and there are no exceptions. A value that may be missing is an `Option`; a call that can fail returns a `Result`, and `?` passes a failure up.

- [`Option.isSome`](https://tin.ad/docs/ref/std/option-and-result/#Option-isSome)
- [`Option.isNone`](https://tin.ad/docs/ref/std/option-and-result/#Option-isNone)
- [`Option.or`](https://tin.ad/docs/ref/std/option-and-result/#Option-or)
- [`Option.unwrap`](https://tin.ad/docs/ref/std/option-and-result/#Option-unwrap)
- [`Option.okOr`](https://tin.ad/docs/ref/std/option-and-result/#Option-okOr)
- [`Result.isOk`](https://tin.ad/docs/ref/std/option-and-result/#Result-isOk)
- [`Result.isErr`](https://tin.ad/docs/ref/std/option-and-result/#Result-isErr)
- [`Result.or`](https://tin.ad/docs/ref/std/option-and-result/#Result-or)
- [`Result.ok`](https://tin.ad/docs/ref/std/option-and-result/#Result-ok)
- [`Result.unwrap`](https://tin.ad/docs/ref/std/option-and-result/#Result-unwrap)

## [Numbers and math](https://tin.ad/docs/ref/std/numbers/)

`int` is 32-bit and checked: overflow is a panic, not a wrap. The Bits module has wrapping arithmetic.

- [`min`](https://tin.ad/docs/ref/std/numbers/#min)
- [`max`](https://tin.ad/docs/ref/std/numbers/#max)
- [`int.compare`](https://tin.ad/docs/ref/std/numbers/#int-compare)
- [`i64.compare`](https://tin.ad/docs/ref/std/numbers/#i64-compare)
- [`float.compare`](https://tin.ad/docs/ref/std/numbers/#float-compare)
- [`string.compare`](https://tin.ad/docs/ref/std/numbers/#string-compare)
- [`Duration.compare`](https://tin.ad/docs/ref/std/numbers/#Duration-compare)
- [`Frequency.compare`](https://tin.ad/docs/ref/std/numbers/#Frequency-compare)
- [`Angle.compare`](https://tin.ad/docs/ref/std/numbers/#Angle-compare)
- [`Angle.rad`](https://tin.ad/docs/ref/std/numbers/#Angle-rad)
- [`Angle.deg`](https://tin.ad/docs/ref/std/numbers/#Angle-deg)
- [`Angle.sin`](https://tin.ad/docs/ref/std/numbers/#Angle-sin)
- [`Angle.cos`](https://tin.ad/docs/ref/std/numbers/#Angle-cos)
- [`Angle.wrap`](https://tin.ad/docs/ref/std/numbers/#Angle-wrap)
- [`Angle.clamp`](https://tin.ad/docs/ref/std/numbers/#Angle-clamp)
- [`abs`](https://tin.ad/docs/ref/std/numbers/#abs)
- [`sqrt`](https://tin.ad/docs/ref/std/numbers/#sqrt)
- [`floor`](https://tin.ad/docs/ref/std/numbers/#floor)
- [`ceil`](https://tin.ad/docs/ref/std/numbers/#ceil)
- [`round`](https://tin.ad/docs/ref/std/numbers/#round)
- [`pow`](https://tin.ad/docs/ref/std/numbers/#pow)
- [`sin`](https://tin.ad/docs/ref/std/numbers/#sin)
- [`cos`](https://tin.ad/docs/ref/std/numbers/#cos)
- [`tan`](https://tin.ad/docs/ref/std/numbers/#tan)
- [`exp`](https://tin.ad/docs/ref/std/numbers/#exp)
- [`ln`](https://tin.ad/docs/ref/std/numbers/#ln)
- [`float.fixed`](https://tin.ad/docs/ref/std/numbers/#float-fixed)
- [`float.bits`](https://tin.ad/docs/ref/std/numbers/#float-bits)
- [`floatFromBits`](https://tin.ad/docs/ref/std/numbers/#floatFromBits)
- [`random`](https://tin.ad/docs/ref/std/numbers/#random)
- [`randomInt`](https://tin.ad/docs/ref/std/numbers/#randomInt)

## [Bits](https://tin.ad/docs/ref/std/bits/)

Rotations and wrapping arithmetic for checksums and hashes, where overflow is meant to wrap.

- [`int.rotl`](https://tin.ad/docs/ref/std/bits/#int-rotl)
- [`int.rotr`](https://tin.ad/docs/ref/std/bits/#int-rotr)
- [`int.wrapAdd`](https://tin.ad/docs/ref/std/bits/#int-wrapAdd)
- [`int.wrapSub`](https://tin.ad/docs/ref/std/bits/#int-wrapSub)
- [`int.wrapMul`](https://tin.ad/docs/ref/std/bits/#int-wrapMul)
- [`int.u32`](https://tin.ad/docs/ref/std/bits/#int-u32)
- [`i64.rotl`](https://tin.ad/docs/ref/std/bits/#i64-rotl)
- [`i64.rotr`](https://tin.ad/docs/ref/std/bits/#i64-rotr)
- [`i64.wrapAdd`](https://tin.ad/docs/ref/std/bits/#i64-wrapAdd)
- [`i64.wrapMul`](https://tin.ad/docs/ref/std/bits/#i64-wrapMul)
- [`i64.lo32`](https://tin.ad/docs/ref/std/bits/#i64-lo32)

## [Bytes](https://tin.ad/docs/ref/std/bytes/)

Binary data: raw bytes, with hex and base64 in both directions. `text()` checks that the bytes are UTF-8.

- [`Bytes`](https://tin.ad/docs/ref/std/bytes/#Bytes)
- [`string.bytes`](https://tin.ad/docs/ref/std/bytes/#string-bytes)
- [`bytesOf`](https://tin.ad/docs/ref/std/bytes/#bytesOf)
- [`Bytes.at`](https://tin.ad/docs/ref/std/bytes/#Bytes-at)
- [`Bytes.slice`](https://tin.ad/docs/ref/std/bytes/#Bytes-slice)
- [`Bytes.concat`](https://tin.ad/docs/ref/std/bytes/#Bytes-concat)
- [`Bytes.find`](https://tin.ad/docs/ref/std/bytes/#Bytes-find)
- [`Bytes.toArray`](https://tin.ad/docs/ref/std/bytes/#Bytes-toArray)
- [`Bytes.text`](https://tin.ad/docs/ref/std/bytes/#Bytes-text)
- [`Bytes.show`](https://tin.ad/docs/ref/std/bytes/#Bytes-show)
- [`Bytes.hex`](https://tin.ad/docs/ref/std/bytes/#Bytes-hex)
- [`hexBytes`](https://tin.ad/docs/ref/std/bytes/#hexBytes)
- [`Bytes.base64`](https://tin.ad/docs/ref/std/bytes/#Bytes-base64)
- [`base64Bytes`](https://tin.ad/docs/ref/std/bytes/#base64Bytes)

## [Json](https://tin.ad/docs/ref/std/json/)

Read and write JSON whose shape is not known in advance. For a shape you know, a typed agent reply or a struct is better.

- [`Json`](https://tin.ad/docs/ref/std/json/#Json)
- [`JsonReader`](https://tin.ad/docs/ref/std/json/#JsonReader)
- [`parseJson`](https://tin.ad/docs/ref/std/json/#parseJson)
- [`jsonQuote`](https://tin.ad/docs/ref/std/json/#jsonQuote)
- [`Json.stringify`](https://tin.ad/docs/ref/std/json/#Json-stringify)
- [`Json.show`](https://tin.ad/docs/ref/std/json/#Json-show)
- [`Json.field`](https://tin.ad/docs/ref/std/json/#Json-field)
- [`Json.has`](https://tin.ad/docs/ref/std/json/#Json-has)
- [`Json.item`](https://tin.ad/docs/ref/std/json/#Json-item)
- [`Json.items`](https://tin.ad/docs/ref/std/json/#Json-items)
- [`Json.entries`](https://tin.ad/docs/ref/std/json/#Json-entries)
- [`Json.with`](https://tin.ad/docs/ref/std/json/#Json-with)
- [`Json.asStr`](https://tin.ad/docs/ref/std/json/#Json-asStr)
- [`Json.asNum`](https://tin.ad/docs/ref/std/json/#Json-asNum)
- [`Json.asBool`](https://tin.ad/docs/ref/std/json/#Json-asBool)
- [`Json.asInt`](https://tin.ad/docs/ref/std/json/#Json-asInt)
- [`Json.isNull`](https://tin.ad/docs/ref/std/json/#Json-isNull)

## [Hashing](https://tin.ad/docs/ref/std/hashing/)

SHA-256 and HMAC-SHA-256, written in Tin. The Bedrock provider signs its requests with them.

- [`sha256`](https://tin.ad/docs/ref/std/hashing/#sha256)
- [`hmacSha256`](https://tin.ad/docs/ref/std/hashing/#hmacSha256)

## [Time and I/O](https://tin.ad/docs/ref/std/time-io/)

Clocks, waiting, input, the environment and HTTP. Each of these reaches outside the program, so `tin caps` reports it.

- [`HttpResponse`](https://tin.ad/docs/ref/std/time-io/#HttpResponse)
- [`unixMillis`](https://tin.ad/docs/ref/std/time-io/#unixMillis)
- [`now`](https://tin.ad/docs/ref/std/time-io/#now)
- [`sleep`](https://tin.ad/docs/ref/std/time-io/#sleep)
- [`within`](https://tin.ad/docs/ref/std/time-io/#within)
- [`eprint`](https://tin.ad/docs/ref/std/time-io/#eprint)
- [`input`](https://tin.ad/docs/ref/std/time-io/#input)
- [`env`](https://tin.ad/docs/ref/std/time-io/#env)
- [`args`](https://tin.ad/docs/ref/std/time-io/#args)
- [`span`](https://tin.ad/docs/ref/std/time-io/#span)
- [`spanAttr`](https://tin.ad/docs/ref/std/time-io/#spanAttr)
- [`fetch`](https://tin.ad/docs/ref/std/time-io/#fetch)
- [`readBytes`](https://tin.ad/docs/ref/std/time-io/#readBytes)
- [`readFile`](https://tin.ad/docs/ref/std/time-io/#readFile)
- [`writeBytes`](https://tin.ad/docs/ref/std/time-io/#writeBytes)
- [`writeFile`](https://tin.ad/docs/ref/std/time-io/#writeFile)
- [`exists`](https://tin.ad/docs/ref/std/time-io/#exists)
- [`isDir`](https://tin.ad/docs/ref/std/time-io/#isDir)
- [`listDir`](https://tin.ad/docs/ref/std/time-io/#listDir)
- [`http`](https://tin.ad/docs/ref/std/time-io/#http)
- [`HttpResponse.read`](https://tin.ad/docs/ref/std/time-io/#HttpResponse-read)
- [`HttpResponse.body`](https://tin.ad/docs/ref/std/time-io/#HttpResponse-body)
- [`HttpResponse.text`](https://tin.ad/docs/ref/std/time-io/#HttpResponse-text)
- [`HttpResponse.close`](https://tin.ad/docs/ref/std/time-io/#HttpResponse-close)
- [`assertEq`](https://tin.ad/docs/ref/std/time-io/#assertEq)
- [`assert`](https://tin.ad/docs/ref/std/time-io/#assert)

## [Traits](https://tin.ad/docs/ref/std/traits/)

The traits the library uses as bounds, such as `T: Ord` on `sort` and `max`. Implement one for your own type to use those functions with it.

- [`Ord`](https://tin.ad/docs/ref/std/traits/#Ord)
- [`Show`](https://tin.ad/docs/ref/std/traits/#Show)
- [`Eq`](https://tin.ad/docs/ref/std/traits/#Eq)

## [Voice](https://tin.ad/docs/ref/std/voice/)

The types a `voice agent` session uses: its events, audio in and audio out. See the status page for what has been verified with real providers.

- [`VoiceEvent`](https://tin.ad/docs/ref/std/voice/#VoiceEvent)
- [`Session`](https://tin.ad/docs/ref/std/voice/#Session)
- [`AudioOut`](https://tin.ad/docs/ref/std/voice/#AudioOut)
- [`AudioIn`](https://tin.ad/docs/ref/std/voice/#AudioIn)
- [`Audio`](https://tin.ad/docs/ref/std/voice/#Audio)
- [`mic`](https://tin.ad/docs/ref/std/voice/#mic)
- [`speaker`](https://tin.ad/docs/ref/std/voice/#speaker)
- [`AudioIn.read`](https://tin.ad/docs/ref/std/voice/#AudioIn-read)
- [`AudioOut.play`](https://tin.ad/docs/ref/std/voice/#AudioOut-play)
- [`AudioOut.clear`](https://tin.ad/docs/ref/std/voice/#AudioOut-clear)
- [`Audio.seconds`](https://tin.ad/docs/ref/std/voice/#Audio-seconds)
- [`Audio.rate`](https://tin.ad/docs/ref/std/voice/#Audio-rate)
- [`Audio.level`](https://tin.ad/docs/ref/std/voice/#Audio-level)
- [`Audio.show`](https://tin.ad/docs/ref/std/voice/#Audio-show)
- [`tone`](https://tin.ad/docs/ref/std/voice/#tone)
- [`silence`](https://tin.ad/docs/ref/std/voice/#silence)
- [`Session.say`](https://tin.ad/docs/ref/std/voice/#Session-say)
- [`Session.send`](https://tin.ad/docs/ref/std/voice/#Session-send)
- [`Session.next`](https://tin.ad/docs/ref/std/voice/#Session-next)
- [`Session.interrupt`](https://tin.ad/docs/ref/std/voice/#Session-interrupt)
- [`Session.stop`](https://tin.ad/docs/ref/std/voice/#Session-stop)
- [`Session.save`](https://tin.ad/docs/ref/std/voice/#Session-save)
