11# Makefile for Speechmatics Python SDKs
22
33.PHONY : help
4- .PHONY : test-all test-rt test-batch test-flow
5- .PHONY : format-all format-rt format-batch format-flow
6- .PHONY : lint-all lint-rt lint-batch lint-flow
7- .PHONY : type-check-all type-check-rt type-check-batch type-check-flow
8- .PHONY : build-all build-rt build-batch build-flow
9- .PHONY : clean-all clean-rt clean-batch clean-flow clean-flow
4+ .PHONY : test-all test-rt test-batch test-flow test-tts
5+ .PHONY : format-all format-rt format-batch format-flow format-tts
6+ .PHONY : lint-all lint-rt lint-batch lint-flow lint-tts
7+ .PHONY : type-check-all type-check-rt type-check-batch type-check-flow type-check-tts
8+ .PHONY : build-all build-rt build-batch build-flow build-tts
9+ .PHONY : clean-all clean-rt clean-batch clean-flow clean-tts
1010
1111help :
1212 @echo " Available commands:"
@@ -40,16 +40,18 @@ help:
4040 @echo " build-rt Build RT SDK"
4141 @echo " build-batch Build Batch SDK"
4242 @echo " build-flow Build Flow SDK"
43+ @echo " build-tts Build TTS SDK"
4344 @echo " "
4445 @echo " Cleaning:"
4546 @echo " clean-all Clean all SDKs"
4647 @echo " clean-rt Clean RT SDK build artifacts"
4748 @echo " clean-batch Clean Batch SDK build artifacts"
4849 @echo " clean-flow Clean Flow SDK build artifacts"
50+ @echo " clean-tts Clean TTS SDK build artifacts"
4951 @echo " "
5052
5153# Testing targets
52- test-all : test-rt test-batch test-flow
54+ test-all : test-rt test-batch test-flow test-tts
5355
5456test-rt :
5557 pytest tests/rt/ -v
@@ -61,7 +63,7 @@ test-flow:
6163 pytest tests/flow/ -v
6264
6365# Formatting targets
64- format-all : format-rt format-batch format-flow
66+ format-all : format-rt format-batch format-flow format-tts
6567
6668format-rt :
6769 cd sdk/rt/speechmatics && black .
@@ -75,8 +77,12 @@ format-flow:
7577 cd sdk/flow/speechmatics && black .
7678 cd sdk/flow/speechmatics && ruff check --fix .
7779
80+ format-tts :
81+ cd sdk/tts/speechmatics && black .
82+ cd sdk/tts/speechmatics && ruff check --fix .
83+
7884# Linting targets
79- lint-all : lint-rt lint-batch lint-flow
85+ lint-all : lint-rt lint-batch lint-flow lint-tts
8086
8187lint-rt :
8288 cd sdk/rt/speechmatics && ruff check .
@@ -87,8 +93,11 @@ lint-batch:
8793lint-flow :
8894 cd sdk/flow/speechmatics && ruff check .
8995
96+ lint-tts :
97+ cd sdk/tts/speechmatics && ruff check .
98+
9099# Type checking targets
91- type-check-all : type-check-rt type-check-batch type-check-flow
100+ type-check-all : type-check-rt type-check-batch type-check-flow type-check-tts
92101
93102type-check-rt :
94103 cd sdk/rt/speechmatics && mypy .
@@ -99,18 +108,22 @@ type-check-batch:
99108type-check-flow :
100109 cd sdk/flow/speechmatics && mypy .
101110
111+ type-check-tts :
112+ cd sdk/tts/speechmatics && mypy .
113+
102114# Installation targets
103115install-dev :
104116 python -m pip install --upgrade pip
105117 python -m pip install -e sdk/rt[dev]
106118 python -m pip install -e sdk/batch[dev]
107119 python -m pip install -e sdk/flow[dev]
120+ python -m pip install -e sdk/tts[dev]
108121
109122install-build :
110123 python -m pip install --upgrade build
111124
112125# Building targets
113- build-all : build-rt build-batch build-flow
126+ build-all : build-rt build-batch build-flow build-tts
114127
115128build-rt : install-build
116129 cd sdk/rt && python -m build
@@ -121,8 +134,11 @@ build-batch: install-build
121134build-flow : install-build
122135 cd sdk/flow && python -m build
123136
137+ build-tts : install-build
138+ cd sdk/tts && python -m build
139+
124140# Cleaning targets
125- clean-all : clean-rt clean-batch clean-flow
141+ clean-all : clean-rt clean-batch clean-flow clean-tts
126142
127143clean-rt :
128144 rm -rf sdk/rt/dist sdk/rt/build sdk/rt/* .egg-info
@@ -135,3 +151,7 @@ clean-batch:
135151clean-flow :
136152 rm -rf sdk/flow/dist sdk/flow/build sdk/flow/* .egg-info
137153 find sdk/flow -name __pycache__ -exec rm -rf {} + 2> /dev/null || true
154+
155+ clean-tts :
156+ rm -rf sdk/tts/dist sdk/tts/build sdk/tts/* .egg-info
157+ find sdk/tts -name __pycache__ -exec rm -rf {} + 2> /dev/null || true
0 commit comments