File size: 72,282 Bytes
9f30ef0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 |
INFO: Started server process [2909266]
INFO: Waiting for application startup.
INFO:__main__:Initializing VoiceKit MCP connection...
INFO:httpx:HTTP Request: GET https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/sse "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP connected. Tools: ['voicekit_extract_embedding', 'voicekit_compare_voices', 'voicekit_analyze_acoustic_features', 'voicekit_transcribe_audio', 'voicekit_isolate_voice', 'voicekit_analyze_voice_similarity']
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8002 (Press CTRL+C to quit)
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO: 127.0.0.1:49922 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=85b92e03-86fb-4b44-afdc-e845571d1f06
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 222.3KB → 80.7KB (63.7% reduction) in 271.2ms
INFO:__main__:⏱️ Base64 encoding: 271.4ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 85b92e03-86fb-4b44-afdc-e845571d1f06: Attempt 1/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 7876.5ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0, 'transcript': 0, 'overall': 100.0, 'user_text': ''}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Gemini response error: AI response had no content. Please try again.
INFO:__main__:⏱️ Gemini hint generation: 4174.7ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Focus on improving pronunciation (score: 0/100)', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 12323.2ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '85b92e03-86fb-4b44-afdc-e845571d1f06', 'puzzle_number': 3, 'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 100.0, 'advice': 'Focus on improving pronunciation (score: 0/100)', 'is_correct': True, 'guess_timestamp': 1764230530805, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=100.0, correct=True
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
WARNING get_text: No parts in content
INFO: 127.0.0.1:48388 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:36388 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=85b92e03-86fb-4b44-afdc-e845571d1f06
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 294.6KB → 107.0KB (63.7% reduction) in 278.1ms
INFO:__main__:⏱️ Base64 encoding: 278.4ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 85b92e03-86fb-4b44-afdc-e845571d1f06: Attempt 2/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 5564.3ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0, 'transcript': 0, 'overall': 100.0, 'user_text': ''}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Gemini response error: AI response had no content. Please try again.
INFO:__main__:⏱️ Gemini hint generation: 3453.2ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Focus on improving pronunciation (score: 0/100)', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 9296.8ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '85b92e03-86fb-4b44-afdc-e845571d1f06', 'puzzle_number': 3, 'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 100.0, 'advice': 'Focus on improving pronunciation (score: 0/100)', 'is_correct': True, 'guess_timestamp': 1764230550605, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=100.0, correct=True
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
WARNING get_text: No parts in content
INFO: 127.0.0.1:57332 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:57336 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=85b92e03-86fb-4b44-afdc-e845571d1f06
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 160.2KB → 58.2KB (63.7% reduction) in 248.7ms
INFO:__main__:⏱️ Base64 encoding: 249.2ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.4ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 85b92e03-86fb-4b44-afdc-e845571d1f06: Attempt 3/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 5379.0ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0, 'transcript': 0, 'overall': 100.0, 'user_text': ''}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Gemini response error: AI response had no content. Please try again.
INFO:__main__:⏱️ Gemini hint generation: 3321.7ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Focus on improving pronunciation (score: 0/100)', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 8951.1ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '85b92e03-86fb-4b44-afdc-e845571d1f06', 'puzzle_number': 3, 'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 100.0, 'advice': 'Focus on improving pronunciation (score: 0/100)', 'is_correct': True, 'guess_timestamp': 1764230568279, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=100.0, correct=True
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
WARNING get_text: No parts in content
INFO: 127.0.0.1:44184 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:37420 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=85b92e03-86fb-4b44-afdc-e845571d1f06
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 67.2KB → 24.5KB (63.6% reduction) in 208.3ms
INFO:__main__:⏱️ Base64 encoding: 208.6ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 85b92e03-86fb-4b44-afdc-e845571d1f06: Attempt 4/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 3917.4ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0, 'transcript': 0, 'overall': 100.0, 'user_text': ''}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 4, category song
INFO:__main__:⏱️ Gemini hint generation: 5050.0ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': "This incredibly popular children's song became a global viral sensation.", 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 9176.9ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '85b92e03-86fb-4b44-afdc-e845571d1f06', 'puzzle_number': 3, 'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 100.0, 'advice': "This incredibly popular children's song became a global viral sensation.", 'is_correct': True, 'guess_timestamp': 1764230626253, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=100.0, correct=True
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 158, has_function_call: False
INFO: 127.0.0.1:49858 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:50648 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=85b92e03-86fb-4b44-afdc-e845571d1f06
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 625.4KB → 227.0KB (63.7% reduction) in 349.6ms
INFO:__main__:⏱️ Base64 encoding: 350.2ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 85b92e03-86fb-4b44-afdc-e845571d1f06: Attempt 5/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 7094.3ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0, 'transcript': 0, 'overall': 100.0, 'user_text': ''}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Gemini response error: AI response had no content. Please try again.
INFO:__main__:⏱️ Gemini hint generation: 4290.5ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Focus on improving pronunciation (score: 0/100)', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 11735.6ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '85b92e03-86fb-4b44-afdc-e845571d1f06', 'puzzle_number': 3, 'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 100.0, 'advice': 'Focus on improving pronunciation (score: 0/100)', 'is_correct': True, 'guess_timestamp': 1764230697630, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=100.0, correct=True
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
WARNING get_text: No parts in content
INFO: 127.0.0.1:42760 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:38540 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=85b92e03-86fb-4b44-afdc-e845571d1f06
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 475.5KB → 73.0KB (84.7% reduction) in 328.1ms
INFO:__main__:⏱️ Base64 encoding: 328.4ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 85b92e03-86fb-4b44-afdc-e845571d1f06: Attempt 6/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 3741.8ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 10.0, 'transcript': 5.0, 'overall': 16.8, 'user_text': 'Hello?'}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Gemini response error: AI response had no content. Please try again.
INFO:__main__:⏱️ Gemini hint generation: 3568.2ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Focus on improving pronunciation (score: 10/100)', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 7639.1ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '85b92e03-86fb-4b44-afdc-e845571d1f06', 'puzzle_number': 3, 'pitch': 100.0, 'rhythm': 100.0, 'energy': 100.0, 'pronunciation': 10.0, 'transcript': 5.0, 'overall': 16.8, 'advice': 'Focus on improving pronunciation (score: 10/100)', 'is_correct': False, 'guess_timestamp': 1764230726184, 'user_text': 'Hello?'}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=16.8, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
WARNING get_text: No parts in content
INFO: 127.0.0.1:44692 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:35682 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=74f86fba-88a7-4f12-b57e-a73c398fc60d
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 330.8KB → 120.1KB (63.7% reduction) in 279.5ms
INFO:__main__:⏱️ Base64 encoding: 280.0ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.3ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 74f86fba-88a7-4f12-b57e-a73c398fc60d: Attempt 1/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 1967.4ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 1, category song
INFO:__main__:⏱️ Gemini hint generation: 3203.5ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': 'This sequence is known for its repetitive nature.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 5451.8ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '74f86fba-88a7-4f12-b57e-a73c398fc60d', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'This sequence is known for its repetitive nature.', 'is_correct': False, 'guess_timestamp': 1764231113169, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 103, has_function_call: False
INFO: 127.0.0.1:35364 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:37218 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=9d1a88f9-93cb-453e-831d-003ca5506dcb
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 480.7KB → 174.5KB (63.7% reduction) in 327.9ms
INFO:__main__:⏱️ Base64 encoding: 328.7ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 9d1a88f9-93cb-453e-831d-003ca5506dcb: Attempt 1/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 1994.3ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Gemini response error: AI response had no content. Please try again.
ERROR:__main__:Hint generation error: list index out of range
INFO:__main__:⏱️ Gemini hint generation: 4104.0ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Keep practicing! Focus on your pronunciation.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 6427.8ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '9d1a88f9-93cb-453e-831d-003ca5506dcb', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'Keep practicing! Focus on your pronunciation.', 'is_correct': False, 'guess_timestamp': 1764231387226, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
WARNING get_text: No parts in content
INFO: 127.0.0.1:33432 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=9d1a88f9-93cb-453e-831d-003ca5506dcb
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 485.8KB → 117.0KB (75.9% reduction) in 331.2ms
INFO:__main__:⏱️ Base64 encoding: 331.6ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 9d1a88f9-93cb-453e-831d-003ca5506dcb: Attempt 2/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 3757.4ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 2, category song
INFO:__main__:⏱️ Gemini hint generation: 3068.0ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': 'This popular song often features a very simple, repetitive phrase.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 7157.7ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '9d1a88f9-93cb-453e-831d-003ca5506dcb', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'This popular song often features a very simple, repetitive phrase.', 'is_correct': False, 'guess_timestamp': 1764231410080, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 120, has_function_call: False
INFO: 127.0.0.1:59000 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:55086 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=72fbe861-5008-48a4-ad59-a4202902d27d
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 191.3KB → 69.5KB (63.7% reduction) in 257.5ms
INFO:__main__:⏱️ Base64 encoding: 257.8ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.3ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 72fbe861-5008-48a4-ad59-a4202902d27d: Attempt 1/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 7023.4ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 1, category song
INFO:__main__:⏱️ Gemini hint generation: 4314.1ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': 'This very memorable phrase is often repeated and has a well-known associated motion.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 11596.0ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '72fbe861-5008-48a4-ad59-a4202902d27d', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'This very memorable phrase is often repeated and has a well-known associated motion.', 'is_correct': False, 'guess_timestamp': 1764231927203, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 138, has_function_call: False
INFO: 127.0.0.1:36742 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=72fbe861-5008-48a4-ad59-a4202902d27d
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 191.3KB → 69.5KB (63.7% reduction) in 258.6ms
INFO:__main__:⏱️ Base64 encoding: 258.8ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 72fbe861-5008-48a4-ad59-a4202902d27d: Attempt 2/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 1667.1ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 2, category song
INFO:__main__:⏱️ Gemini hint generation: 3533.3ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': 'You might recognize this catchy song from a younger audience.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 5459.8ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '72fbe861-5008-48a4-ad59-a4202902d27d', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'You might recognize this catchy song from a younger audience.', 'is_correct': False, 'guess_timestamp': 1764231935740, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 115, has_function_call: False
INFO: 127.0.0.1:37742 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=72fbe861-5008-48a4-ad59-a4202902d27d
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 191.3KB → 69.5KB (63.7% reduction) in 260.0ms
INFO:__main__:⏱️ Base64 encoding: 260.3ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 72fbe861-5008-48a4-ad59-a4202902d27d: Attempt 3/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 1431.7ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 3, category song
INFO:__main__:⏱️ Gemini hint generation: 4401.2ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': 'This highly repetitive and catchy song is extremely popular with young children and often features a specific family of sea creatures.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 6093.8ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '72fbe861-5008-48a4-ad59-a4202902d27d', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'This highly repetitive and catchy song is extremely popular with young children and often features a specific family of sea creatures.', 'is_correct': False, 'guess_timestamp': 1764231945075, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 188, has_function_call: False
INFO: 127.0.0.1:37628 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:50834 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=373da787-861c-4ed5-83d1-e31132ab82f2
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 98.2KB → 35.7KB (63.7% reduction) in 208.8ms
INFO:__main__:⏱️ Base64 encoding: 209.2ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 373da787-861c-4ed5-83d1-e31132ab82f2: Attempt 1/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 2056.2ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Hint generation error: Unterminated string starting at: line 6 column 7 (char 122)
INFO:__main__:⏱️ Gemini hint generation: 4018.0ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Keep practicing! Focus on your pronunciation.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 6284.3ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '373da787-861c-4ed5-83d1-e31132ab82f2', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'Keep practicing! Focus on your pronunciation.', 'is_correct': False, 'guess_timestamp': 1764232282995, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 127, has_function_call: False
INFO: 127.0.0.1:52996 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=373da787-861c-4ed5-83d1-e31132ab82f2
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 98.2KB → 35.7KB (63.7% reduction) in 200.7ms
INFO:__main__:⏱️ Base64 encoding: 200.9ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 373da787-861c-4ed5-83d1-e31132ab82f2: Attempt 2/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 3575.9ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 503 Service Unavailable"
Traceback (most recent call last):
File "/home/samuel/elevenlabs/gradio/gemini_adapter.py", line 157, in call_gemini_with_tools
response = client.models.generate_content(
File "/home/samuel/.local/lib/python3.10/site-packages/google/genai/models.py", line 5218, in generate_content
response = self._generate_content(
File "/home/samuel/.local/lib/python3.10/site-packages/google/genai/models.py", line 4000, in _generate_content
response = self._api_client.request(
File "/home/samuel/.local/lib/python3.10/site-packages/google/genai/_api_client.py", line 1388, in request
response = self._request(http_request, http_options, stream=False)
File "/home/samuel/.local/lib/python3.10/site-packages/google/genai/_api_client.py", line 1224, in _request
return self._retry(self._request_once, http_request, stream) # type: ignore[no-any-return]
File "/home/samuel/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 477, in __call__
do = self.iter(retry_state=retry_state)
File "/home/samuel/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 378, in iter
result = action(retry_state)
File "/home/samuel/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 420, in exc_check
raise retry_exc.reraise()
File "/home/samuel/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 187, in reraise
raise self.last_attempt.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/home/samuel/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 480, in __call__
result = fn(*args, **kwargs)
File "/home/samuel/.local/lib/python3.10/site-packages/google/genai/_api_client.py", line 1201, in _request_once
errors.APIError.raise_for_response(response)
File "/home/samuel/.local/lib/python3.10/site-packages/google/genai/errors.py", line 106, in raise_for_response
cls.raise_error(response.status_code, response_json, response)
File "/home/samuel/.local/lib/python3.10/site-packages/google/genai/errors.py", line 133, in raise_error
raise ServerError(status_code, response_json, response)
google.genai.errors.ServerError: 503 UNAVAILABLE. {'error': {'code': 503, 'message': 'The model is overloaded. Please try again later.', 'status': 'UNAVAILABLE'}}
ERROR:__main__:Hint generation error: 503 UNAVAILABLE. {'error': {'code': 503, 'message': 'The model is overloaded. Please try again later.', 'status': 'UNAVAILABLE'}}
INFO:__main__:⏱️ Gemini hint generation: 1907.5ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Keep practicing! Focus on your pronunciation.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 5685.0ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '373da787-861c-4ed5-83d1-e31132ab82f2', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'Keep practicing! Focus on your pronunciation.', 'is_correct': False, 'guess_timestamp': 1764232299134, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter ERROR: ServerError: 503 UNAVAILABLE. {'error': {'code': 503, 'message': 'The model is overloaded. Please try again later.', 'status': 'UNAVAILABLE'}}
INFO: 127.0.0.1:51248 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=373da787-861c-4ed5-83d1-e31132ab82f2
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 98.2KB → 35.7KB (63.7% reduction) in 203.0ms
INFO:__main__:⏱️ Base64 encoding: 203.2ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 373da787-861c-4ed5-83d1-e31132ab82f2: Attempt 3/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 2368.2ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 3, category song
INFO:__main__:⏱️ Gemini hint generation: 3031.1ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': "This popular children's song features an animal from the ocean.", 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 5603.1ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '373da787-861c-4ed5-83d1-e31132ab82f2', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': "This popular children's song features an animal from the ocean.", 'is_correct': False, 'guess_timestamp': 1764232307309, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 117, has_function_call: False
INFO: 127.0.0.1:51948 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO: 127.0.0.1:45728 - "GET /api/dashboard HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=54300d79-af98-4179-a0be-957eb0635814
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 227.4KB → 82.6KB (63.7% reduction) in 259.2ms
INFO:__main__:⏱️ Base64 encoding: 259.5ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 54300d79-af98-4179-a0be-957eb0635814: Attempt 1/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 6348.2ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
ERROR:__main__:Gemini response error: AI response had no content. Please try again.
ERROR:__main__:Hint generation error: list index out of range
INFO:__main__:⏱️ Gemini hint generation: 3605.7ms
INFO:__main__:Generated hints: {'type': 'advice', 'answer': [{'text': 'Keep practicing! Focus on your pronunciation.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 10214.1ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '54300d79-af98-4179-a0be-957eb0635814', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'Keep practicing! Focus on your pronunciation.', 'is_correct': False, 'guess_timestamp': 1764232610975, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: MAX_TOKENS
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: MAX_TOKENS
DEBUG get_text: Content has parts: True
WARNING get_text: No parts in content
INFO: 127.0.0.1:49630 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=54300d79-af98-4179-a0be-957eb0635814
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 227.4KB → 82.6KB (63.7% reduction) in 261.8ms
INFO:__main__:⏱️ Base64 encoding: 262.2ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 54300d79-af98-4179-a0be-957eb0635814: Attempt 2/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 1919.2ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 2, category song
INFO:__main__:⏱️ Gemini hint generation: 2931.1ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': 'This is a very catchy and repetitive song, often associated with a younger audience.', 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 5113.0ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '54300d79-af98-4179-a0be-957eb0635814', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': 'This is a very catchy and repetitive song, often associated with a younger audience.', 'is_correct': False, 'guess_timestamp': 1764232620411, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 138, has_function_call: False
INFO: 127.0.0.1:51066 - "POST /api/analyze-voice HTTP/1.1" 200 OK
INFO:__main__:Received request: date=2025-11-27, session_id=54300d79-af98-4179-a0be-957eb0635814
INFO:__main__:Found puzzle: 3 - song
INFO:__main__:🗜️ Audio compression: 227.4KB → 82.6KB (63.7% reduction) in 271.8ms
INFO:__main__:⏱️ Base64 encoding: 272.1ms
WARNING:__main__:⚠ No reference audio found for: reference_audio/song/babyshark.mp3
INFO:__main__:⏱️ Reference audio load: 0.2ms
WARNING:__main__:⚠ No reference audio available, using user audio
INFO:__main__:Session 54300d79-af98-4179-a0be-957eb0635814: Attempt 3/6
INFO:__main__:Calling VoiceKit MCP (attempt 1/3)...
INFO:httpx:HTTP Request: POST https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/messages/?session_id=2a62a924b1b44162a71bd1cb3832b2eb "HTTP/1.1 202 Accepted"
INFO:__main__:✓ VoiceKit MCP call successful
INFO:__main__:⏱️ VoiceKit MCP call: 2405.6ms
INFO:__main__:✓ Fresh VoiceKit analysis completed
INFO:__main__:VoiceKit scores: {'error': "(<Status.FAILED_PRECONDITION: 9>, 'The app is stopped or disabled', None)"}
INFO:google_genai.models:AFC is enabled with max remote calls: 10.
INFO:httpx:HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
INFO:__main__:✓ Generated fresh hint for attempt 3, category song
INFO:__main__:⏱️ Gemini hint generation: 2792.0ms
INFO:__main__:Generated hints: {'type': 'hint', 'answer': [{'text': "This incredibly popular children's song features a very repetitive and recognizable chorus.", 'path': ''}]}
INFO:__main__:⏱️ TOTAL REQUEST TIME: 5470.2ms
ERROR:__main__:Failed to save guess record: (psycopg2.errors.UndefinedColumn) column "user_text" of relation "guess_records" does not exist
LINE 4: ...pt, overall, advice, is_correct, guess_timestamp, user_text)
^
[SQL:
INSERT INTO guess_records
(session_id, puzzle_number, pitch, rhythm, energy, pronunciation,
transcript, overall, advice, is_correct, guess_timestamp, user_text)
VALUES
(%(session_id)s, %(puzzle_number)s, %(pitch)s, %(rhythm)s, %(energy)s, %(pronunciation)s,
%(transcript)s, %(overall)s, %(advice)s, %(is_correct)s, %(guess_timestamp)s, %(user_text)s)
]
[parameters: {'session_id': '54300d79-af98-4179-a0be-957eb0635814', 'puzzle_number': 3, 'pitch': 0.0, 'rhythm': 0.0, 'energy': 0.0, 'pronunciation': 0.0, 'transcript': 0.0, 'overall': 0.0, 'advice': "This incredibly popular children's song features a very repetitive and recognizable chorus.", 'is_correct': False, 'guess_timestamp': 1764232629423, 'user_text': ''}]
(Background on this error at: https://sqlalche.me/e/20/f405)
INFO:__main__:Analysis complete: category=song, overall=0.0, correct=False
DEBUG gemini_adapter: Converted 1 messages to 1 Contents
DEBUG gemini_adapter: Tools: 0
DEBUG gemini_adapter: Calling Gemini API...
DEBUG gemini_adapter: Got response
DEBUG gemini_adapter: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG gemini_adapter: Response has candidates: True
DEBUG gemini_adapter: First candidate type: <class 'google.genai.types.Candidate'>
DEBUG gemini_adapter: finish_reason: STOP
DEBUG get_text: Response type: <class 'google.genai.types.GenerateContentResponse'>
DEBUG get_text: Has candidates: True
DEBUG get_text: Candidate has content: True
DEBUG get_text: finish_reason: STOP
DEBUG get_text: Content has parts: True
DEBUG get_text: Part 0 has text: True
DEBUG get_text: Extracted text length: 145, has_function_call: False
INFO: 127.0.0.1:55780 - "POST /api/analyze-voice HTTP/1.1" 200 OK
ERROR:mcp.client.sse:Error in sse_reader
Traceback (most recent call last):
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
yield
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 271, in __aiter__
async for part in self._httpcore_stream:
File "/home/samuel/.local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 407, in __aiter__
raise exc from None
File "/home/samuel/.local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 403, in __aiter__
async for part in self._stream:
File "/home/samuel/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 342, in __aiter__
raise exc
File "/home/samuel/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 334, in __aiter__
async for chunk in self._connection._receive_response_body(**kwargs):
File "/home/samuel/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 203, in _receive_response_body
event = await self._receive_event(timeout=timeout)
File "/home/samuel/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 213, in _receive_event
with map_exceptions({h11.RemoteProtocolError: RemoteProtocolError}):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/samuel/.local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/samuel/.local/lib/python3.10/site-packages/mcp/client/sse.py", line 73, in sse_reader
async for sse in event_source.aiter_sse(): # pragma: no branch
File "/home/samuel/.local/lib/python3.10/site-packages/httpx_sse/_api.py", line 42, in aiter_sse
async for line in lines:
File "/home/samuel/.local/lib/python3.10/site-packages/httpx_sse/_api.py", line 80, in _aiter_sse_lines
async for text in response.aiter_text():
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_models.py", line 1018, in aiter_text
async for byte_content in self.aiter_bytes():
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_models.py", line 997, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_models.py", line 1055, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_client.py", line 176, in __aiter__
async for chunk in self._stream:
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 270, in __aiter__
with map_httpcore_exceptions():
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/samuel/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
|