Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google TTS Spring Boot Program - Not getting any response

 

 

public class TextToSpeechServiceV2
{
@Value("${audioOutput.fileDirectory}")
private String audioFileDirectory;

@Value("${audioOutput.audioFormat}")
private String audioFileFormat;

@Value("classpath:careful-ensign-380704-cdd798eba5dd.json")
private Resource googleJsonResource;

String audioFileName = "output";

private static final Logger logger = LogManager.getLogger(TextToSpeechServiceV2.class);

public void generateAudioFile(String receivedtext) throws Exception
{
logger.info("V1 Service -> Received Text : " + receivedtext);

// Load the service account key file as a GoogleCredentials object
GoogleCredentials credentials = GoogleCredentials.fromStream(googleJsonResource.getInputStream());

logger.info("Initialised Google Credentials");

// Build the TextToSpeechSettings using the builder pattern and set the service
// account credentials
TextToSpeechSettings settings = TextToSpeechSettings.newBuilder().setCredentialsProvider(() -> credentials)
.build();

logger.info("Build TTS Settings");

// Build the TextToSpeechClient using the GoogleCredentials object
try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(settings))
{
System.out.println("In Try - Create TTS client");
logger.info("In Try - Create TTS client");
// Set the text input to be synthesized
SynthesisInput input = SynthesisInput.newBuilder().setText(receivedtext).build();

// Build the voice request, select the language code ("en-US") and the ssml
VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().setLanguageCode("en-US")
.setSsmlGender(SsmlVoiceGender.FEMALE).build();
logger.info("Set Voice Params");

// Select the type of audio file you want returned
AudioConfig audioConfig = AudioConfig.newBuilder().setAudioEncoding(AudioEncoding.MP3).build();
logger.info("Audio Configured");

// Perform the text-to-speech request
SynthesizeSpeechResponse response = textToSpeechClient.synthesizeSpeech(input, voice, audioConfig);
logger.info("Audio Synthesised");

// Get the audio contents from the response
ByteString audioContents = response.getAudioContent();

// Write the response to the output file
try (OutputStream out = new FileOutputStream(audioFileDirectory + audioFileName + audioFileFormat))
{
out.write(audioContents.toByteArray());
logger.info("File Opened and Written");
} catch (Exception e)
{
logger.error("Exception in Opening File : " + e.getMessage());
logger.error(e.getMessage(), e);
throw e;
}
}catch (Exception e) {
logger.error("Exception in TTS Client Create : " + e.getMessage());
logger.error(e.getMessage(), e);
throw e;
}
}
}

 

 

 

 

The program stops at the line

 

SynthesizeSpeechResponse response = textToSpeechClient.synthesizeSpeech(input, voice, audioConfig);

 

Does not get any response from there. When I am testing with Postman, I get a Gateway Timeout Error and if I check for logs, anything after this line is not coming. No exceptions. Nothing. 

Like the program just stops.

 

Please help. Thanks in advance

0 7 763
7 REPLIES 7

can you enable debug logging to get more information on the issue?

Hi Joevanie,

The WAR is deployed to an AWS server and the output is meant to be stored in the same.

Has this got to do anything with the persistent error.

I have pasted the logs here twice. It is getting removed. What should I do ?

 

I have enabled the following two logging 

logging.level.io.grpc=DEBUG
logging.level.com.google.cloud.texttospeech.v1=DEBUG

 

------------------------------------

2023-03-17 04:56:32,868 INFO c.m.c.TextToSpeechController [ajp-nio-8009-exec-605] Controller V2 - Received Text : {
"text":"Sample Google Text-To-Speech"
}
2023-03-17 04:56:32,869 INFO c.m.s.TextToSpeechServiceV2 [ajp-nio-8009-exec-605] Received Text : {
"text":"Sample Google Text-To-Speech"
}
2023-03-17 04:56:32,949 INFO c.m.s.TextToSpeechServiceV2 [ajp-nio-8009-exec-605] Initialised Google Credentials
2023-03-17 04:56:33,005 INFO c.m.s.TextToSpeechServiceV2 [ajp-nio-8009-exec-605] Build TTS Settings
2023-03-17 04:56:33,127 DEBUG i.g.n.s.i.n.u.i.l.InternalLoggerFactory [ajp-nio-8009-exec-605] Using SLF4J as the default logging framework
2023-03-17 04:56:33,131 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] -Dio.netty.noUnsafe: false
2023-03-17 04:56:33,132 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] Java version: 8
2023-03-17 04:56:33,134 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] sun.misc.Unsafe.theUnsafe: available
2023-03-17 04:56:33,135 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] sun.misc.Unsafe.copyMemory: available
2023-03-17 04:56:33,136 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] sun.misc.Unsafe.storeFence: available
2023-03-17 04:56:33,137 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] java.nio.Buffer.address: available
2023-03-17 04:56:33,138 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] direct buffer constructor: available
2023-03-17 04:56:33,139 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] java.nio.Bits.unaligned: available, true
2023-03-17 04:56:33,140 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
2023-03-17 04:56:33,140 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-605] java.nio.DirectByteBuffer.<init>(long, int): available
2023-03-17 04:56:33,140 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-605] sun.misc.Unsafe: available
2023-03-17 04:56:33,140 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-605] -Dio.netty.tmpdir: /opt/tomcat/apache-tomcat-8.5.32/temp (java.io.tmpdir)
2023-03-17 04:56:33,141 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-605] -Dio.netty.bitMode: 64 (sun.arch.data.model)
2023-03-17 04:56:33,142 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-605] -Dio.netty.maxDirectMemory: 3633315840 bytes
2023-03-17 04:56:33,142 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-605] -Dio.netty.uninitializedArrayAllocationThreshold: -1
2023-03-17 04:56:33,144 DEBUG i.g.n.s.i.n.u.i.CleanerJava6 [ajp-nio-8009-exec-605] java.nio.ByteBuffer.cleaner(): available
2023-03-17 04:56:33,144 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-605] -Dio.netty.noPreferDirect: false
2023-03-17 04:56:33,187 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-605] -Dio.netty.native.workdir: /opt/tomcat/apache-tomcat-8.5.32/temp (io.netty.tmpdir)
2023-03-17 04:56:33,188 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-605] -Dio.netty.native.deleteLibAfterLoading: true
2023-03-17 04:56:33,188 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-605] -Dio.netty.native.tryPatchShadedId: true
2023-03-17 04:56:33,188 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-605] -Dio.netty.native.detectNativeLibraryDuplicates: true
2023-03-17 04:56:33,203 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-605] Successfully loaded the library /opt/tomcat/apache-tomcat-8.5.32/temp/libio_grpc_netty_shaded_netty_transport_native_epoll_x86_642061884417420384413.so
2023-03-17 04:56:33,209 DEBUG i.g.n.s.i.n.u.NetUtil [ajp-nio-8009-exec-605] -Djava.net.preferIPv4Stack: false
2023-03-17 04:56:33,209 DEBUG i.g.n.s.i.n.u.NetUtil [ajp-nio-8009-exec-605] -Djava.net.preferIPv6Addresses: false
2023-03-17 04:56:33,212 DEBUG i.g.n.s.i.n.u.NetUtilInitializations [ajp-nio-8009-exec-605] Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
2023-03-17 04:56:33,213 DEBUG i.g.n.s.i.n.u.NetUtil [ajp-nio-8009-exec-605] /proc/sys/net/core/somaxconn: 128
2023-03-17 04:56:33,251 DEBUG i.g.n.s.i.n.c.MultithreadEventLoopGroup [ajp-nio-8009-exec-605] -Dio.netty.eventLoopThreads: 8
2023-03-17 04:56:33,329 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-605] Successfully loaded the library /opt/tomcat/apache-tomcat-8.5.32/temp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_644871492624941475193.so
2023-03-17 04:56:33,329 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-605] Loaded library with name 'netty_tcnative_linux_x86_64'
2023-03-17 04:56:33,329 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-605] Initialize netty-tcnative using engine: 'default'
2023-03-17 04:56:33,329 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-605] netty-tcnative using native library: BoringSSL
2023-03-17 04:56:33,359 DEBUG i.g.n.s.i.n.u.ResourceLeakDetector [ajp-nio-8009-exec-605] -Dio.grpc.netty.shaded.io.netty.leakDetection.level: simple
2023-03-17 04:56:33,359 DEBUG i.g.n.s.i.n.u.ResourceLeakDetector [ajp-nio-8009-exec-605] -Dio.grpc.netty.shaded.io.netty.leakDetection.targetRecords: 4
2023-03-17 04:56:33,367 DEBUG i.g.n.s.i.n.b.AbstractByteBuf [ajp-nio-8009-exec-605] -Dio.grpc.netty.shaded.io.netty.buffer.checkAccessible: true
2023-03-17 04:56:33,367 DEBUG i.g.n.s.i.n.b.AbstractByteBuf [ajp-nio-8009-exec-605] -Dio.grpc.netty.shaded.io.netty.buffer.checkBounds: true
2023-03-17 04:56:33,369 DEBUG i.g.n.s.i.n.u.ResourceLeakDetectorFactory [ajp-nio-8009-exec-605] Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@5fa731bb
2023-03-17 04:56:33,385 DEBUG i.g.n.s.i.n.u.i.InternalThreadLocalMap [ajp-nio-8009-exec-605] -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
2023-03-17 04:56:33,385 DEBUG i.g.n.s.i.n.u.i.InternalThreadLocalMap [ajp-nio-8009-exec-605] -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
2023-03-17 04:56:33,388 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.numHeapArenas: 8
2023-03-17 04:56:33,388 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.numDirectArenas: 8
2023-03-17 04:56:33,388 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.pageSize: 8192
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.maxOrder: 9
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.chunkSize: 4194304
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.smallCacheSize: 256
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.normalCacheSize: 64
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.maxCachedBufferCapacity: 32768
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.cacheTrimInterval: 8192
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.cacheTrimIntervalMillis: 0
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.useCacheForAllThreads: false
2023-03-17 04:56:33,389 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-605] -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
2023-03-17 04:56:33,401 DEBUG i.g.n.s.i.n.b.ByteBufUtil [ajp-nio-8009-exec-605] -Dio.netty.allocator.type: pooled
2023-03-17 04:56:33,401 DEBUG i.g.n.s.i.n.b.ByteBufUtil [ajp-nio-8009-exec-605] -Dio.netty.threadLocalDirectBufferSize: 0
2023-03-17 04:56:33,401 DEBUG i.g.n.s.i.n.b.ByteBufUtil [ajp-nio-8009-exec-605] -Dio.netty.maxThreadLocalCharBufferSize: 16384
2023-03-17 04:56:33,407 DEBUG i.g.n.s.i.n.u.ResourceLeakDetectorFactory [ajp-nio-8009-exec-605] Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@286fb77c
2023-03-17 04:56:33,419 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-605] -Dio.netty.recycler.maxCapacityPerThread: 4096
2023-03-17 04:56:33,419 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-605] -Dio.netty.recycler.ratio: 8
2023-03-17 04:56:33,419 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-605] -Dio.netty.recycler.chunkSize: 32
2023-03-17 04:56:33,419 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-605] -Dio.netty.recycler.blocking: false
2023-03-17 04:56:33,433 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-605] org.jctools-core.MpscChunkedArrayQueue: available
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
2023-03-17 04:56:33,451 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
2023-03-17 04:56:33,452 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: TLS_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
2023-03-17 04:56:33,453 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-605] Cipher suite mapping: SSL_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
2023-03-17 04:56:33,454 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-605] Supported protocols (OpenSSL): [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2]
2023-03-17 04:56:33,454 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-605] Default cipher suites (OpenSSL): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256]
2023-03-17 04:56:33,662 INFO c.m.s.TextToSpeechServiceV2 [ajp-nio-8009-exec-605] In Try - Create TTS client
2023-03-17 04:56:33,674 INFO c.m.s.TextToSpeechServiceV2 [ajp-nio-8009-exec-605] Set Voice Params
2023-03-17 04:56:33,682 INFO c.m.s.TextToSpeechServiceV2 [ajp-nio-8009-exec-605] Audio Configured
2023-03-17 04:56:33,889 DEBUG i.g.n.s.i.n.c.DefaultChannelId [grpc-default-executor-0] -Dio.netty.processId: 3588 (auto-detected)
2023-03-17 04:56:33,891 DEBUG i.g.n.s.i.n.c.DefaultChannelId [grpc-default-executor-0] -Dio.netty.machineId: 02:24:3d:ff:fe:ae:9c:6a (auto-detected)
2023-03-17 04:56:33,945 DEBUG i.g.n.s.i.n.u.ResourceLeakDetectorFactory [grpc-default-worker-ELG-1-4] Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@704160a5
2023-03-17 04:56:34,007 DEBUG i.g.n.s.i.n.h.s.SslHandler [grpc-default-worker-ELG-1-4] [id: 0x26b02053, L:/10.2.0.106:36826 - R:texttospeech.googleapis.com/74.125.193.95:443] HANDSHAKEN: protocol:TLSv1.2 cipher suite:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
2023-03-17 04:56:34,014 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x26b02053, L:/10.2.0.106:36826 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND SETTINGS: ack=false settings={ENABLE_PUSH=0, MAX_CONCURRENT_STREAMS=0, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192}
2023-03-17 04:56:34,017 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x26b02053, L:/10.2.0.106:36826 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041
2023-03-17 04:56:34,022 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x26b02053, L:/10.2.0.106:36826 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND SETTINGS: ack=false settings={MAX_CONCURRENT_STREAMS=100, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=65536}
2023-03-17 04:56:34,024 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x26b02053, L:/10.2.0.106:36826 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND SETTINGS: ack=true
2023-03-17 04:56:34,082 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x26b02053, L:/10.2.0.106:36826 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041
2023-03-17 04:56:34,083 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x26b02053, L:/10.2.0.106:36826 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND SETTINGS: ack=true

I suggest try simplifying the program or removing any unnecessary dependencies to isolate the issue. You can start with a basic program that only calls the textToSpeechClient.synthesizeSpeech() method with minimal inputs and see if that works. Then gradually add more complexity to the program until you encounter the issue again.

Have reduced the code to below :

public void generateAudioFile() throws Exception
	{
		logger.info("----------------Test Service----------------");

		// Load the service account key file as a GoogleCredentials object
		GoogleCredentials credentials = GoogleCredentials.fromStream(googleJsonResource.getInputStream());

		logger.info("Initialised Google Credentials");

		// Build the TextToSpeechSettings using the builder pattern and set the service
		TextToSpeechSettings settings = TextToSpeechSettings.newBuilder().setCredentialsProvider(() -> credentials)
				.build();
		
		logger.info("Settings Built");
		
		try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(settings))
		{
			SynthesisInput synthesisInput = SynthesisInput.newBuilder().setText("Test Service Audio Output").build();
			VoiceSelectionParams voiceSelectionParams = VoiceSelectionParams.newBuilder().setLanguageCode("en-US").setSsmlGender(SsmlVoiceGender.NEUTRAL).build();
            AudioConfig audioConfig = AudioConfig.newBuilder().setAudioEncoding(AudioEncoding.MP3).build();
			
			SynthesizeSpeechRequest request = SynthesizeSpeechRequest.newBuilder()
                    .setInput(synthesisInput)
                    .setVoice(voiceSelectionParams)
                    .setAudioConfig(audioConfig)
                    .build();
			
			logger.info("Build Synthesize Speech Request");
			// Perform the text-to-speech request
			SynthesizeSpeechResponse response = textToSpeechClient.synthesizeSpeech(request);
			logger.info("Audio Synthesised : "+response);
			
		}catch (Exception e) {
			logger.error("Exception : " + e.getMessage());
			logger.error(e.getMessage(), e);
			throw e;
		}
		logger.info("Exited Try");
	}

Logs :

 

2023-03-27 06:16:17,578 DEBUG i.g.n.s.i.n.u.i.l.InternalLoggerFactory [ajp-nio-8009-exec-969] Using SLF4J as the default logging framework
2023-03-27 06:16:17,583 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] -Dio.netty.noUnsafe: false
2023-03-27 06:16:17,583 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] Java version: 8
2023-03-27 06:16:17,585 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] sun.misc.Unsafe.theUnsafe: available
2023-03-27 06:16:17,586 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] sun.misc.Unsafe.copyMemory: available
2023-03-27 06:16:17,587 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] sun.misc.Unsafe.storeFence: available
2023-03-27 06:16:17,588 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] java.nio.Buffer.address: available
2023-03-27 06:16:17,589 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] direct buffer constructor: available
2023-03-27 06:16:17,591 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] java.nio.Bits.unaligned: available, true
2023-03-27 06:16:17,591 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
2023-03-27 06:16:17,591 DEBUG i.g.n.s.i.n.u.i.PlatformDependent0 [ajp-nio-8009-exec-969] java.nio.DirectByteBuffer.<init>(long, int): available
2023-03-27 06:16:17,591 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-969] sun.misc.Unsafe: available
2023-03-27 06:16:17,592 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-969] -Dio.netty.tmpdir: /opt/tomcat/apache-tomcat-8.5.32/temp (java.io.tmpdir)
2023-03-27 06:16:17,592 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-969] -Dio.netty.bitMode: 64 (sun.arch.data.model)
2023-03-27 06:16:17,594 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-969] -Dio.netty.maxDirectMemory: 3633315840 bytes
2023-03-27 06:16:17,594 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-969] -Dio.netty.uninitializedArrayAllocationThreshold: -1
2023-03-27 06:16:17,596 DEBUG i.g.n.s.i.n.u.i.CleanerJava6 [ajp-nio-8009-exec-969] java.nio.ByteBuffer.cleaner(): available
2023-03-27 06:16:17,596 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-969] -Dio.netty.noPreferDirect: false
2023-03-27 06:16:17,648 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-969] -Dio.netty.native.workdir: /opt/tomcat/apache-tomcat-8.5.32/temp (io.netty.tmpdir)
2023-03-27 06:16:17,649 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-969] -Dio.netty.native.deleteLibAfterLoading: true
2023-03-27 06:16:17,649 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-969] -Dio.netty.native.tryPatchShadedId: true
2023-03-27 06:16:17,649 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-969] -Dio.netty.native.detectNativeLibraryDuplicates: true
2023-03-27 06:16:17,660 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-969] Successfully loaded the library /opt/tomcat/apache-tomcat-8.5.32/temp/libio_grpc_netty_shaded_netty_transport_native_epoll_x86_642467445789205395363.so
2023-03-27 06:16:17,666 DEBUG i.g.n.s.i.n.u.NetUtil [ajp-nio-8009-exec-969] -Djava.net.preferIPv4Stack: false
2023-03-27 06:16:17,666 DEBUG i.g.n.s.i.n.u.NetUtil [ajp-nio-8009-exec-969] -Djava.net.preferIPv6Addresses: false
2023-03-27 06:16:17,670 DEBUG i.g.n.s.i.n.u.NetUtilInitializations [ajp-nio-8009-exec-969] Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
2023-03-27 06:16:17,672 DEBUG i.g.n.s.i.n.u.NetUtil [ajp-nio-8009-exec-969] /proc/sys/net/core/somaxconn: 128
2023-03-27 06:16:17,717 DEBUG i.g.n.s.i.n.c.MultithreadEventLoopGroup [ajp-nio-8009-exec-969] -Dio.netty.eventLoopThreads: 8
2023-03-27 06:16:17,809 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-969] Successfully loaded the library /opt/tomcat/apache-tomcat-8.5.32/temp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_642968362480758772009.so
2023-03-27 06:16:17,809 DEBUG i.g.n.s.i.n.u.i.NativeLibraryLoader [ajp-nio-8009-exec-969] Loaded library with name 'netty_tcnative_linux_x86_64'
2023-03-27 06:16:17,809 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-969] Initialize netty-tcnative using engine: 'default'
2023-03-27 06:16:17,809 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-969] netty-tcnative using native library: BoringSSL
2023-03-27 06:16:17,844 DEBUG i.g.n.s.i.n.u.ResourceLeakDetector [ajp-nio-8009-exec-969] -Dio.grpc.netty.shaded.io.netty.leakDetection.level: simple
2023-03-27 06:16:17,844 DEBUG i.g.n.s.i.n.u.ResourceLeakDetector [ajp-nio-8009-exec-969] -Dio.grpc.netty.shaded.io.netty.leakDetection.targetRecords: 4
2023-03-27 06:16:17,853 DEBUG i.g.n.s.i.n.b.AbstractByteBuf [ajp-nio-8009-exec-969] -Dio.grpc.netty.shaded.io.netty.buffer.checkAccessible: true
2023-03-27 06:16:17,853 DEBUG i.g.n.s.i.n.b.AbstractByteBuf [ajp-nio-8009-exec-969] -Dio.grpc.netty.shaded.io.netty.buffer.checkBounds: true
2023-03-27 06:16:17,855 DEBUG i.g.n.s.i.n.u.ResourceLeakDetectorFactory [ajp-nio-8009-exec-969] Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@55afb3b3
2023-03-27 06:16:17,873 DEBUG i.g.n.s.i.n.u.i.InternalThreadLocalMap [ajp-nio-8009-exec-969] -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
2023-03-27 06:16:17,873 DEBUG i.g.n.s.i.n.u.i.InternalThreadLocalMap [ajp-nio-8009-exec-969] -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
2023-03-27 06:16:17,877 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.numHeapArenas: 8
2023-03-27 06:16:17,877 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.numDirectArenas: 8
2023-03-27 06:16:17,877 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.pageSize: 8192
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.maxOrder: 9
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.chunkSize: 4194304
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.smallCacheSize: 256
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.normalCacheSize: 64
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.maxCachedBufferCapacity: 32768
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.cacheTrimInterval: 8192
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.cacheTrimIntervalMillis: 0
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.useCacheForAllThreads: false
2023-03-27 06:16:17,878 DEBUG i.g.n.s.i.n.b.PooledByteBufAllocator [ajp-nio-8009-exec-969] -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
2023-03-27 06:16:17,892 DEBUG i.g.n.s.i.n.b.ByteBufUtil [ajp-nio-8009-exec-969] -Dio.netty.allocator.type: pooled
2023-03-27 06:16:17,892 DEBUG i.g.n.s.i.n.b.ByteBufUtil [ajp-nio-8009-exec-969] -Dio.netty.threadLocalDirectBufferSize: 0
2023-03-27 06:16:17,893 DEBUG i.g.n.s.i.n.b.ByteBufUtil [ajp-nio-8009-exec-969] -Dio.netty.maxThreadLocalCharBufferSize: 16384
2023-03-27 06:16:17,899 DEBUG i.g.n.s.i.n.u.ResourceLeakDetectorFactory [ajp-nio-8009-exec-969] Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@5b4be03a
2023-03-27 06:16:17,913 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-969] -Dio.netty.recycler.maxCapacityPerThread: 4096
2023-03-27 06:16:17,913 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-969] -Dio.netty.recycler.ratio: 8
2023-03-27 06:16:17,913 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-969] -Dio.netty.recycler.chunkSize: 32
2023-03-27 06:16:17,913 DEBUG i.g.n.s.i.n.u.Recycler [ajp-nio-8009-exec-969] -Dio.netty.recycler.blocking: false
2023-03-27 06:16:17,928 DEBUG i.g.n.s.i.n.u.i.PlatformDependent [ajp-nio-8009-exec-969] org.jctools-core.MpscChunkedArrayQueue: available
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
2023-03-27 06:16:17,947 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
2023-03-27 06:16:17,948 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: TLS_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
2023-03-27 06:16:17,949 DEBUG i.g.n.s.i.n.h.s.CipherSuiteConverter [ajp-nio-8009-exec-969] Cipher suite mapping: SSL_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
2023-03-27 06:16:17,950 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-969] Supported protocols (OpenSSL): [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2]
2023-03-27 06:16:17,950 DEBUG i.g.n.s.i.n.h.s.OpenSsl [ajp-nio-8009-exec-969] Default cipher suites (OpenSSL): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256]
2023-03-27 06:16:18,579 DEBUG i.g.n.s.i.n.c.DefaultChannelId [grpc-default-executor-0] -Dio.netty.processId: 3588 (auto-detected)
2023-03-27 06:16:18,582 DEBUG i.g.n.s.i.n.c.DefaultChannelId [grpc-default-executor-0] -Dio.netty.machineId: 02:24:3d:ff:fe:ae:9c:6a (auto-detected)
2023-03-27 06:16:18,643 DEBUG i.g.n.s.i.n.u.ResourceLeakDetectorFactory [grpc-default-worker-ELG-1-4] Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@2960b79d
2023-03-27 06:16:18,716 DEBUG i.g.n.s.i.n.h.s.SslHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] HANDSHAKEN: protocol:TLSv1.2 cipher suite:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
2023-03-27 06:16:18,724 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND SETTINGS: ack=false settings={ENABLE_PUSH=0, MAX_CONCURRENT_STREAMS=0, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192}
2023-03-27 06:16:18,727 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041
2023-03-27 06:16:18,734 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND SETTINGS: ack=false settings={MAX_CONCURRENT_STREAMS=100, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=65536}
2023-03-27 06:16:18,736 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND SETTINGS: ack=true
2023-03-27 06:16:18,794 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041
2023-03-27 06:16:18,795 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND SETTINGS: ack=true
2023-03-27 06:20:18,705 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND GO_AWAY: lastStreamId=2147483647 errorCode=0 length=17 bytes=73657373696f6e5f74696d65645f6f7574
2023-03-27 06:20:18,719 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND HEADERS: streamId=3 headers=GrpcHttp2OutboundHeaders[:authority: texttospeech.googleapis.com:443, :path: /google.cloud.texttospeech.v1.TextToSpeech/SynthesizeSpeech, :method: POST, :scheme: https, content-type: application/grpc, te: trailers, user-agent: grpc-java-netty/1.53.0, x-goog-api-client: gl-java/1.8.0_191 gapic/2.6.0 gax/2.23.3 grpc/1.50.1, grpc-accept-encoding: gzip, authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNkZDc5OGViYTVkZDk1NTYwYjc4N2Q2ZmM2Y2ViNWU3ZDZiMjBhYTQiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiJodHRwczovL3RleHR0b3NwZWVjaC5nb29nbGVhcGlzLmNvbS9nb29nbGUuY2xvdWQudGV4dHRvc3BlZWNoLnYxLlRleHRUb1NwZWVjaCIsImV4cCI6MTY3OTkwMTM3OCwiaWF0IjoxNjc5ODk3Nzc4LCJpc3MiOiJ0ZXh0LXRvLXNwZWVjaEBjYXJlZnVsLWVuc2lnbi0zODA3MDQuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzdWIiOiJ0ZXh0LXRvLXNwZWVjaEBjYXJlZnVsLWVuc2lnbi0zODA3MDQuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20ifQ.khEPq-YHHHo9xvU3rYvv4lib18ofR5x1xs5g8Ok94TaVq_XjyuOnC8L4XgBGdh0EpQW48tpv-_x-ilH5L8m4rDomXWjyBFlUkln1TU8etQewxrBn2Mlz4uHibxRirVnl0RsdMiHAa6yHgX39SrOn0PQjNLq3lFE49gwdF2Fplk_ZyJVGCfRDesLa8kynG-oNSl8xJlVeAKt4lAigGdVccVOm3ZPDLPb8KRU7Po25cr0mHMNCrTJZ9U7kKtKIrFJ0lVJitV7OdCjfg6OdZf5Ay9wAPCs_YAaYCe5WBIzVGZh4-EQM-hPYXEBJBrroTOeZR0jaSMt_qQyQFQ2YEehjHg, grpc-timeout: 299455m] streamDependency=0 weight=16 exclusive=false padding=0 endStream=false
2023-03-27 06:20:18,730 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND PING: ack=false bytes=0
2023-03-27 06:20:18,730 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND PING: ack=true bytes=0
2023-03-27 06:20:18,732 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND GO_AWAY: lastStreamId=3 errorCode=0 length=17 bytes=73657373696f6e5f74696d65645f6f7574
2023-03-27 06:24:18,743 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND HEADERS: streamId=3 headers=GrpcHttp2ResponseHeaders[:status: 200, content-type: application/grpc, grpc-status: 14, grpc-message: 408:Request Timeout, content-length: 0, date: Mon, 27 Mar 2023 06:24:18 GMT, alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000] padding=0 endStream=true
2023-03-27 06:24:18,753 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND RST_STREAM: streamId=3 errorCode=0
2023-03-27 06:24:18,754 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] INBOUND PING: ack=false bytes=2
2023-03-27 06:24:18,754 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 - R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND PING: ack=true bytes=2
2023-03-27 06:24:18,756 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 ! R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND RST_STREAM: streamId=3 errorCode=8
2023-03-27 06:24:18,757 DEBUG i.g.n.s.i.g.n.NettyClientHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 ! R:texttospeech.googleapis.com/74.125.193.95:443] OUTBOUND GO_AWAY: lastStreamId=2147483647 errorCode=2 length=0 bytes=
2023-03-27 06:24:18,759 DEBUG i.g.n.s.i.n.h.c.h.Http2ConnectionHandler [grpc-default-worker-ELG-1-4] [id: 0x13ed7dbe, L:/10.2.0.106:56978 ! R:texttospeech.googleapis.com/74.125.193.95:443] Sending GOAWAY failed: lastStreamId '2147483647', errorCode '2', debugData ''. Forcing shutdown of the connection.
io.grpc.netty.shaded.io.netty.channel.StacklessClosedChannelException: null
at io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AbstractUnsafe.write(Object, ChannelPromise)(Unknown Source) ~[grpc-netty-shaded-1.53.0.jar:1.53.0]