NOTE: Because this client usesgrpclibrary, it is safe to
share instances across threads. In multiprocessing scenarios, the best
practice is to create client instancesafterthe invocation ofos.fork()bymultiprocessing.pool.Poolormultiprocessing.Process.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-02 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [2.27.0 (latest)](/python/docs/reference/texttospeech/latest/multiprocessing)\n- [2.26.0](/python/docs/reference/texttospeech/2.26.0/multiprocessing)\n- [2.25.0](/python/docs/reference/texttospeech/2.25.0/multiprocessing)\n- [2.24.0](/python/docs/reference/texttospeech/2.24.0/multiprocessing)\n- [2.23.0](/python/docs/reference/texttospeech/2.23.0/multiprocessing)\n- [2.22.0](/python/docs/reference/texttospeech/2.22.0/multiprocessing)\n- [2.21.1](/python/docs/reference/texttospeech/2.21.1/multiprocessing)\n- [2.20.0](/python/docs/reference/texttospeech/2.20.0/multiprocessing)\n- [2.19.0](/python/docs/reference/texttospeech/2.19.0/multiprocessing)\n- [2.18.0](/python/docs/reference/texttospeech/2.18.0/multiprocessing)\n- [2.17.2](/python/docs/reference/texttospeech/2.17.2/multiprocessing)\n- [2.16.5](/python/docs/reference/texttospeech/2.16.5/multiprocessing)\n- [2.15.1](/python/docs/reference/texttospeech/2.15.1/multiprocessing)\n- [2.14.2](/python/docs/reference/texttospeech/2.14.2/multiprocessing)\n- [2.13.0](/python/docs/reference/texttospeech/2.13.0/multiprocessing)\n- [2.12.3](/python/docs/reference/texttospeech/2.12.3/multiprocessing)\n- [2.11.1](/python/docs/reference/texttospeech/2.11.1/multiprocessing)\n- [2.10.2](/python/docs/reference/texttospeech/2.10.2/multiprocessing)\n- [2.9.1](/python/docs/reference/texttospeech/2.9.1/multiprocessing)\n- [2.8.0](/python/docs/reference/texttospeech/2.8.0/multiprocessing)\n- [2.7.1](/python/docs/reference/texttospeech/2.7.1/multiprocessing)\n- [2.6.0](/python/docs/reference/texttospeech/2.6.0/multiprocessing)\n- [2.5.3](/python/docs/reference/texttospeech/2.5.3/multiprocessing)\n- [2.4.0](/python/docs/reference/texttospeech/2.4.0/multiprocessing)\n- [2.3.0](/python/docs/reference/texttospeech/2.3.0/multiprocessing)\n- [2.2.0](/python/docs/reference/texttospeech/2.2.0/multiprocessing)\n- [2.1.0](/python/docs/reference/texttospeech/2.1.0/multiprocessing)\n- [2.0.0](/python/docs/reference/texttospeech/2.0.0/multiprocessing)\n- [1.0.3](/python/docs/reference/texttospeech/1.0.3/multiprocessing)\n- [0.5.0](/python/docs/reference/texttospeech/0.5.0/multiprocessing) \n\nMultiprocessing\n===============\n\n**NOTE** : Because this client uses [`grpc`](https://grpc.github.io/grpc/python/grpc.html#module-grpc) library, it is safe to\nshare instances across threads. In multiprocessing scenarios, the best\npractice is to create client instances *after* the invocation of\n[`os.fork()`](https://docs.python.org/3/library/os.html#os.fork) by [`multiprocessing.pool.Pool`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool) or\n[`multiprocessing.Process`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Process)."]]