This package lets you start Ai-Gf calls directly in your Python application.
You can install the package via pip:
pip install aigf_python
or
pip install git+https://github.com/zardamhussain/aigf_python.git
On Mac, you might need to install brew install portaudio
to satisfy pyaudio
's dependency requirement.
First, import the AIGF class from the package:
from aigf_python import AIGF
Then, create a new instance of the AIGF class:
gf = AIGF()
You can start a new call by calling the start
method
gf.start()
You can also start a new call with weatherunion calling the start_with_weatherunion
method
gf.start_with_weatherunion(api_key='XXXXXXX..', locality_id='XXXX...')
You can stop the session by calling the stop
method:
gf.stop()
This will stop the recording and close the connection.