Repository: openvinotoolkit/open_model_zoo
Issue: text_to_speech demo not working with -s_id -1(for tts multi model)

Hi
I was trying to run the text to speech demo multi-model (OV 2022.1) with speaker id (-s_id -1), I am facing the below error.

Traceback (most recent call last):                                                                                                                                                                                   File "C:\\workspace\\tts\\applications.ai.conversational-ai.tts\\services\\text_to_speech_demo.py", line 388, in <module>                                                                                                 sys.exit(main() or 0)                                                                                                                                                                                            File "C:\\workspace\\tts\\applications.ai.conversational-ai.tts\\services\\text_to_speech_demo.py", line 265, in main                                                                                                     mel = forward_tacotron.forward(                                                                                                                                                                                  File "C:\\workspace\\tts\\applications.ai.conversational-ai.tts\\services\\models\\forward_tacotron_ie.py", line 283, in forward                                                                                           aligned_emb = self.forward_duration_prediction_by_delimiters(                                                                                                                                                    File "C:\\workspace\\tts\\applications.ai.conversational-ai.tts\\services\\models\\forward_tacotron_ie.py", line 219, in forward_duration_prediction_by_delimiters                                                         self.infer_duration(                                                                                                                                                                                             File "C:\\workspace\\tts\\applications.ai.conversational-ai.tts\\services\\models\\forward_tacotron_ie.py", line 156, in infer_duration                                                                                    self.duration_predictor_request.infer(inputs)                                                                                                                                                                    File "C:\\workspace\\tts\\applications.ai.conversational-ai.tts\\openvino_env\\lib\\site-packages\\openvino\\runtime\\ie_api.py", line 109, in infer                                                                          return super().infer(                                                                                                                                                                                     RuntimeError: Can't SetBlob with name: speaker_embedding, because model input (shape={1,2}) and blob (shape=(1.1.2)) are incompatible 

# Command used  to run the demo
```
python text_to_speech_demo.py -i "How are you doing, what is up with you" -o ./audio.wav -m_duration intel/text-to-speech-en-multi-0001/text-to-speech-en-multi-0001-duration-prediction/FP32/text-to-speech-en-multi-0001-duration-prediction.xml -m_forward intel/text-to-speech-en-multi-0001/text-to-speech-en-multi-0001-regression/FP32/text-to-speech-en-multi-0001-regression.xml -m_melgan intel/text-to-speech-en-multi-0001/text-to-speech-en-multi-0001-generation/FP32/text-to-speech-en-multi-0001-generation.xml -s_id -1 
```

Changed files:
demos/text_to_speech_demo/python/text_to_speech_demo.py, demos/text_to_speech_demo/python/models/forward_tacotron_ie.py

diff --git a/demos/text_to_speech_demo/python/models/forward_tacotron_ie.py b/demos/text_to_speech_demo/python/models/forward_tacotron_ie.py
index 69bfc82ed..d0000e6e9 100644
--- a/demos/text_to_speech_demo/python/models/forward_tacotron_ie.py
+++ b/demos/text_to_speech_demo/python/models/forward_tacotron_ie.py
@@ -126,7 +126,7 @@ class ForwardTacotronIE:
                       "input_mask": input_mask,
                       "pos_mask": pos_mask}
             if speaker_embedding is not None:
-                inputs["speaker_embedding"] = np.array([speaker_embedding])
+                inputs["speaker_embedding"] = np.array(speaker_embedding)
             self.duration_predictor_request.infer(inputs)
         else:
             self.duration_predictor_request.infer(inputs={"input_seq": sequence})
@@ -154,7 +154,7 @@ class ForwardTacotronIE:
                       "data_mask": data_mask,
                       "pos_mask": pos_mask}
             if speaker_embedding is not None:
-                inputs["speaker_embedding"] = np.array([speaker_embedding])
+                inputs["speaker_embedding"] = np.array(speaker_embedding)
             self.forward_request.infer(inputs)
         else:
             self.forward_request.infer(inputs={"data": aligned_emb})
@@ -215,7 +215,7 @@ class ForwardTacotronIE:
             if speaker_emb is not None:
                 speaker_embedding = speaker_emb
             else:
-                speaker_embedding = self.speaker_embeddings[speaker_id, :]
+                speaker_embedding = [self.speaker_embeddings[speaker_id, :]]
 
         aligned_emb = self.forward_duration_prediction_by_delimiters(text, speaker_embedding, alpha)
 
diff --git a/demos/text_to_speech_demo/python/text_to_speech_demo.py b/demos/text_to_speech_demo/python/text_to_speech_demo.py
index 36d05eca1..90da509de 100755
--- a/demos/text_to_speech_demo/python/text_to_speech_demo.py
+++ b/demos/text_to_speech_demo/python/text_to_speech_demo.py
@@ -154,7 +154,7 @@ def main():
             speaker_emb = forward_tacotron.get_pca_speaker_embedding(interactive_parameter["gender"],
                                                                      interactive_parameter["style"])
         else:
-            speaker_emb = forward_tacotron.get_speaker_embeddings()[args.speaker_id, :]
+            speaker_emb = [forward_tacotron.get_speaker_embeddings()[args.speaker_id, :]]
 
     len_th = 80