Quick migration checklist
1
Regenerate your license key
Create a new license key in the developer platform and store it in
AIC_SDK_LICENSE.2
Update model IDs
Replace 1.3 enums with 2.0 model IDs (for example
QUAIL_VF_STT_L16 → quail-vf-l-16khz). Model Name Migration Guide.3
Adopt the new architecture
Download models with
aic.Model.download, load with aic.Model.from_file, then create a ProcessorConfig and Processor.
Parameters are now set through ProcessorContext instead of the processor to enable safer multi-threaded usage.4
Rename parameters
Update
AICParameter/AICVadParameter to ProcessorParameter/VadParameter (CamelCase).5
Validate async usage
Switch to
ProcessorAsync for asynchronous processing and Model.download_async for downloads.Breaking changes summary
- Import name changed from
aictoaic_sdk(useimport aic_sdk as aicfor convenience). - Model names changed (
Quail→Sparrow,Quail-STT→Quail). - New license keys required; old keys fail in 2.0.
- New architecture splits
Model,ProcessorConfig,ProcessorandProcessorContext. - Parameter enums renamed from
SNAKE_CASEtoCamelCase. - Models are downloaded separately; no longer bundled.
Model naming changes
Models were renamed to clarify use cases, check the Model Name Migration GuideArchitecture changes
- 1.3
- 2.0
- Reuse one model across multiple processors.
- Smaller package footprint because models download separately.
API changes (quick reference)
Parameters are now controlled through
ProcessorContext (obtained via processor.get_processor_context()) instead of directly on the processor. This design enables safer multi-threaded usage where each thread can maintain its own processing context.Parameter changes
ProcessorParameter (was AICParameter)
VadParameter (was AICVadParameter)
Complete migration example
- 1.3
- 2.0
Async processing
- 1.3
- 2.0
Removed features
AICModelTypeenum (use model ID strings such as"quail-vf-l-16khz").process_interleaved()andprocess_sequential()(useprocesswith numpy array(channels, frames)).- Context manager
with Model(...) as m:. NOISE_GATE_ENABLEparameter (now used automatically by the VAD).process_submit()future API (useasynciowithProcessorAsync).
New features
Model downloading
Model reuse
Configure the Processor
Model information
Specific exception types
Need help?
- See the GitHub Repository and the type stubs file.
- Browse available models at artifacts.ai-coustics.io.
- Generate new license keys at developers.ai-coustics.com.