Connection
Base URL, credentials and a reachable server.
Review pcm24.py around the sign bit in the third byte before passing its integer samples to other audio code.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
def pcm24_samples(data):
if type(data) is not bytes or len(data) % 3 or len(data) > 12288:
raise ValueError("pcm.bytes")
result = []
for i in range(0, len(data), 3):
value = data[i] | data[i+1] << 8 | data[i+2] << 16
result.append(value-(1 << 24) if value & (1 << 23) else value)
return result