audio module

AudioImpulseRunner

class edge_impulse_linux.audio.AudioImpulseRunner(
		model_path: str
)

Parameters

  • model_path: str

Bases

  • edge_impulse_linux.runner.ImpulseRunner

Methods

classifier

edge_impulse_linux.audio.classifier(
		self,
		device_id=None
)

Parameters

  • self

  • device_id=None

classify

edge_impulse_linux.audio.classify(
		self,
		data
)

Parameters

  • self

  • data

init

edge_impulse_linux.audio.init(
		self,
		debug=False
)

Parameters

  • self

  • debug=False

Microphone

class edge_impulse_linux.audio.Microphone(
		rate,
		chunk_size,
		device_id=None,
		channels=1
)

Parameters

  • rate

  • chunk_size

  • device_id=None

  • channels=1

Methods

checkDeviceModelCompatibility

edge_impulse_linux.audio.checkDeviceModelCompatibility(
		self,
		device_id
)

Parameters

  • self

  • device_id

fill_buffer

edge_impulse_linux.audio.fill_buffer(
		self,
		in_data,
		frame_count,
		time_info,
		status_flags
)

Parameters

  • self

  • in_data

  • frame_count

  • time_info

  • status_flags

generator

edge_impulse_linux.audio.generator(
		self
)

Parameters

  • self

listAvailableDevices

edge_impulse_linux.audio.listAvailableDevices(
		self
)

Parameters

  • self

now

edge_impulse_linux.audio.now(
		
)

Last updated